@adaptivemcp/spec 0.1.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/events.d.ts +15 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +19 -0
- package/dist/events.js.map +1 -0
- package/dist/extensions.d.ts +35 -0
- package/dist/extensions.d.ts.map +1 -0
- package/dist/extensions.js +38 -0
- package/dist/extensions.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +98 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +26 -0
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ToolExecutionEvent, ToolStatus } from "./types.js";
|
|
2
|
+
export declare const TOOL_EXECUTION_EVENT: "dev.adaptivemcp/telemetry/tool.execution";
|
|
3
|
+
export interface ToolEventContext {
|
|
4
|
+
toolName: string;
|
|
5
|
+
serverName?: string;
|
|
6
|
+
sessionId?: string;
|
|
7
|
+
requestId?: string;
|
|
8
|
+
model?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Construct a tool execution event with sensible defaults. Timestamps use the
|
|
12
|
+
* ISO-8601 format; identifiers use a UUID v4 when not supplied.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createToolEvent(ctx: ToolEventContext, status: ToolStatus, extra?: Partial<ToolExecutionEvent>): ToolExecutionEvent;
|
|
15
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEjE,eAAO,MAAM,oBAAoB,EAAG,0CAAmD,CAAC;AAExF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,gBAAgB,EACrB,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,OAAO,CAAC,kBAAkB,CAAM,GACtC,kBAAkB,CAYpB"}
|
package/dist/events.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const TOOL_EXECUTION_EVENT = "dev.adaptivemcp/telemetry/tool.execution";
|
|
2
|
+
/**
|
|
3
|
+
* Construct a tool execution event with sensible defaults. Timestamps use the
|
|
4
|
+
* ISO-8601 format; identifiers use a UUID v4 when not supplied.
|
|
5
|
+
*/
|
|
6
|
+
export function createToolEvent(ctx, status, extra = {}) {
|
|
7
|
+
return {
|
|
8
|
+
id: extra.id ?? crypto.randomUUID(),
|
|
9
|
+
toolName: ctx.toolName,
|
|
10
|
+
serverName: ctx.serverName,
|
|
11
|
+
sessionId: ctx.sessionId,
|
|
12
|
+
requestId: ctx.requestId,
|
|
13
|
+
model: ctx.model,
|
|
14
|
+
timestamp: extra.timestamp ?? new Date().toISOString(),
|
|
15
|
+
status,
|
|
16
|
+
...extra,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,0CAAmD,CAAC;AAUxF;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAqB,EACrB,MAAkB,EAClB,QAAqC,EAAE;IAEvC,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,UAAU,EAAE;QACnC,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACtD,MAAM;QACN,GAAG,KAAK;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifiers for Adaptive MCP.
|
|
3
|
+
*
|
|
4
|
+
* MCP formalizes the server contract; the client side is loosely specified.
|
|
5
|
+
* Adaptive MCP's learning machinery runs on the client, which MCP does not
|
|
6
|
+
* govern. Therefore only ONE surface is proposed as a real MCP extension
|
|
7
|
+
* (SEP-2133): the `tools-metadata` resource a server publishes so clients can
|
|
8
|
+
* read learned tool metadata. See `docs/sep-2133-tools-metadata.md`.
|
|
9
|
+
*
|
|
10
|
+
* The remaining entries are internal, reversed-domain identifiers for the
|
|
11
|
+
* client-side packages. They follow the SEP-2133 naming convention (reversed
|
|
12
|
+
* domain `dev.adaptivemcp` owned by the author) but are NOT advertised as MCP
|
|
13
|
+
* extensions — they are namespacing for in-process concepts, not protocol
|
|
14
|
+
* extensions.
|
|
15
|
+
*/
|
|
16
|
+
export declare const EXTENSION_NAMESPACE = "dev.adaptivemcp/";
|
|
17
|
+
/** The single proposed MCP extension (SEP-2133): a server-published resource. */
|
|
18
|
+
export declare const TOOLS_METADATA_EXTENSION = "dev.adaptivemcp/tools-metadata";
|
|
19
|
+
/**
|
|
20
|
+
* Internal reversed-domain identifiers for client-side packages. These are NOT
|
|
21
|
+
* MCP extensions; they namespace in-process concepts to avoid collisions.
|
|
22
|
+
*/
|
|
23
|
+
export declare const PACKAGE_IDENTIFIERS: {
|
|
24
|
+
readonly telemetry: "dev.adaptivemcp/telemetry";
|
|
25
|
+
readonly insights: "dev.adaptivemcp/insights";
|
|
26
|
+
readonly evaluation: "dev.adaptivemcp/evaluation";
|
|
27
|
+
readonly memory: "dev.adaptivemcp/memory";
|
|
28
|
+
readonly routing: "dev.adaptivemcp/routing";
|
|
29
|
+
readonly orchestration: "dev.adaptivemcp/orchestration";
|
|
30
|
+
readonly approval: "dev.adaptivemcp/approval";
|
|
31
|
+
};
|
|
32
|
+
export type PackageIdentifierName = keyof typeof PACKAGE_IDENTIFIERS;
|
|
33
|
+
export declare function isExtensionIdentifier(value: string): boolean;
|
|
34
|
+
export declare function packageIdentifier(name: PackageIdentifierName): string;
|
|
35
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../src/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAEtD,iFAAiF;AACjF,eAAO,MAAM,wBAAwB,mCAAmC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;CAQtB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAErE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAErE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifiers for Adaptive MCP.
|
|
3
|
+
*
|
|
4
|
+
* MCP formalizes the server contract; the client side is loosely specified.
|
|
5
|
+
* Adaptive MCP's learning machinery runs on the client, which MCP does not
|
|
6
|
+
* govern. Therefore only ONE surface is proposed as a real MCP extension
|
|
7
|
+
* (SEP-2133): the `tools-metadata` resource a server publishes so clients can
|
|
8
|
+
* read learned tool metadata. See `docs/sep-2133-tools-metadata.md`.
|
|
9
|
+
*
|
|
10
|
+
* The remaining entries are internal, reversed-domain identifiers for the
|
|
11
|
+
* client-side packages. They follow the SEP-2133 naming convention (reversed
|
|
12
|
+
* domain `dev.adaptivemcp` owned by the author) but are NOT advertised as MCP
|
|
13
|
+
* extensions — they are namespacing for in-process concepts, not protocol
|
|
14
|
+
* extensions.
|
|
15
|
+
*/
|
|
16
|
+
export const EXTENSION_NAMESPACE = "dev.adaptivemcp/";
|
|
17
|
+
/** The single proposed MCP extension (SEP-2133): a server-published resource. */
|
|
18
|
+
export const TOOLS_METADATA_EXTENSION = "dev.adaptivemcp/tools-metadata";
|
|
19
|
+
/**
|
|
20
|
+
* Internal reversed-domain identifiers for client-side packages. These are NOT
|
|
21
|
+
* MCP extensions; they namespace in-process concepts to avoid collisions.
|
|
22
|
+
*/
|
|
23
|
+
export const PACKAGE_IDENTIFIERS = {
|
|
24
|
+
telemetry: "dev.adaptivemcp/telemetry",
|
|
25
|
+
insights: "dev.adaptivemcp/insights",
|
|
26
|
+
evaluation: "dev.adaptivemcp/evaluation",
|
|
27
|
+
memory: "dev.adaptivemcp/memory",
|
|
28
|
+
routing: "dev.adaptivemcp/routing",
|
|
29
|
+
orchestration: "dev.adaptivemcp/orchestration",
|
|
30
|
+
approval: "dev.adaptivemcp/approval",
|
|
31
|
+
};
|
|
32
|
+
export function isExtensionIdentifier(value) {
|
|
33
|
+
return typeof value === "string" && value.startsWith(EXTENSION_NAMESPACE);
|
|
34
|
+
}
|
|
35
|
+
export function packageIdentifier(name) {
|
|
36
|
+
return PACKAGE_IDENTIFIERS[name];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=extensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../src/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAEtD,iFAAiF;AACjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,gCAAgC,CAAC;AAEzE;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,2BAA2B;IACtC,QAAQ,EAAE,0BAA0B;IACpC,UAAU,EAAE,4BAA4B;IACxC,MAAM,EAAE,wBAAwB;IAChC,OAAO,EAAE,yBAAyB;IAClC,aAAa,EAAE,+BAA+B;IAC9C,QAAQ,EAAE,0BAA0B;CAC5B,CAAC;AAIX,MAAM,UAAU,qBAAqB,CAAC,KAAa;IACjD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAA2B;IAC3D,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared interfaces for Adaptive MCP.
|
|
3
|
+
*
|
|
4
|
+
* These types describe the application-level boundaries Adaptive MCP operates on.
|
|
5
|
+
* They intentionally avoid coupling to shell commands, filesystems, processes,
|
|
6
|
+
* sockets, or HTTP requests — those remain implementation details of MCP servers.
|
|
7
|
+
*/
|
|
8
|
+
export type ToolStatus = "started" | "completed" | "failed" | "cancelled";
|
|
9
|
+
export interface CostInfo {
|
|
10
|
+
inputTokens?: number;
|
|
11
|
+
outputTokens?: number;
|
|
12
|
+
currency?: string;
|
|
13
|
+
amount?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ToolError {
|
|
16
|
+
message: string;
|
|
17
|
+
code?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A single observation of a tool execution. This is the atomic unit of the
|
|
21
|
+
* observation layer and feeds telemetry, evaluation, and memory.
|
|
22
|
+
*/
|
|
23
|
+
export interface ToolExecutionEvent {
|
|
24
|
+
id: string;
|
|
25
|
+
toolName: string;
|
|
26
|
+
serverName?: string;
|
|
27
|
+
sessionId?: string;
|
|
28
|
+
requestId?: string;
|
|
29
|
+
timestamp: string;
|
|
30
|
+
durationMs?: number;
|
|
31
|
+
status: ToolStatus;
|
|
32
|
+
input?: unknown;
|
|
33
|
+
output?: unknown;
|
|
34
|
+
error?: ToolError;
|
|
35
|
+
model?: string;
|
|
36
|
+
cost?: CostInfo;
|
|
37
|
+
metadata?: Record<string, unknown>;
|
|
38
|
+
}
|
|
39
|
+
export type InsightSource = "telemetry" | "evaluation" | "human" | "memory";
|
|
40
|
+
/**
|
|
41
|
+
* Learned metadata about a tool. Unlike static annotations, insights are
|
|
42
|
+
* derived from observed behavior and carry a confidence score.
|
|
43
|
+
*/
|
|
44
|
+
export interface Insight {
|
|
45
|
+
toolName: string;
|
|
46
|
+
key: string;
|
|
47
|
+
value: unknown;
|
|
48
|
+
confidence: number;
|
|
49
|
+
source: InsightSource;
|
|
50
|
+
observedAt: string;
|
|
51
|
+
sampleSize?: number;
|
|
52
|
+
}
|
|
53
|
+
export type RiskLevel = "low" | "medium" | "high";
|
|
54
|
+
/**
|
|
55
|
+
* Written metadata attached to a tool by a human or operator.
|
|
56
|
+
*/
|
|
57
|
+
export interface Annotation {
|
|
58
|
+
toolName: string;
|
|
59
|
+
risk?: RiskLevel;
|
|
60
|
+
owner?: string;
|
|
61
|
+
tags?: string[];
|
|
62
|
+
description?: string;
|
|
63
|
+
metadata?: Record<string, unknown>;
|
|
64
|
+
}
|
|
65
|
+
export type RecommendationType = "model" | "approval" | "workflow" | "routing";
|
|
66
|
+
/**
|
|
67
|
+
* A suggested adaptation derived from accumulated knowledge.
|
|
68
|
+
*/
|
|
69
|
+
export interface Recommendation {
|
|
70
|
+
toolName: string;
|
|
71
|
+
type: RecommendationType;
|
|
72
|
+
payload: unknown;
|
|
73
|
+
rationale: string;
|
|
74
|
+
confidence: number;
|
|
75
|
+
generatedAt: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The single source of truth (SSOT) record for a tool, persisted in SQLite.
|
|
79
|
+
* The YAML tools-metadata view is derived from this record.
|
|
80
|
+
*/
|
|
81
|
+
export interface ToolRecord {
|
|
82
|
+
toolName: string;
|
|
83
|
+
serverName?: string;
|
|
84
|
+
annotation: Annotation;
|
|
85
|
+
insights: Insight[];
|
|
86
|
+
recommendations: Recommendation[];
|
|
87
|
+
stats: ToolStats;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
}
|
|
90
|
+
export interface ToolStats {
|
|
91
|
+
invocations: number;
|
|
92
|
+
failures: number;
|
|
93
|
+
failureRate: number;
|
|
94
|
+
avgDurationMs: number | null;
|
|
95
|
+
totalCost: number;
|
|
96
|
+
lastObservedAt: string | null;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU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
2
|
+
* Shared interfaces for Adaptive MCP.
|
|
3
|
+
*
|
|
4
|
+
* These types describe the application-level boundaries Adaptive MCP operates on.
|
|
5
|
+
* They intentionally avoid coupling to shell commands, filesystems, processes,
|
|
6
|
+
* sockets, or HTTP requests — those remain implementation details of MCP servers.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UAAU,CAAC"}
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@adaptivemcp/spec",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Extension identifiers, event schemas, and shared types for Adaptive MCP.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc -p tsconfig.json",
|
|
20
|
+
"test": "vitest run --config ../../vitest.config.ts"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"typescript": "^5.6.0",
|
|
24
|
+
"vitest": "^2.1.0"
|
|
25
|
+
}
|
|
26
|
+
}
|