@syntrologie/adapt-mcp 2.8.0-canary.127
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/cdn.d.ts +47 -0
- package/dist/cdn.d.ts.map +1 -0
- package/dist/cdn.js +39 -0
- package/dist/runtime.d.ts +22 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +18 -0
- package/dist/schema.d.ts +11 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +9 -0
- package/package.json +53 -0
package/dist/cdn.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CDN Entry Point for Adaptive MCP
|
|
3
|
+
*
|
|
4
|
+
* Bundled for CDN delivery and loaded on-demand by the host runtime's AppLoader.
|
|
5
|
+
* Its only job in this iteration:
|
|
6
|
+
*
|
|
7
|
+
* 1. Pull `@modelcontextprotocol/ext-apps` into the page.
|
|
8
|
+
* 2. Expose the library's App + PostMessageTransport + AppBridge classes on
|
|
9
|
+
* `window.MCPApp` so subsequent code (MCP-app cards, host wiring) can pick
|
|
10
|
+
* them up without a second download.
|
|
11
|
+
* 3. Self-register with the host's app registry so the runtime knows this
|
|
12
|
+
* adaptive has loaded.
|
|
13
|
+
*
|
|
14
|
+
* Future work on this adaptive (real actions, executors, host-side bridging)
|
|
15
|
+
* lives elsewhere; this file intentionally does as little as possible.
|
|
16
|
+
*/
|
|
17
|
+
import { App, PostMessageTransport } from '@modelcontextprotocol/ext-apps';
|
|
18
|
+
import { AppBridge } from '@modelcontextprotocol/ext-apps/app-bridge';
|
|
19
|
+
export declare const manifest: {
|
|
20
|
+
id: "adaptive-mcp";
|
|
21
|
+
version: "0.0.0";
|
|
22
|
+
name: "Adaptive MCP";
|
|
23
|
+
description: "Loads @modelcontextprotocol/ext-apps so MCP-app cards can call host-provided MCP tools.";
|
|
24
|
+
runtime: {
|
|
25
|
+
actions: never[];
|
|
26
|
+
};
|
|
27
|
+
metadata: {
|
|
28
|
+
isBuiltIn: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export interface MCPAppGlobal {
|
|
32
|
+
App: typeof App;
|
|
33
|
+
AppBridge: typeof AppBridge;
|
|
34
|
+
PostMessageTransport: typeof PostMessageTransport;
|
|
35
|
+
}
|
|
36
|
+
declare global {
|
|
37
|
+
interface Window {
|
|
38
|
+
MCPApp?: MCPAppGlobal;
|
|
39
|
+
SynOS?: {
|
|
40
|
+
appRegistry?: {
|
|
41
|
+
register?: (m: unknown) => void;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export default manifest;
|
|
47
|
+
//# sourceMappingURL=cdn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAItE,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWpB,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;CACnD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,CAAC,EAAE,YAAY,CAAC;QACtB,KAAK,CAAC,EAAE;YACN,WAAW,CAAC,EAAE;gBACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;aACjC,CAAC;SACH,CAAC;KACH;CACF;AAUD,eAAe,QAAQ,CAAC"}
|
package/dist/cdn.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CDN Entry Point for Adaptive MCP
|
|
3
|
+
*
|
|
4
|
+
* Bundled for CDN delivery and loaded on-demand by the host runtime's AppLoader.
|
|
5
|
+
* Its only job in this iteration:
|
|
6
|
+
*
|
|
7
|
+
* 1. Pull `@modelcontextprotocol/ext-apps` into the page.
|
|
8
|
+
* 2. Expose the library's App + PostMessageTransport + AppBridge classes on
|
|
9
|
+
* `window.MCPApp` so subsequent code (MCP-app cards, host wiring) can pick
|
|
10
|
+
* them up without a second download.
|
|
11
|
+
* 3. Self-register with the host's app registry so the runtime knows this
|
|
12
|
+
* adaptive has loaded.
|
|
13
|
+
*
|
|
14
|
+
* Future work on this adaptive (real actions, executors, host-side bridging)
|
|
15
|
+
* lives elsewhere; this file intentionally does as little as possible.
|
|
16
|
+
*/
|
|
17
|
+
import { App, PostMessageTransport } from '@modelcontextprotocol/ext-apps';
|
|
18
|
+
import { AppBridge } from '@modelcontextprotocol/ext-apps/app-bridge';
|
|
19
|
+
import { runtime } from './runtime';
|
|
20
|
+
export const manifest = {
|
|
21
|
+
id: runtime.id,
|
|
22
|
+
version: runtime.version,
|
|
23
|
+
name: runtime.name,
|
|
24
|
+
description: runtime.description,
|
|
25
|
+
runtime: {
|
|
26
|
+
actions: [],
|
|
27
|
+
},
|
|
28
|
+
metadata: {
|
|
29
|
+
isBuiltIn: false,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
if (typeof window !== 'undefined') {
|
|
33
|
+
window.MCPApp = { App, AppBridge, PostMessageTransport };
|
|
34
|
+
const registry = window.SynOS?.appRegistry;
|
|
35
|
+
if (registry && typeof registry.register === 'function') {
|
|
36
|
+
registry.register(manifest);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default manifest;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adaptive MCP - Runtime Module
|
|
3
|
+
*
|
|
4
|
+
* Metadata-only for this iteration. The purpose of `adaptive-mcp` right now is to
|
|
5
|
+
* load `@modelcontextprotocol/ext-apps` into the page and expose it so interactive
|
|
6
|
+
* MCP-app cards can bridge back to the host. No actions, widgets, or surfaces yet —
|
|
7
|
+
* those get added once the full requirements for the bridge are known.
|
|
8
|
+
*
|
|
9
|
+
* See `./cdn.ts` for the browser entrypoint that actually loads the library and
|
|
10
|
+
* self-registers with the host runtime's app registry.
|
|
11
|
+
*/
|
|
12
|
+
export declare const runtime: {
|
|
13
|
+
readonly id: "adaptive-mcp";
|
|
14
|
+
readonly version: "0.0.0";
|
|
15
|
+
readonly name: "Adaptive MCP";
|
|
16
|
+
readonly description: "Loads @modelcontextprotocol/ext-apps so MCP-app cards can call host-provided MCP tools.";
|
|
17
|
+
};
|
|
18
|
+
export declare const executors: Array<{
|
|
19
|
+
kind: string;
|
|
20
|
+
executor: unknown;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,OAAO;;;;;CAMV,CAAC;AAEX,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAM,CAAC"}
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adaptive MCP - Runtime Module
|
|
3
|
+
*
|
|
4
|
+
* Metadata-only for this iteration. The purpose of `adaptive-mcp` right now is to
|
|
5
|
+
* load `@modelcontextprotocol/ext-apps` into the page and expose it so interactive
|
|
6
|
+
* MCP-app cards can bridge back to the host. No actions, widgets, or surfaces yet —
|
|
7
|
+
* those get added once the full requirements for the bridge are known.
|
|
8
|
+
*
|
|
9
|
+
* See `./cdn.ts` for the browser entrypoint that actually loads the library and
|
|
10
|
+
* self-registers with the host runtime's app registry.
|
|
11
|
+
*/
|
|
12
|
+
export const runtime = {
|
|
13
|
+
id: 'adaptive-mcp',
|
|
14
|
+
version: '0.0.0',
|
|
15
|
+
name: 'Adaptive MCP',
|
|
16
|
+
description: 'Loads @modelcontextprotocol/ext-apps so MCP-app cards can call host-provided MCP tools.',
|
|
17
|
+
};
|
|
18
|
+
export const executors = [];
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adaptive MCP - Schema
|
|
3
|
+
*
|
|
4
|
+
* No tile-config schema for this adaptive yet. It's a library loader, not a
|
|
5
|
+
* configurable behavior. This export exists so the package's `./schema`
|
|
6
|
+
* subpath resolves to a real module and stays symmetric with other adaptives.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
export declare const mcpAdaptiveConfigSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
10
|
+
export type MCPAdaptiveConfig = z.infer<typeof mcpAdaptiveConfigSchema>;
|
|
11
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB,iDAAwB,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adaptive MCP - Schema
|
|
3
|
+
*
|
|
4
|
+
* No tile-config schema for this adaptive yet. It's a library loader, not a
|
|
5
|
+
* configurable behavior. This export exists so the package's `./schema`
|
|
6
|
+
* subpath resolves to a real module and stays symmetric with other adaptives.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
export const mcpAdaptiveConfigSchema = z.object({}).strict();
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@syntrologie/adapt-mcp",
|
|
3
|
+
"version": "2.8.0-canary.127",
|
|
4
|
+
"description": "Adaptive MCP — dynamically loads @modelcontextprotocol/ext-apps so interactive MCP app cards can bridge back to the host.",
|
|
5
|
+
"license": "Proprietary",
|
|
6
|
+
"private": false,
|
|
7
|
+
"author": "Syntrologie <eng@syntrologie.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/SyntropyForge/amazing-demos.git",
|
|
11
|
+
"directory": "packages/adaptives/adaptive-mcp"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./runtime": {
|
|
19
|
+
"types": "./dist/runtime.d.ts",
|
|
20
|
+
"import": "./dist/runtime.js"
|
|
21
|
+
},
|
|
22
|
+
"./schema": {
|
|
23
|
+
"types": "./dist/schema.d.ts",
|
|
24
|
+
"import": "./dist/schema.js"
|
|
25
|
+
},
|
|
26
|
+
"./cdn": {
|
|
27
|
+
"types": "./dist/cdn.d.ts",
|
|
28
|
+
"import": "./dist/cdn.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"clean": "rm -rf dist",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"test:watch": "vitest"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"zod": "^3.0.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@modelcontextprotocol/ext-apps": "1.1.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"jsdom": "26.1.0",
|
|
49
|
+
"typescript": "5.9.3",
|
|
50
|
+
"vitest": "4.0.18",
|
|
51
|
+
"zod": "3.25.76"
|
|
52
|
+
}
|
|
53
|
+
}
|