@mcpcloud/runtime 0.12.3 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/node.d.ts +12 -0
- package/dist/compat-stdio.d.ts +1 -1
- package/dist/compat-stdio.js +46 -35
- package/dist/compat-worker.d.ts +2 -3
- package/dist/compat-worker.js +54 -63
- package/dist/config.d.ts +14 -0
- package/dist/container-host.js +10 -10
- package/dist/index.d.ts +3 -4
- package/dist/index.js +71 -72
- package/dist/node.d.ts +1 -0
- package/dist/node.js +10 -10
- package/dist/sandbox/codeModeTool.d.ts +4 -2
- package/dist/server.d.ts +28 -2
- package/dist/stdio.d.ts +1 -1
- package/dist/stdio.js +53 -42
- package/dist/tool-errors.d.ts +24 -4
- package/package.json +3 -2
package/dist/adapters/node.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { Server } from 'node:http';
|
|
2
2
|
import type { RuntimeEnv } from '../config';
|
|
3
3
|
import type { GeneratedServer } from '../server';
|
|
4
|
+
import { registerNodeCodeModeEngine } from './codeModeHost';
|
|
5
|
+
/**
|
|
6
|
+
* Re-exported so a host that does NOT use `serve()` can still offer an engine.
|
|
7
|
+
*
|
|
8
|
+
* `serve()` calls this itself, but the CLI's `--local` boot wraps the bundle's
|
|
9
|
+
* Cloudflare entry in its own HTTP server — and that entry registers nothing,
|
|
10
|
+
* correctly, because on the edge dispatch serves `codemode_execute`. Without a
|
|
11
|
+
* public way to register, a pulled tree whose operator enabled Code Mode
|
|
12
|
+
* answered "Unknown tool" locally while the deployed server had it: exactly the
|
|
13
|
+
* divergence `--local` exists to rule out.
|
|
14
|
+
*/
|
|
15
|
+
export { registerNodeCodeModeEngine };
|
|
4
16
|
export interface NodeServeOptions {
|
|
5
17
|
port?: number;
|
|
6
18
|
hostname?: string;
|
package/dist/compat-stdio.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* asset in generated bundles (current layout). Built (bundled + minified,
|
|
4
4
|
* node target) by `scripts/build-runtime-package-assets.ts`.
|
|
5
5
|
*/
|
|
6
|
-
export { StdioServerTransport } from '@modelcontextprotocol/
|
|
6
|
+
export { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
|