@smithery/cli 1.2.8 → 1.2.9
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/index.js +18 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -79946,6 +79946,24 @@ function createStatefulServer(createMcpServer, options) {
|
|
|
79946
79946
|
}
|
|
79947
79947
|
await transport.handleRequest(req, res, req.body);
|
|
79948
79948
|
});
|
|
79949
|
+
app.get("/.well-known/mcp-config", (req, res) => {
|
|
79950
|
+
res.set("Content-Type", "application/schema+json; charset=utf-8");
|
|
79951
|
+
const baseSchema = options?.schema ? zodToJsonSchema(options.schema) : {
|
|
79952
|
+
type: "object",
|
|
79953
|
+
properties: {},
|
|
79954
|
+
required: []
|
|
79955
|
+
};
|
|
79956
|
+
const configSchema = {
|
|
79957
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
79958
|
+
$id: \`\${req.protocol}://\${req.get("host")}/.well-known/mcp-config\`,
|
|
79959
|
+
title: "MCP Session Configuration",
|
|
79960
|
+
description: "Schema for the /mcp endpoint configuration",
|
|
79961
|
+
"x-mcp-version": "1.0",
|
|
79962
|
+
"x-query-style": "dot+bracket",
|
|
79963
|
+
...baseSchema
|
|
79964
|
+
};
|
|
79965
|
+
res.json(configSchema);
|
|
79966
|
+
});
|
|
79949
79967
|
const handleSessionRequest = async (req, res) => {
|
|
79950
79968
|
const sessionId = req.headers["mcp-session-id"];
|
|
79951
79969
|
if (!sessionId || !sessionStore.get(sessionId)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithery/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://smithery.ai/",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.10.1",
|
|
30
30
|
"@ngrok/ngrok": "^1.5.1",
|
|
31
31
|
"@smithery/registry": "^0.3.7",
|
|
32
|
-
"@smithery/sdk": "^1.
|
|
32
|
+
"@smithery/sdk": "^1.5.2",
|
|
33
33
|
"@types/uuid": "^10.0.0",
|
|
34
34
|
"chalk": "^4.1.2",
|
|
35
35
|
"commander": "^14.0.0",
|