feat: the frontend part of mcp (#22131)
Co-authored-by: jZonG <jzongcode@gmail.com> Co-authored-by: Novice <novice12185727@gmail.com> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
This commit is contained in:
parent
535fff62f3
commit
5375d9bb27
152 changed files with 6340 additions and 695 deletions
10
web/utils/plugin-version-feature.ts
Normal file
10
web/utils/plugin-version-feature.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { isEqualOrLaterThanVersion } from './semver'
|
||||
|
||||
const SUPPORT_MCP_VERSION = '0.0.2'
|
||||
|
||||
export const isSupportMCP = (version?: string): boolean => {
|
||||
if (!version)
|
||||
return false
|
||||
|
||||
return isEqualOrLaterThanVersion(version, SUPPORT_MCP_VERSION)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue