@modelcontextprotocol/sdk 0.4.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/LICENSE +7 -0
- package/README.md +110 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +116 -0
- package/dist/cli.js.map +1 -0
- package/dist/client/index.d.ts +762 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +110 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/index.test.d.ts +2 -0
- package/dist/client/index.test.d.ts.map +1 -0
- package/dist/client/index.test.js +59 -0
- package/dist/client/index.test.js.map +1 -0
- package/dist/client/sse.d.ts +22 -0
- package/dist/client/sse.d.ts.map +1 -0
- package/dist/client/sse.js +91 -0
- package/dist/client/sse.js.map +1 -0
- package/dist/client/stdio.d.ts +49 -0
- package/dist/client/stdio.d.ts.map +1 -0
- package/dist/client/stdio.js +134 -0
- package/dist/client/stdio.js.map +1 -0
- package/dist/client/stdio.test.d.ts +2 -0
- package/dist/client/stdio.test.d.ts.map +1 -0
- package/dist/client/stdio.test.js +51 -0
- package/dist/client/stdio.test.js.map +1 -0
- package/dist/client/websocket.d.ts +17 -0
- package/dist/client/websocket.d.ts.map +1 -0
- package/dist/client/websocket.js +61 -0
- package/dist/client/websocket.js.map +1 -0
- package/dist/server/index.d.ts +102 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +106 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.test.d.ts +2 -0
- package/dist/server/index.test.d.ts.map +1 -0
- package/dist/server/index.test.js +53 -0
- package/dist/server/index.test.js.map +1 -0
- package/dist/server/sse.d.ts +46 -0
- package/dist/server/sse.d.ts.map +1 -0
- package/dist/server/sse.js +116 -0
- package/dist/server/sse.js.map +1 -0
- package/dist/server/stdio.d.ts +28 -0
- package/dist/server/stdio.d.ts.map +1 -0
- package/dist/server/stdio.js +69 -0
- package/dist/server/stdio.js.map +1 -0
- package/dist/server/stdio.test.d.ts +2 -0
- package/dist/server/stdio.test.d.ts.map +1 -0
- package/dist/server/stdio.test.js +87 -0
- package/dist/server/stdio.test.js.map +1 -0
- package/dist/shared/protocol.d.ts +92 -0
- package/dist/shared/protocol.d.ts.map +1 -0
- package/dist/shared/protocol.js +225 -0
- package/dist/shared/protocol.js.map +1 -0
- package/dist/shared/stdio.d.ts +13 -0
- package/dist/shared/stdio.d.ts.map +1 -0
- package/dist/shared/stdio.js +31 -0
- package/dist/shared/stdio.js.map +1 -0
- package/dist/shared/stdio.test.d.ts +2 -0
- package/dist/shared/stdio.test.d.ts.map +1 -0
- package/dist/shared/stdio.test.js +27 -0
- package/dist/shared/stdio.test.js.map +1 -0
- package/dist/shared/transport.d.ts +39 -0
- package/dist/shared/transport.d.ts.map +1 -0
- package/dist/shared/transport.js +2 -0
- package/dist/shared/transport.js.map +1 -0
- package/dist/types.d.ts +26033 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +967 -0
- package/dist/types.js.map +1 -0
- package/package.json +61 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2024 Anthropic, PBC.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# mcp-typescript
|
|
2
|
+
|
|
3
|
+
TypeScript implementation of the Model Context Protocol (MCP), providing both client and server capabilities for integrating with LLM surfaces.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements the full MCP specification, making it easy to:
|
|
8
|
+
|
|
9
|
+
- Build MCP clients that can connect to any MCP server
|
|
10
|
+
- Create MCP servers that expose resources, prompts and tools
|
|
11
|
+
- Use standard transports like stdio and SSE
|
|
12
|
+
- Handle all MCP protocol messages and lifecycle events
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @modelcontextprotocol/sdk
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
### Creating a Client
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { Client } from "@modelcontextprotocol/sdk/client";
|
|
26
|
+
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio";
|
|
27
|
+
|
|
28
|
+
const transport = new StdioClientTransport({
|
|
29
|
+
command: "path/to/server",
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const client = new Client({
|
|
33
|
+
name: "example-client",
|
|
34
|
+
version: "1.0.0",
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
await client.connect(transport);
|
|
38
|
+
|
|
39
|
+
// List available resources
|
|
40
|
+
const resources = await client.request(
|
|
41
|
+
{ method: "resources/list" },
|
|
42
|
+
ListResourcesResultSchema
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
// Read a specific resource
|
|
46
|
+
const resourceContent = await client.request(
|
|
47
|
+
{
|
|
48
|
+
method: "resources/read",
|
|
49
|
+
params: {
|
|
50
|
+
uri: "file:///example.txt"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
ReadResourceResultSchema
|
|
54
|
+
);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Creating a Server
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import { Server } from "@modelcontextprotocol/sdk/server";
|
|
61
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio";
|
|
62
|
+
|
|
63
|
+
const server = new Server({
|
|
64
|
+
name: "example-server",
|
|
65
|
+
version: "1.0.0",
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
69
|
+
return {
|
|
70
|
+
resources: [
|
|
71
|
+
{
|
|
72
|
+
uri: "file:///example.txt",
|
|
73
|
+
name: "Example Resource",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
80
|
+
if (request.params.uri === "file:///example.txt") {
|
|
81
|
+
return {
|
|
82
|
+
contents: [
|
|
83
|
+
{
|
|
84
|
+
uri: "file:///example.txt",
|
|
85
|
+
mimeType: "text/plain",
|
|
86
|
+
text: "This is the content of the example resource.",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
};
|
|
90
|
+
} else {
|
|
91
|
+
throw new Error("Resource not found");
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const transport = new StdioServerTransport();
|
|
96
|
+
await server.connect(transport);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Documentation
|
|
100
|
+
|
|
101
|
+
- [MCP Specification](https://modelcontextprotocol.github.io)
|
|
102
|
+
- [Example Servers](https://github.com/modelcontextprotocol/example-servers)
|
|
103
|
+
|
|
104
|
+
## Contributing
|
|
105
|
+
|
|
106
|
+
Issues and pull requests are welcome on GitHub at https://github.com/modelcontextprotocol/typescript-sdk.
|
|
107
|
+
|
|
108
|
+
## License
|
|
109
|
+
|
|
110
|
+
This project is licensed under the MIT License—see the [LICENSE](LICENSE) file for details.
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import EventSource from "eventsource";
|
|
2
|
+
import WebSocket from "ws";
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
global.EventSource = EventSource;
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
global.WebSocket = WebSocket;
|
|
7
|
+
import express from "express";
|
|
8
|
+
import { Client } from "./client/index.js";
|
|
9
|
+
import { SSEClientTransport } from "./client/sse.js";
|
|
10
|
+
import { StdioClientTransport } from "./client/stdio.js";
|
|
11
|
+
import { WebSocketClientTransport } from "./client/websocket.js";
|
|
12
|
+
import { Server } from "./server/index.js";
|
|
13
|
+
import { SSEServerTransport } from "./server/sse.js";
|
|
14
|
+
import { StdioServerTransport } from "./server/stdio.js";
|
|
15
|
+
import { ListResourcesResultSchema } from "./types.js";
|
|
16
|
+
async function runClient(url_or_command, args) {
|
|
17
|
+
const client = new Client({
|
|
18
|
+
name: "mcp-typescript test client",
|
|
19
|
+
version: "0.1.0",
|
|
20
|
+
});
|
|
21
|
+
let clientTransport;
|
|
22
|
+
let url = undefined;
|
|
23
|
+
try {
|
|
24
|
+
url = new URL(url_or_command);
|
|
25
|
+
}
|
|
26
|
+
catch (_a) {
|
|
27
|
+
// Ignore
|
|
28
|
+
}
|
|
29
|
+
if ((url === null || url === void 0 ? void 0 : url.protocol) === "http:" || (url === null || url === void 0 ? void 0 : url.protocol) === "https:") {
|
|
30
|
+
clientTransport = new SSEClientTransport(new URL(url_or_command));
|
|
31
|
+
}
|
|
32
|
+
else if ((url === null || url === void 0 ? void 0 : url.protocol) === "ws:" || (url === null || url === void 0 ? void 0 : url.protocol) === "wss:") {
|
|
33
|
+
clientTransport = new WebSocketClientTransport(new URL(url_or_command));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
clientTransport = new StdioClientTransport({
|
|
37
|
+
command: url_or_command,
|
|
38
|
+
args,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
console.log("Connected to server.");
|
|
42
|
+
await client.connect(clientTransport);
|
|
43
|
+
console.log("Initialized.");
|
|
44
|
+
await client.request({ method: "resources/list" }, ListResourcesResultSchema);
|
|
45
|
+
await client.close();
|
|
46
|
+
console.log("Closed.");
|
|
47
|
+
}
|
|
48
|
+
async function runServer(port) {
|
|
49
|
+
if (port !== null) {
|
|
50
|
+
const app = express();
|
|
51
|
+
let servers = [];
|
|
52
|
+
app.get("/sse", async (req, res) => {
|
|
53
|
+
console.log("Got new SSE connection");
|
|
54
|
+
const transport = new SSEServerTransport("/message", res);
|
|
55
|
+
const server = new Server({
|
|
56
|
+
name: "mcp-typescript test server",
|
|
57
|
+
version: "0.1.0",
|
|
58
|
+
});
|
|
59
|
+
servers.push(server);
|
|
60
|
+
server.onclose = () => {
|
|
61
|
+
console.log("SSE connection closed");
|
|
62
|
+
servers = servers.filter((s) => s !== server);
|
|
63
|
+
};
|
|
64
|
+
await server.connect(transport);
|
|
65
|
+
});
|
|
66
|
+
app.post("/message", async (req, res) => {
|
|
67
|
+
console.log("Received message");
|
|
68
|
+
const sessionId = req.query.sessionId;
|
|
69
|
+
const transport = servers
|
|
70
|
+
.map((s) => s.transport)
|
|
71
|
+
.find((t) => t.sessionId === sessionId);
|
|
72
|
+
if (!transport) {
|
|
73
|
+
res.status(404).send("Session not found");
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
await transport.handlePostMessage(req, res);
|
|
77
|
+
});
|
|
78
|
+
app.listen(port, () => {
|
|
79
|
+
console.log(`Server running on http://localhost:${port}/sse`);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const server = new Server({
|
|
84
|
+
name: "mcp-typescript test server",
|
|
85
|
+
version: "0.1.0",
|
|
86
|
+
});
|
|
87
|
+
const transport = new StdioServerTransport();
|
|
88
|
+
await server.connect(transport);
|
|
89
|
+
console.log("Server running on stdio");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const args = process.argv.slice(2);
|
|
93
|
+
const command = args[0];
|
|
94
|
+
switch (command) {
|
|
95
|
+
case "client":
|
|
96
|
+
if (args.length < 2) {
|
|
97
|
+
console.error("Usage: client <server_url_or_command> [args...]");
|
|
98
|
+
process.exit(1);
|
|
99
|
+
}
|
|
100
|
+
runClient(args[1], args.slice(2)).catch((error) => {
|
|
101
|
+
console.error(error);
|
|
102
|
+
process.exit(1);
|
|
103
|
+
});
|
|
104
|
+
break;
|
|
105
|
+
case "server": {
|
|
106
|
+
const port = args[1] ? parseInt(args[1]) : null;
|
|
107
|
+
runServer(port).catch((error) => {
|
|
108
|
+
console.error(error);
|
|
109
|
+
process.exit(1);
|
|
110
|
+
});
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
default:
|
|
114
|
+
console.error("Unrecognized command:", command);
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,aAAa,CAAC;AACtC,OAAO,SAAS,MAAM,IAAI,CAAC;AAE3B,8DAA8D;AAC7D,MAAc,CAAC,WAAW,GAAG,WAAW,CAAC;AAC1C,8DAA8D;AAC7D,MAAc,CAAC,SAAS,GAAG,SAAS,CAA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