@adport/mcp 0.8.0 → 0.10.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/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import { AdportRuntime } from '@adport/core';
1
+ import { McpServer } from '@modelcontextprotocol/server';
2
+ import { AdportRuntime, ToolSelection } from '@adport/core';
3
3
 
4
4
  declare const ADPORT_UI_RESOURCE_DOMAINS: string[];
5
5
 
6
- declare const PROVIDER_IDS: readonly ["google", "meta", "tiktok", "apple", "microsoft", "reddit", "snapchat", "spotify", "pinterest", "linkedin", "x"];
6
+ declare const PROVIDER_IDS: readonly ["ga4", "gsc", "gtm", "google", "meta", "tiktok", "apple", "microsoft", "reddit", "snapchat", "spotify", "pinterest", "linkedin", "x", "openai"];
7
7
 
8
8
  declare const ADPORT_UI_RESOURCE_URIS: readonly string[];
9
9
  /**
@@ -12,10 +12,14 @@ declare const ADPORT_UI_RESOURCE_URIS: readonly string[];
12
12
  */
13
13
  interface AssembleRuntimeOptions {
14
14
  includeMock?: boolean;
15
+ includeRawTools?: boolean;
15
16
  }
16
17
  declare function assembleRuntime(options?: AssembleRuntimeOptions): Promise<AdportRuntime>;
17
18
  interface CreateServerOptions {
18
19
  runtime: AdportRuntime;
20
+ catalog?: ToolSelection;
21
+ /** Explicit local opt-in; production connectors always reject raw tools. */
22
+ includeRawTools?: boolean;
19
23
  /** Transport-specific context, without redefining any provider tool. */
20
24
  instructions?: string;
21
25
  name?: string;
@@ -37,9 +41,10 @@ interface CreateServerOptions {
37
41
  notConnectedMessage?: string;
38
42
  /** Hosted production must never serve synthetic results or demo tool definitions. */
39
43
  productionOnly?: boolean;
40
- /** Host-specific MCP Apps sandbox domain; OpenAI's widget domain stays independent. */
41
- uiDomain?: string;
44
+ /** Host-specific sandbox domain; null lets the host choose its default origin. */
45
+ uiDomain?: string | null;
42
46
  uiResourceDomains?: readonly string[];
47
+ /** Exact private-storage origins used by in-widget signed uploads. */
43
48
  uiConnectDomains?: readonly string[];
44
49
  }
45
50
  interface ToolScopeDenial {
@@ -47,11 +52,14 @@ interface ToolScopeDenial {
47
52
  message: string;
48
53
  data?: Record<string, unknown>;
49
54
  }
55
+ type UiServerOptions = Pick<CreateServerOptions, 'name' | 'version' | 'icons' | 'uiDomain' | 'uiResourceDomains' | 'uiConnectDomains'>;
56
+ /** Static resources only. Business requests must use the normal registry server. */
57
+ declare function createMcpUiServer({ name, version, icons, uiDomain, uiResourceDomains, uiConnectDomains }?: UiServerOptions): McpServer;
50
58
  /**
51
59
  * Thin adapter: every tool in the shared registry becomes an MCP tool.
52
60
  * No tool logic lives here — see the "one tool-definition layer" principle.
53
61
  */
54
- declare function createMcpServer({ runtime, instructions, name, version, icons, scopes, scopeDenials, notConnectedMessage, productionOnly, uiDomain, uiResourceDomains, uiConnectDomains }: CreateServerOptions): McpServer;
55
- declare function runStdioServer(runtime: AdportRuntime, version?: string): Promise<void>;
62
+ declare function createMcpServer({ runtime, catalog, includeRawTools, instructions, name, version, icons, scopes, scopeDenials, notConnectedMessage, productionOnly, uiDomain, uiResourceDomains, uiConnectDomains }: CreateServerOptions): McpServer;
63
+ declare function runStdioServer(runtime: AdportRuntime, version?: string, includeRawTools?: boolean): Promise<void>;
56
64
 
57
- export { ADPORT_UI_RESOURCE_DOMAINS, ADPORT_UI_RESOURCE_URIS, type AssembleRuntimeOptions, type CreateServerOptions, PROVIDER_IDS, type ToolScopeDenial, assembleRuntime, createMcpServer, runStdioServer };
65
+ export { ADPORT_UI_RESOURCE_DOMAINS, ADPORT_UI_RESOURCE_URIS, type AssembleRuntimeOptions, type CreateServerOptions, PROVIDER_IDS, type ToolScopeDenial, assembleRuntime, createMcpServer, createMcpUiServer, runStdioServer };
package/dist/index.js CHANGED
@@ -4,14 +4,16 @@ import {
4
4
  PROVIDER_IDS,
5
5
  assembleRuntime,
6
6
  createMcpServer,
7
+ createMcpUiServer,
7
8
  runStdioServer
8
- } from "./chunk-OB4IUHHA.js";
9
+ } from "./chunk-R75I3FKW.js";
9
10
  export {
10
11
  ADPORT_UI_RESOURCE_DOMAINS,
11
12
  ADPORT_UI_RESOURCE_URIS,
12
13
  PROVIDER_IDS,
13
14
  assembleRuntime,
14
15
  createMcpServer,
16
+ createMcpUiServer,
15
17
  runStdioServer
16
18
  };
17
19
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adport/mcp",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "adport MCP server — the open control plane for paid media",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -19,29 +19,33 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
- "@modelcontextprotocol/ext-apps": "^1.7.5",
23
- "@modelcontextprotocol/sdk": "^1.30.0",
24
- "zod": "^4.4.3",
25
- "@adport/core": "0.8.0",
26
- "@adport/provider-apple": "0.8.0",
27
- "@adport/provider-google": "0.8.0",
28
- "@adport/provider-microsoft": "0.8.0",
29
- "@adport/provider-meta": "0.8.0",
30
- "@adport/provider-reddit": "0.8.0",
31
- "@adport/provider-snapchat": "0.8.0",
32
- "@adport/provider-spotify": "0.8.0",
33
- "@adport/provider-x": "0.8.0",
34
- "@adport/provider-tiktok": "0.8.0",
35
- "@adport/provider-linkedin": "0.8.0",
36
- "@adport/provider-pinterest": "0.8.0"
22
+ "@modelcontextprotocol/ext-apps": "^2.0.4",
23
+ "zod": "^4.6.7",
24
+ "@modelcontextprotocol/server": "^2.4.0",
25
+ "@adport/provider-apple": "0.10.0",
26
+ "@adport/core": "0.10.0",
27
+ "@adport/provider-linkedin": "0.10.0",
28
+ "@adport/provider-google": "0.10.0",
29
+ "@adport/provider-meta": "0.10.0",
30
+ "@adport/provider-microsoft": "0.10.0",
31
+ "@adport/provider-pinterest": "0.10.0",
32
+ "@adport/provider-reddit": "0.10.0",
33
+ "@adport/provider-snapchat": "0.10.0",
34
+ "@adport/provider-tiktok": "0.10.0",
35
+ "@adport/provider-openai": "0.10.0",
36
+ "@adport/provider-spotify": "0.10.0",
37
+ "@adport/provider-gtm": "0.10.0",
38
+ "@adport/provider-analytics": "0.10.0",
39
+ "@adport/provider-x": "0.10.0"
37
40
  },
38
41
  "devDependencies": {
39
- "@types/jsdom": "21.1.7",
40
- "@types/node": "^26.1.2",
42
+ "@types/jsdom": "^21.1.7",
43
+ "@types/node": "^26.6.6",
41
44
  "jsdom": "26.1.0",
42
45
  "tsup": "^8.3.0",
43
46
  "typescript": "^5.8.0",
44
- "vitest": "^4.1.10"
47
+ "vitest": "^4.1.10",
48
+ "@modelcontextprotocol/client": "^2.4.0"
45
49
  },
46
50
  "repository": {
47
51
  "type": "git",