@goke/mcp 0.0.6 → 0.0.8
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/__test__/add-cli-tools-to-mcp.test.d.ts.map +1 -0
- package/dist/{test → __test__}/add-cli-tools-to-mcp.test.js +1 -1
- package/dist/auth.d.ts.map +1 -0
- package/dist/cli-to-mcp.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/local-callback-server.d.ts.map +1 -0
- package/dist/oauth-provider.d.ts.map +1 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +27 -15
- package/src/__test__/add-cli-tools-to-mcp.test.ts +459 -0
- package/dist/src/auth.d.ts.map +0 -1
- package/dist/src/cli-to-mcp.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/local-callback-server.d.ts.map +0 -1
- package/dist/src/oauth-provider.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/test/add-cli-tools-to-mcp.test.d.ts.map +0 -1
- /package/dist/{test → __test__}/add-cli-tools-to-mcp.test.d.ts +0 -0
- /package/dist/{src/auth.d.ts → auth.d.ts} +0 -0
- /package/dist/{src/auth.js → auth.js} +0 -0
- /package/dist/{src/cli-to-mcp.d.ts → cli-to-mcp.d.ts} +0 -0
- /package/dist/{src/cli-to-mcp.js → cli-to-mcp.js} +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/local-callback-server.d.ts → local-callback-server.d.ts} +0 -0
- /package/dist/{src/local-callback-server.js → local-callback-server.js} +0 -0
- /package/dist/{src/oauth-provider.d.ts → oauth-provider.d.ts} +0 -0
- /package/dist/{src/oauth-provider.js → oauth-provider.js} +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{src/types.js → types.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-cli-tools-to-mcp.test.d.ts","sourceRoot":"","sources":["../../src/__test__/add-cli-tools-to-mcp.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -9,7 +9,7 @@ import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError } fr
|
|
|
9
9
|
import { goke, wrapJsonSchema } from "goke";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
import { describe, expect, it } from "vitest";
|
|
12
|
-
import { addCliToolsToMcp } from "../
|
|
12
|
+
import { addCliToolsToMcp } from "../cli-to-mcp.js";
|
|
13
13
|
function createCli() {
|
|
14
14
|
const cli = goke("test-cli");
|
|
15
15
|
cli
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,eAAe,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA0BxF;;;;;;;;;;;;GAYG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CA4E7F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAazD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-to-mcp.d.ts","sourceRoot":"","sources":["../src/cli-to-mcp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AASxE,OAAO,EAAmD,KAAK,IAAI,EAA6B,MAAM,MAAM,CAAC;AAwD7G,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,IAAI,CAAC;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IACjD,gBA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AAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAEvF;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,cAAc,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACxD;AAmID;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyMlF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-callback-server.d.ts","sourceRoot":"","sources":["../src/local-callback-server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA2FxE;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC;IACtF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/C,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC,CAgFD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-provider.d.ts","sourceRoot":"","sources":["../src/oauth-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,WAAW,EACZ,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,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,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goke/mcp",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Dynamically generate CLI commands from MCP server tools",
|
|
3
|
+
"version": "0.0.8",
|
|
5
4
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"description": "Dynamically generate CLI commands from MCP server tools",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/remorses/goke",
|
|
9
|
+
"directory": "mcp"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/remorses/goke/tree/main/mcp",
|
|
12
|
+
"bugs": "https://github.com/remorses/goke/issues",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcp",
|
|
15
|
+
"cli",
|
|
16
|
+
"goke",
|
|
17
|
+
"model-context-protocol"
|
|
18
|
+
],
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
8
21
|
"exports": {
|
|
22
|
+
"./package.json": "./package.json",
|
|
9
23
|
".": {
|
|
10
24
|
"types": "./dist/index.d.ts",
|
|
11
|
-
"
|
|
25
|
+
"default": "./dist/index.js"
|
|
12
26
|
},
|
|
13
|
-
"./src
|
|
27
|
+
"./src": {
|
|
14
28
|
"types": "./src/index.ts",
|
|
15
|
-
"
|
|
29
|
+
"default": "./src/index.ts"
|
|
30
|
+
},
|
|
31
|
+
"./src/*": {
|
|
32
|
+
"types": "./src/*.ts",
|
|
33
|
+
"default": "./src/*.ts"
|
|
16
34
|
}
|
|
17
35
|
},
|
|
18
36
|
"files": [
|
|
19
37
|
"dist",
|
|
20
38
|
"src"
|
|
21
39
|
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"mcp",
|
|
24
|
-
"cli",
|
|
25
|
-
"goke"
|
|
26
|
-
],
|
|
27
40
|
"author": "Tommaso De Rossi, morse <beats.by.morse@gmail.com>",
|
|
28
41
|
"license": "MIT",
|
|
29
42
|
"dependencies": {
|
|
@@ -38,12 +51,11 @@
|
|
|
38
51
|
"@types/node": "^22.19.7",
|
|
39
52
|
"vitest": "^3.1.0",
|
|
40
53
|
"zod": "^4.3.6",
|
|
41
|
-
"goke": "^6.2.
|
|
54
|
+
"goke": "^6.2.3"
|
|
42
55
|
},
|
|
43
56
|
"scripts": {
|
|
44
57
|
"clean": "rm -rf dist",
|
|
45
58
|
"build": "pnpm clean && tsc",
|
|
46
|
-
"test": "vitest --run"
|
|
47
|
-
"watch": "tsc -w"
|
|
59
|
+
"test": "vitest --run"
|
|
48
60
|
}
|
|
49
61
|
}
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* End-to-end tests for exposing a goke CLI as MCP tools.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
6
|
+
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
7
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
8
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
9
|
+
import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError } from "@modelcontextprotocol/sdk/types.js";
|
|
10
|
+
import { goke, wrapJsonSchema } from "goke";
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
import { describe, expect, it } from "vitest";
|
|
13
|
+
import { addCliToolsToMcp } from "../cli-to-mcp.js";
|
|
14
|
+
|
|
15
|
+
function createCli() {
|
|
16
|
+
const cli = goke("test-cli");
|
|
17
|
+
|
|
18
|
+
cli
|
|
19
|
+
.command("say hi", "Say hello")
|
|
20
|
+
.option("--name <name>", z.string().describe("Person to greet"))
|
|
21
|
+
.option("--caps", z.boolean().default(false).describe("Uppercase output"))
|
|
22
|
+
.action((options: { name: string; caps: boolean }) => {
|
|
23
|
+
const message = `Hello ${options.name}!`;
|
|
24
|
+
return options.caps ? message.toUpperCase() : message;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
cli
|
|
28
|
+
.command("sum-values", "Add two numbers")
|
|
29
|
+
.option(
|
|
30
|
+
"--left <left>",
|
|
31
|
+
wrapJsonSchema({
|
|
32
|
+
type: "number",
|
|
33
|
+
description: "Left operand",
|
|
34
|
+
}),
|
|
35
|
+
)
|
|
36
|
+
.option(
|
|
37
|
+
"--right <right>",
|
|
38
|
+
wrapJsonSchema({
|
|
39
|
+
type: "number",
|
|
40
|
+
description: "Right operand",
|
|
41
|
+
}),
|
|
42
|
+
)
|
|
43
|
+
.action((options: { left: number; right: number }) => ({
|
|
44
|
+
sum: options.left + options.right,
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
cli
|
|
48
|
+
.command("echo <message>", "Echo positional message")
|
|
49
|
+
.option(
|
|
50
|
+
"--repeat [repeat]",
|
|
51
|
+
wrapJsonSchema({
|
|
52
|
+
type: "integer",
|
|
53
|
+
default: 2,
|
|
54
|
+
description: "Repeat count",
|
|
55
|
+
}),
|
|
56
|
+
)
|
|
57
|
+
.action((message: string, options: { repeat: number }) => {
|
|
58
|
+
return message.repeat(options.repeat);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
cli
|
|
62
|
+
.command("string-options", "Infer option types from plain string descriptions")
|
|
63
|
+
.option("--title <title>", "Required title")
|
|
64
|
+
.option("--tag [tag]", "Optional tag")
|
|
65
|
+
.option("--dry-run", "Dry run flag")
|
|
66
|
+
.action((options: { title: string; tag?: string; dryRun?: boolean }) => {
|
|
67
|
+
return options;
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
return cli;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function firstTextContent(result: Awaited<ReturnType<Client["callTool"]>>): string {
|
|
74
|
+
const content = "content" in result ? (result as { content: Array<{ type: string; text?: string }> }).content : [];
|
|
75
|
+
return content.find((entry) => entry.type === "text")?.text ?? "";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function expectCommandDescriptions(tools: Array<{ name: string; description?: string }>): void {
|
|
79
|
+
const descriptionByName = Object.fromEntries(tools.map((tool) => [tool.name, tool.description]));
|
|
80
|
+
|
|
81
|
+
expect(descriptionByName).toMatchObject({
|
|
82
|
+
say_hi: "Say hello",
|
|
83
|
+
"sum-values": "Add two numbers",
|
|
84
|
+
echo: "Echo positional message",
|
|
85
|
+
"string-options": "Infer option types from plain string descriptions",
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function addUserLowLevelTools(server: Server): void {
|
|
90
|
+
server.registerCapabilities({ tools: { listChanged: true } });
|
|
91
|
+
server.setRequestHandler(ListToolsRequestSchema, () => ({
|
|
92
|
+
tools: [
|
|
93
|
+
{
|
|
94
|
+
name: "user_tool",
|
|
95
|
+
description: "Tool added directly by user",
|
|
96
|
+
inputSchema: {
|
|
97
|
+
type: "object",
|
|
98
|
+
properties: {},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
105
|
+
if (request.params.name !== "user_tool") {
|
|
106
|
+
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} not found`);
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
content: [{ type: "text", text: "from-user-low-level" }],
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async function runScenario(
|
|
115
|
+
mode: "low-level-server" | "mcp-server",
|
|
116
|
+
): Promise<{
|
|
117
|
+
tools: Array<{ name: string; description?: string }>;
|
|
118
|
+
greeting: string;
|
|
119
|
+
sum: string;
|
|
120
|
+
echo: string;
|
|
121
|
+
stringOptions: string;
|
|
122
|
+
}> {
|
|
123
|
+
const cli = createCli();
|
|
124
|
+
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
|
|
125
|
+
|
|
126
|
+
const server = mode === "low-level-server"
|
|
127
|
+
? new Server({ name: "test-server", version: "1.0.0" }, { capabilities: {} })
|
|
128
|
+
: new McpServer({ name: "test-server", version: "1.0.0" });
|
|
129
|
+
|
|
130
|
+
addCliToolsToMcp({ cli, server });
|
|
131
|
+
|
|
132
|
+
const client = new Client({ name: "test-client", version: "1.0.0" }, { capabilities: {} });
|
|
133
|
+
|
|
134
|
+
try {
|
|
135
|
+
await server.connect(serverTransport);
|
|
136
|
+
await client.connect(clientTransport);
|
|
137
|
+
|
|
138
|
+
const toolsResult = await client.listTools();
|
|
139
|
+
|
|
140
|
+
const greetingResult = await client.callTool({
|
|
141
|
+
name: "say_hi",
|
|
142
|
+
arguments: { name: "Tommy" },
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const sumResult = await client.callTool({
|
|
146
|
+
name: "sum-values",
|
|
147
|
+
arguments: { left: 2, right: 3 },
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
const echoResult = await client.callTool({
|
|
151
|
+
name: "echo",
|
|
152
|
+
arguments: { message: "ha" },
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
const stringOptionsResult = await client.callTool({
|
|
156
|
+
name: "string-options",
|
|
157
|
+
arguments: {
|
|
158
|
+
title: "Release notes",
|
|
159
|
+
dryRun: true,
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
tools: toolsResult.tools,
|
|
165
|
+
greeting: firstTextContent(greetingResult),
|
|
166
|
+
sum: firstTextContent(sumResult),
|
|
167
|
+
echo: firstTextContent(echoResult),
|
|
168
|
+
stringOptions: firstTextContent(stringOptionsResult),
|
|
169
|
+
};
|
|
170
|
+
} finally {
|
|
171
|
+
await client.close();
|
|
172
|
+
await server.close();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
describe("addCliToolsToMcp", () => {
|
|
177
|
+
it("mounts CLI tools and executes calls with low-level Server", async () => {
|
|
178
|
+
const result = await runScenario("low-level-server");
|
|
179
|
+
|
|
180
|
+
expect("\n" + JSON.stringify(result.tools, null, 2)).toMatchInlineSnapshot(`
|
|
181
|
+
"
|
|
182
|
+
[
|
|
183
|
+
{
|
|
184
|
+
"name": "say_hi",
|
|
185
|
+
"description": "Say hello",
|
|
186
|
+
"inputSchema": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"name": {
|
|
190
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
191
|
+
"type": "string",
|
|
192
|
+
"description": "Person to greet"
|
|
193
|
+
},
|
|
194
|
+
"caps": {
|
|
195
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
196
|
+
"default": false,
|
|
197
|
+
"description": "Uppercase output",
|
|
198
|
+
"type": "boolean"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"name"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "sum-values",
|
|
208
|
+
"description": "Add two numbers",
|
|
209
|
+
"inputSchema": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"properties": {
|
|
212
|
+
"left": {
|
|
213
|
+
"type": "number",
|
|
214
|
+
"description": "Left operand"
|
|
215
|
+
},
|
|
216
|
+
"right": {
|
|
217
|
+
"type": "number",
|
|
218
|
+
"description": "Right operand"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": [
|
|
222
|
+
"left",
|
|
223
|
+
"right"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "echo",
|
|
229
|
+
"description": "Echo positional message",
|
|
230
|
+
"inputSchema": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"properties": {
|
|
233
|
+
"message": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Positional argument message"
|
|
236
|
+
},
|
|
237
|
+
"repeat": {
|
|
238
|
+
"type": "integer",
|
|
239
|
+
"default": 2,
|
|
240
|
+
"description": "Repeat count"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"required": [
|
|
244
|
+
"message"
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "string-options",
|
|
250
|
+
"description": "Infer option types from plain string descriptions",
|
|
251
|
+
"inputSchema": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"title": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"description": "Required title"
|
|
257
|
+
},
|
|
258
|
+
"tag": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"description": "Optional tag"
|
|
261
|
+
},
|
|
262
|
+
"dryRun": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"description": "Dry run flag"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": [
|
|
268
|
+
"title"
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
]"
|
|
273
|
+
`);
|
|
274
|
+
|
|
275
|
+
expectCommandDescriptions(result.tools);
|
|
276
|
+
|
|
277
|
+
expect(result.greeting).toBe("Hello Tommy!");
|
|
278
|
+
expect(result.sum).toBe('{\n "sum": 5\n}');
|
|
279
|
+
expect(result.echo).toBe("haha");
|
|
280
|
+
expect(result.stringOptions).toBe('{\n "title": "Release notes",\n "dryRun": true\n}');
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
it("mounts CLI tools and executes calls with high-level McpServer", async () => {
|
|
284
|
+
const result = await runScenario("mcp-server");
|
|
285
|
+
|
|
286
|
+
expect("\n" + JSON.stringify(result.tools, null, 2)).toMatchInlineSnapshot(`
|
|
287
|
+
"
|
|
288
|
+
[
|
|
289
|
+
{
|
|
290
|
+
"name": "say_hi",
|
|
291
|
+
"description": "Say hello",
|
|
292
|
+
"inputSchema": {
|
|
293
|
+
"type": "object",
|
|
294
|
+
"properties": {
|
|
295
|
+
"name": {
|
|
296
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "Person to greet"
|
|
299
|
+
},
|
|
300
|
+
"caps": {
|
|
301
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
302
|
+
"default": false,
|
|
303
|
+
"description": "Uppercase output",
|
|
304
|
+
"type": "boolean"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"required": [
|
|
308
|
+
"name"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "sum-values",
|
|
314
|
+
"description": "Add two numbers",
|
|
315
|
+
"inputSchema": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"left": {
|
|
319
|
+
"type": "number",
|
|
320
|
+
"description": "Left operand"
|
|
321
|
+
},
|
|
322
|
+
"right": {
|
|
323
|
+
"type": "number",
|
|
324
|
+
"description": "Right operand"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"required": [
|
|
328
|
+
"left",
|
|
329
|
+
"right"
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "echo",
|
|
335
|
+
"description": "Echo positional message",
|
|
336
|
+
"inputSchema": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"properties": {
|
|
339
|
+
"message": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"description": "Positional argument message"
|
|
342
|
+
},
|
|
343
|
+
"repeat": {
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"default": 2,
|
|
346
|
+
"description": "Repeat count"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"message"
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "string-options",
|
|
356
|
+
"description": "Infer option types from plain string descriptions",
|
|
357
|
+
"inputSchema": {
|
|
358
|
+
"type": "object",
|
|
359
|
+
"properties": {
|
|
360
|
+
"title": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "Required title"
|
|
363
|
+
},
|
|
364
|
+
"tag": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"description": "Optional tag"
|
|
367
|
+
},
|
|
368
|
+
"dryRun": {
|
|
369
|
+
"type": "boolean",
|
|
370
|
+
"description": "Dry run flag"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": [
|
|
374
|
+
"title"
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
]"
|
|
379
|
+
`);
|
|
380
|
+
|
|
381
|
+
expectCommandDescriptions(result.tools);
|
|
382
|
+
|
|
383
|
+
expect(result.greeting).toBe("Hello Tommy!");
|
|
384
|
+
expect(result.sum).toBe('{\n "sum": 5\n}');
|
|
385
|
+
expect(result.echo).toBe("haha");
|
|
386
|
+
expect(result.stringOptions).toBe('{\n "title": "Release notes",\n "dryRun": true\n}');
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
it("composes with user tools already mounted on low-level Server", async () => {
|
|
390
|
+
const cli = createCli();
|
|
391
|
+
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
|
|
392
|
+
const server = new Server({ name: "test-server", version: "1.0.0" }, { capabilities: {} });
|
|
393
|
+
const client = new Client({ name: "test-client", version: "1.0.0" }, { capabilities: {} });
|
|
394
|
+
|
|
395
|
+
addUserLowLevelTools(server);
|
|
396
|
+
addCliToolsToMcp({ cli, server, commandFilter: (name) => name === "say hi" });
|
|
397
|
+
|
|
398
|
+
try {
|
|
399
|
+
await server.connect(serverTransport);
|
|
400
|
+
await client.connect(clientTransport);
|
|
401
|
+
|
|
402
|
+
const tools = await client.listTools();
|
|
403
|
+
expect(tools.tools.map((tool) => tool.name).sort()).toEqual(["say_hi", "user_tool"]);
|
|
404
|
+
|
|
405
|
+
const cliResult = await client.callTool({
|
|
406
|
+
name: "say_hi",
|
|
407
|
+
arguments: { name: "Tommy" },
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
const userResult = await client.callTool({
|
|
411
|
+
name: "user_tool",
|
|
412
|
+
arguments: {},
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
expect(firstTextContent(cliResult)).toBe("Hello Tommy!");
|
|
416
|
+
expect(firstTextContent(userResult)).toBe("from-user-low-level");
|
|
417
|
+
} finally {
|
|
418
|
+
await client.close();
|
|
419
|
+
await server.close();
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
it("composes with user tools already mounted on high-level McpServer", async () => {
|
|
424
|
+
const cli = createCli();
|
|
425
|
+
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
|
|
426
|
+
const server = new McpServer({ name: "test-server", version: "1.0.0" });
|
|
427
|
+
const client = new Client({ name: "test-client", version: "1.0.0" }, { capabilities: {} });
|
|
428
|
+
|
|
429
|
+
server.tool("user_tool", "Tool added directly by user", async () => ({
|
|
430
|
+
content: [{ type: "text", text: "from-user-mcp-server" }],
|
|
431
|
+
}));
|
|
432
|
+
|
|
433
|
+
addCliToolsToMcp({ cli, server, commandFilter: (name) => name === "say hi" });
|
|
434
|
+
|
|
435
|
+
try {
|
|
436
|
+
await server.connect(serverTransport);
|
|
437
|
+
await client.connect(clientTransport);
|
|
438
|
+
|
|
439
|
+
const tools = await client.listTools();
|
|
440
|
+
expect(tools.tools.map((tool) => tool.name).sort()).toEqual(["say_hi", "user_tool"]);
|
|
441
|
+
|
|
442
|
+
const cliResult = await client.callTool({
|
|
443
|
+
name: "say_hi",
|
|
444
|
+
arguments: { name: "Tommy" },
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
const userResult = await client.callTool({
|
|
448
|
+
name: "user_tool",
|
|
449
|
+
arguments: {},
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
expect(firstTextContent(cliResult)).toBe("Hello Tommy!");
|
|
453
|
+
expect(firstTextContent(userResult)).toBe("from-user-mcp-server");
|
|
454
|
+
} finally {
|
|
455
|
+
await client.close();
|
|
456
|
+
await server.close();
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
});
|
package/dist/src/auth.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,eAAe,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA0BxF;;;;;;;;;;;;GAYG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC,CA4E7F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAazD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-to-mcp.d.ts","sourceRoot":"","sources":["../../src/cli-to-mcp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AASxE,OAAO,EAAmD,KAAK,IAAI,EAA6B,MAAM,MAAM,CAAC;AAwD7G,MAAM,WAAW,uBAAuB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AAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAErC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAEvF;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,SAAS,EAAE,MAAM,cAAc,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACxD;AAmID;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyMlF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-callback-server.d.ts","sourceRoot":"","sources":["../../src/local-callback-server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA2FxE;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC;IACtF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/C,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC,CAgFD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-provider.d.ts","sourceRoot":"","sources":["../../src/oauth-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,WAAW,EACZ,MA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KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,OAAO,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-cli-tools-to-mcp.test.d.ts","sourceRoot":"","sources":["../../test/add-cli-tools-to-mcp.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|