@martinloop/mcp 0.5.0 → 0.5.1
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/resources.js +15 -3
- package/dist/server.js +40 -8
- package/dist/tools/doctor.js +5 -4
- package/dist/tools/get-status.d.ts +2 -0
- package/dist/tools/get-status.js +1 -0
- package/dist/tools/preflight.js +1 -1
- package/dist/tools/run-loop.d.ts +6 -1
- package/dist/tools/run-loop.js +22 -7
- package/dist/tools/tool-errors.js +1 -1
- package/dist/tools/tool-response.js +9 -2
- package/dist/tools/tool-support.d.ts +3 -2
- package/dist/tools/tool-support.js +5 -3
- package/dist/vendor/adapters/claude-cli.d.ts +2 -2
- package/dist/vendor/adapters/claude-cli.js +59 -34
- package/dist/vendor/adapters/index.d.ts +1 -1
- package/dist/vendor/adapters/index.js +1 -1
- package/dist/vendor/adapters/openai-compatible.d.ts +2 -3
- package/dist/vendor/adapters/openai-compatible.js +33 -7
- package/dist/vendor/adapters/verifier-only.d.ts +9 -0
- package/dist/vendor/adapters/verifier-only.js +68 -0
- package/dist/vendor/contracts/index.d.ts +16 -6
- package/dist/vendor/contracts/index.js +1 -1
- package/dist/vendor/contracts/verified-handoff.d.ts +6 -0
- package/dist/vendor/contracts/verified-handoff.js +5 -0
- package/dist/vendor/core/grounding.d.ts +2 -1
- package/dist/vendor/core/grounding.js +40 -5
- package/dist/vendor/core/index.d.ts +4 -6
- package/dist/vendor/core/index.js +25 -19
- package/dist/vendor/core/persistence/runs-reader.d.ts +2 -0
- package/dist/vendor/core/policy.js +6 -6
- package/dist/vendor/core/red-blue/red-phase.d.ts +2 -1
- package/dist/vendor/core/red-blue/red-phase.js +3 -3
- package/dist/vendor/core/red-blue/risk-tiers.d.ts +2 -4
- package/dist/vendor/core/red-blue/risk-tiers.js +1 -3
- package/dist/vendor/core/routing.d.ts +0 -42
- package/dist/vendor/core/routing.js +4 -154
- package/dist/vendor/core/verified-handoff.d.ts +6 -1
- package/dist/vendor/core/verified-handoff.js +28 -0
- package/package.json +6 -2
- package/server.json +2 -2
- package/dist/vendor/adapters/stub-direct-provider.d.ts +0 -8
- package/dist/vendor/adapters/stub-direct-provider.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@martinloop/mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"mcpName": "io.github.Keesan12/martin-loop",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -59,7 +59,10 @@
|
|
|
59
59
|
"test": "vitest run --maxWorkers=1",
|
|
60
60
|
"lint": "tsc -p tsconfig.json --noEmit",
|
|
61
61
|
"start": "node dist/server.js",
|
|
62
|
-
"inspect:live": "node ./scripts/inspect-live.mjs"
|
|
62
|
+
"inspect:live": "node ./scripts/inspect-live.mjs",
|
|
63
|
+
"mcpb:build": "node ./mcpb/build-mcpb.mjs",
|
|
64
|
+
"mcpb:validate": "mcpb validate ./dist-mcpb/martinloop",
|
|
65
|
+
"mcpb:smoke": "node ./mcpb/smoke-mcpb.mjs"
|
|
63
66
|
},
|
|
64
67
|
"dependencies": {
|
|
65
68
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
@@ -71,6 +74,7 @@
|
|
|
71
74
|
"ts-morph": "^21.0.0"
|
|
72
75
|
},
|
|
73
76
|
"devDependencies": {
|
|
77
|
+
"@anthropic-ai/mcpb": "2.1.2",
|
|
74
78
|
"@martin/contracts": "workspace:*"
|
|
75
79
|
}
|
|
76
80
|
}
|
package/server.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"url": "https://github.com/Keesan12/martin-loop",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.5.
|
|
10
|
+
"version": "0.5.1",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@martinloop/mcp",
|
|
15
|
-
"version": "0.5.
|
|
15
|
+
"version": "0.5.1",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { MartinAdapter, MartinAdapterRequest, MartinAdapterResult } from "../core/index.js";
|
|
2
|
-
export interface StubDirectProviderAdapterOptions {
|
|
3
|
-
providerId: string;
|
|
4
|
-
model: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
responder?: (request: MartinAdapterRequest) => Promise<MartinAdapterResult> | MartinAdapterResult;
|
|
7
|
-
}
|
|
8
|
-
export declare function createStubDirectProviderAdapter(options: StubDirectProviderAdapterOptions): MartinAdapter;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createDirectProviderAdapter } from "./direct-provider.js";
|
|
2
|
-
export function createStubDirectProviderAdapter(options) {
|
|
3
|
-
return createDirectProviderAdapter({
|
|
4
|
-
providerId: options.providerId,
|
|
5
|
-
model: options.model,
|
|
6
|
-
label: options.label ?? `Stub direct provider (${options.providerId}/${options.model})`,
|
|
7
|
-
capabilities: {
|
|
8
|
-
workspaceMutations: false
|
|
9
|
-
},
|
|
10
|
-
responder: options.responder
|
|
11
|
-
});
|
|
12
|
-
}
|