@adport/mcp 0.7.0 → 0.9.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/bin.js +4 -3
- package/dist/bin.js.map +1 -1
- package/dist/chunk-DPHTHY2E.js +2107 -0
- package/dist/chunk-DPHTHY2E.js.map +1 -0
- package/dist/index.d.ts +24 -8
- package/dist/index.js +7 -1
- package/package.json +21 -16
- package/dist/chunk-WN2KEUAP.js +0 -668
- package/dist/chunk-WN2KEUAP.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
import { McpServer } from '@modelcontextprotocol/
|
|
2
|
-
import { AdportRuntime } from '@adport/core';
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/server';
|
|
2
|
+
import { AdportRuntime, ToolSelection } from '@adport/core';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const ADPORT_UI_RESOURCE_DOMAINS: string[];
|
|
5
|
+
|
|
6
|
+
declare const PROVIDER_IDS: readonly ["ga4", "gsc", "gtm", "google", "meta", "tiktok", "apple", "microsoft", "reddit", "snapchat", "spotify", "pinterest", "linkedin", "x"];
|
|
7
|
+
|
|
8
|
+
declare const ADPORT_UI_RESOURCE_URIS: readonly string[];
|
|
5
9
|
/**
|
|
6
10
|
* Standard runtime assembly: real providers whose credentials exist. Mock data
|
|
7
11
|
* is opt-in so a live runtime never silently substitutes synthetic accounts.
|
|
8
12
|
*/
|
|
9
13
|
interface AssembleRuntimeOptions {
|
|
10
14
|
includeMock?: boolean;
|
|
15
|
+
includeRawTools?: boolean;
|
|
11
16
|
}
|
|
12
17
|
declare function assembleRuntime(options?: AssembleRuntimeOptions): Promise<AdportRuntime>;
|
|
13
18
|
interface CreateServerOptions {
|
|
14
19
|
runtime: AdportRuntime;
|
|
20
|
+
catalog?: ToolSelection;
|
|
21
|
+
/** Explicit local opt-in; production connectors always reject raw tools. */
|
|
22
|
+
includeRawTools?: boolean;
|
|
23
|
+
/** Transport-specific context, without redefining any provider tool. */
|
|
24
|
+
instructions?: string;
|
|
15
25
|
name?: string;
|
|
16
26
|
version?: string;
|
|
17
27
|
/** Brand icons advertised to MCP clients during initialization. */
|
|
@@ -31,19 +41,25 @@ interface CreateServerOptions {
|
|
|
31
41
|
notConnectedMessage?: string;
|
|
32
42
|
/** Hosted production must never serve synthetic results or demo tool definitions. */
|
|
33
43
|
productionOnly?: boolean;
|
|
34
|
-
/** Host-specific
|
|
35
|
-
uiDomain?: string;
|
|
44
|
+
/** Host-specific sandbox domain; null lets the host choose its default origin. */
|
|
45
|
+
uiDomain?: string | null;
|
|
46
|
+
uiResourceDomains?: readonly string[];
|
|
47
|
+
/** Exact private-storage origins used by in-widget signed uploads. */
|
|
48
|
+
uiConnectDomains?: readonly string[];
|
|
36
49
|
}
|
|
37
50
|
interface ToolScopeDenial {
|
|
38
51
|
code: string;
|
|
39
52
|
message: string;
|
|
40
53
|
data?: Record<string, unknown>;
|
|
41
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;
|
|
42
58
|
/**
|
|
43
59
|
* Thin adapter: every tool in the shared registry becomes an MCP tool.
|
|
44
60
|
* No tool logic lives here — see the "one tool-definition layer" principle.
|
|
45
61
|
*/
|
|
46
|
-
declare function createMcpServer({ runtime, name, version, icons, scopes, scopeDenials, notConnectedMessage, productionOnly, uiDomain }: CreateServerOptions): McpServer;
|
|
47
|
-
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>;
|
|
48
64
|
|
|
49
|
-
export { 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
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ADPORT_UI_RESOURCE_DOMAINS,
|
|
3
|
+
ADPORT_UI_RESOURCE_URIS,
|
|
2
4
|
PROVIDER_IDS,
|
|
3
5
|
assembleRuntime,
|
|
4
6
|
createMcpServer,
|
|
7
|
+
createMcpUiServer,
|
|
5
8
|
runStdioServer
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DPHTHY2E.js";
|
|
7
10
|
export {
|
|
11
|
+
ADPORT_UI_RESOURCE_DOMAINS,
|
|
12
|
+
ADPORT_UI_RESOURCE_URIS,
|
|
8
13
|
PROVIDER_IDS,
|
|
9
14
|
assembleRuntime,
|
|
10
15
|
createMcpServer,
|
|
16
|
+
createMcpUiServer,
|
|
11
17
|
runStdioServer
|
|
12
18
|
};
|
|
13
19
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adport/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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,27 +19,32 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@modelcontextprotocol/ext-apps": "^
|
|
23
|
-
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
22
|
+
"@modelcontextprotocol/ext-apps": "^2.0.4",
|
|
24
23
|
"zod": "^4.4.3",
|
|
25
|
-
"@
|
|
26
|
-
"@adport/
|
|
27
|
-
"@adport/provider-google": "0.
|
|
28
|
-
"@adport/provider-
|
|
29
|
-
"@adport/provider-
|
|
30
|
-
"@adport/provider-
|
|
31
|
-
"@adport/provider-
|
|
32
|
-
"@adport/provider-
|
|
33
|
-
"@adport/provider-
|
|
34
|
-
"@adport/provider-
|
|
35
|
-
"@adport/provider-
|
|
36
|
-
"@adport/provider-
|
|
24
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
25
|
+
"@adport/core": "0.9.0",
|
|
26
|
+
"@adport/provider-google": "0.9.0",
|
|
27
|
+
"@adport/provider-linkedin": "0.9.0",
|
|
28
|
+
"@adport/provider-meta": "0.9.0",
|
|
29
|
+
"@adport/provider-microsoft": "0.9.0",
|
|
30
|
+
"@adport/provider-pinterest": "0.9.0",
|
|
31
|
+
"@adport/provider-apple": "0.9.0",
|
|
32
|
+
"@adport/provider-snapchat": "0.9.0",
|
|
33
|
+
"@adport/provider-spotify": "0.9.0",
|
|
34
|
+
"@adport/provider-reddit": "0.9.0",
|
|
35
|
+
"@adport/provider-x": "0.9.0",
|
|
36
|
+
"@adport/provider-tiktok": "0.9.0",
|
|
37
|
+
"@adport/provider-analytics": "0.9.0",
|
|
38
|
+
"@adport/provider-gtm": "0.9.0"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
41
|
+
"@types/jsdom": "^21.1.7",
|
|
39
42
|
"@types/node": "^26.1.2",
|
|
43
|
+
"jsdom": "26.1.0",
|
|
40
44
|
"tsup": "^8.3.0",
|
|
41
45
|
"typescript": "^5.8.0",
|
|
42
|
-
"vitest": "^4.1.10"
|
|
46
|
+
"vitest": "^4.1.10",
|
|
47
|
+
"@modelcontextprotocol/client": "^2.4.0"
|
|
43
48
|
},
|
|
44
49
|
"repository": {
|
|
45
50
|
"type": "git",
|