asqend-mcp-contracts 0.3.2
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/batch-execute.d.ts +29 -0
- package/dist/batch-execute.js +109 -0
- package/dist/definitions.d.ts +1 -0
- package/dist/definitions.js +1 -0
- package/dist/dispatch.d.ts +1 -0
- package/dist/dispatch.js +1 -0
- package/dist/fallback-set.d.ts +1 -0
- package/dist/fallback-set.js +1 -0
- package/dist/generated/hosted.bridge.json +12061 -0
- package/dist/generated/tools.definitions.d.ts +2 -0
- package/dist/generated/tools.definitions.js +6997 -0
- package/dist/generated/tools.dispatch.d.ts +6 -0
- package/dist/generated/tools.dispatch.js +587 -0
- package/dist/generated/tools.fallback-set.d.ts +1 -0
- package/dist/generated/tools.fallback-set.js +9 -0
- package/dist/generated/tools.manifest.json +9957 -0
- package/dist/generated/tools.visibility.d.ts +1 -0
- package/dist/generated/tools.visibility.js +120 -0
- package/dist/generated/tools.write-set.d.ts +1 -0
- package/dist/generated/tools.write-set.js +93 -0
- package/dist/hosted-bridge.d.ts +2 -0
- package/dist/hosted-bridge.js +2 -0
- package/dist/hosted-rollout.d.ts +7 -0
- package/dist/hosted-rollout.js +12 -0
- package/dist/hosted-tools.d.ts +10 -0
- package/dist/hosted-tools.js +180 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +11 -0
- package/dist/manifest.d.ts +2 -0
- package/dist/manifest.js +2 -0
- package/dist/transport-support.d.ts +7 -0
- package/dist/transport-support.js +139 -0
- package/dist/types.d.ts +77 -0
- package/dist/types.js +1 -0
- package/dist/visibility.d.ts +1 -0
- package/dist/visibility.js +1 -0
- package/dist/write-set.d.ts +1 -0
- package/dist/write-set.js +1 -0
- package/package.json +30 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export type GeneratedToolDefinition = {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export type GeneratedDispatchEntry = {
|
|
7
|
+
routePath: `/api/capabilities/${string}`;
|
|
8
|
+
confirmWrite: boolean;
|
|
9
|
+
method?: 'GET' | 'POST';
|
|
10
|
+
};
|
|
11
|
+
export type GeneratedHostedBridgeConfig = {
|
|
12
|
+
defaultTools: Array<{
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
inputSchema: Record<string, unknown>;
|
|
16
|
+
}>;
|
|
17
|
+
legacyTools: Array<{
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
inputSchema: Record<string, unknown>;
|
|
21
|
+
}>;
|
|
22
|
+
defaultEndpointMap: Record<string, string>;
|
|
23
|
+
legacyEndpointMap: Record<string, string>;
|
|
24
|
+
defaultMutationTools: string[];
|
|
25
|
+
legacyMutationTools: string[];
|
|
26
|
+
metadataByTool: Record<string, {
|
|
27
|
+
canonicalToolName?: string;
|
|
28
|
+
layer: string;
|
|
29
|
+
domain: string;
|
|
30
|
+
bounded: boolean;
|
|
31
|
+
visibility: string;
|
|
32
|
+
hostedVisibility: string;
|
|
33
|
+
preferred: boolean;
|
|
34
|
+
replaces: string[];
|
|
35
|
+
audience: string;
|
|
36
|
+
benchmarkScenario?: string | null;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
export type GeneratedToolTransportSupport = {
|
|
40
|
+
localStdio: boolean;
|
|
41
|
+
hostedRemote: boolean;
|
|
42
|
+
capabilityHttp: boolean;
|
|
43
|
+
localOnly: boolean;
|
|
44
|
+
remoteOnly: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type GeneratedToolEndpointTransportClass = 'capability_http' | 'hosted_remote_mcp_compatibility' | 'local_stdio_only' | 'unsupported_transport';
|
|
47
|
+
export type GeneratedToolEndpointHealthClass = 'works' | 'half_works' | 'doesnt_work' | 'requires_fulfillment' | 'fixture_required' | 'not_capability_http' | 'unknown_tool';
|
|
48
|
+
export type GeneratedToolEndpointProbe = {
|
|
49
|
+
kind: 'http_success';
|
|
50
|
+
httpStatus?: number;
|
|
51
|
+
reason?: string;
|
|
52
|
+
} | {
|
|
53
|
+
kind: 'http_error';
|
|
54
|
+
httpStatus: number;
|
|
55
|
+
code?: string;
|
|
56
|
+
reason?: string;
|
|
57
|
+
} | {
|
|
58
|
+
kind: 'capability_fulfillment_disabled';
|
|
59
|
+
httpStatus?: number;
|
|
60
|
+
code?: string;
|
|
61
|
+
reason?: string;
|
|
62
|
+
} | {
|
|
63
|
+
kind: 'fixture_required';
|
|
64
|
+
reason?: string;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'not_exercised';
|
|
67
|
+
reason?: string;
|
|
68
|
+
};
|
|
69
|
+
export type GeneratedToolEndpointStatus = {
|
|
70
|
+
toolName: string;
|
|
71
|
+
routePath: string | null;
|
|
72
|
+
transportClass: GeneratedToolEndpointTransportClass;
|
|
73
|
+
healthClass: GeneratedToolEndpointHealthClass;
|
|
74
|
+
statusLabel: string;
|
|
75
|
+
reason: string;
|
|
76
|
+
};
|
|
77
|
+
export type HostedRemoteRolloutTier = 'foundation_live' | 'tranche_2_safe_reads' | 'tranche_3_safe_writes' | 'tranche_4_power_writes' | 'hold_high_risk';
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { generatedDefaultVisibleToolNames } from './generated/tools.visibility.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { generatedDefaultVisibleToolNames } from './generated/tools.visibility.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { generatedWriteTools } from './generated/tools.write-set.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { generatedWriteTools } from './generated/tools.write-set.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "asqend-mcp-contracts",
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Shared MCP contract scaffolding for Asqend transports",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc -p tsconfig.json && mkdir -p dist/generated && cp src/generated/*.json dist/generated/"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./dist/index.js",
|
|
18
|
+
"./manifest": "./dist/manifest.js",
|
|
19
|
+
"./definitions": "./dist/definitions.js",
|
|
20
|
+
"./dispatch": "./dist/dispatch.js",
|
|
21
|
+
"./visibility": "./dist/visibility.js",
|
|
22
|
+
"./write-set": "./dist/write-set.js",
|
|
23
|
+
"./fallback-set": "./dist/fallback-set.js",
|
|
24
|
+
"./hosted-bridge": "./dist/hosted-bridge.js",
|
|
25
|
+
"./hosted-tools": "./dist/hosted-tools.js",
|
|
26
|
+
"./hosted-rollout": "./dist/hosted-rollout.js",
|
|
27
|
+
"./transport-support": "./dist/transport-support.js",
|
|
28
|
+
"./types": "./dist/types.js"
|
|
29
|
+
}
|
|
30
|
+
}
|