refactor: move the schema source modules into @modelcontextprotocol/core (#2477)
This commit is contained in:
parent
7c49b47fb3
commit
8e1d2e92b1
3 changed files with 3597 additions and 2914 deletions
|
|
@ -133,6 +133,7 @@
|
|||
"test:watch": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/core": "workspace:*",
|
||||
"zod": "catalog:runtimeShared"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
"paths": {
|
||||
"*": ["./*"],
|
||||
"@modelcontextprotocol/core-internal": ["./node_modules/@modelcontextprotocol/core-internal/src/index.ts"],
|
||||
"@modelcontextprotocol/core/internal": ["./node_modules/@modelcontextprotocol/core/src/internal.ts"],
|
||||
"@modelcontextprotocol/core-internal/public": [
|
||||
"./node_modules/@modelcontextprotocol/core-internal/src/exports/public/index.ts"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -33,5 +33,8 @@ export default defineConfig({
|
|||
}
|
||||
},
|
||||
noExternal: ['@modelcontextprotocol/core-internal', 'ajv', 'ajv-formats', '@cfworker/json-schema'],
|
||||
external: ['@modelcontextprotocol/server/_shims']
|
||||
// The schema modules live in @modelcontextprotocol/core (a real runtime dependency); the
|
||||
// bundled core-internal shims import them via the './internal' subpath, which must stay an
|
||||
// external import (explicit entry — the tsconfig paths alias would otherwise inline it).
|
||||
external: ['@modelcontextprotocol/server/_shims', '@modelcontextprotocol/core/internal']
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue