@sigrun/ext-mcp 0.0.0-stage → 0.2.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.
@@ -0,0 +1,28 @@
1
+ /** Wire types for the MCP stdio protocol surface this extension uses. */
2
+ import type { McpServerConfig } from "./config.js";
3
+ /** One tool as `tools/list` reports it. */
4
+ export interface McpToolDefinition {
5
+ readonly name: string;
6
+ readonly description?: string;
7
+ /** JSON Schema for the tool's arguments object. */
8
+ readonly inputSchema?: {
9
+ readonly type?: unknown;
10
+ readonly properties?: unknown;
11
+ readonly required?: unknown;
12
+ [key: string]: unknown;
13
+ };
14
+ }
15
+ /** One content block in a `tools/call` result. */
16
+ export interface McpContentBlock {
17
+ readonly type: string;
18
+ readonly text?: string;
19
+ [key: string]: unknown;
20
+ }
21
+ /** A `tools/call` result: content blocks plus the error flag. */
22
+ export interface McpToolResult {
23
+ readonly content?: readonly McpContentBlock[];
24
+ /** True when the tool ran and reported failure (a valid outcome). */
25
+ readonly isError?: boolean;
26
+ [key: string]: unknown;
27
+ }
28
+ export type { McpServerConfig };
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ /** Wire types for the MCP stdio protocol surface this extension uses. */
2
+ export {};
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
- "name": "@sigrun/ext-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@sigrun/ext-mcp",
3
+ "version": "0.2.0",
4
+ "description": "MCP extension for sigrun (pi-durable): registers MCP server tools as <server>/<toolname> tools",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=22.19.0"
8
+ },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "bin": {
12
+ "sigrun-ext-mcp": "dist/bin.js"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "CHANGELOG.md"
23
+ ],
24
+ "scripts": {
25
+ "test": "node scripts/check-manifest.mjs --expect-name @sigrun/ext-mcp && vitest run",
26
+ "typecheck": "tsc --noEmit",
27
+ "build": "tsc -p tsconfig.build.json",
28
+ "prepare": "npm run build"
29
+ },
30
+ "peerDependencies": {
31
+ "@earendil-works/chord": "1.3.0",
32
+ "@earendil-works/pi-ai": "1.3.0",
33
+ "@earendil-works/pi-durable": "1.3.0",
34
+ "typebox": "1.3.27"
35
+ },
36
+ "devDependencies": {
37
+ "@earendil-works/chord": "1.3.0",
38
+ "@earendil-works/pi-ai": "1.3.0",
39
+ "@earendil-works/pi-durable": "1.3.0",
40
+ "typebox": "1.3.27",
41
+ "@types/node": "^26.6.4",
42
+ "tsx": "^4.23.15",
43
+ "typescript": "^7.0.2",
44
+ "vitest": "^5.0.3"
45
+ },
46
+ "license": "MIT",
47
+ "repository": {
48
+ "type": "github",
49
+ "url": "git+https://github.com/sigrun-ai/sigrun-ext-mcp.git"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/sigrun-ai/sigrun-ext-mcp/issues"
53
+ },
54
+ "homepage": "https://github.com/sigrun-ai/sigrun-ext-mcp#readme",
55
+ "publishConfig": {
56
+ "access": "public",
57
+ "provenance": true
58
+ }
59
+ }