@smithery/sdk 1.5.1 → 1.5.2

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.
@@ -87,14 +87,11 @@ export function createStatefulServer(createMcpServer, options) {
87
87
  await transport.handleRequest(req, res, req.body);
88
88
  });
89
89
  // Add .well-known/mcp-config endpoint for configuration discovery
90
- app.get("/.well-known/mcp/config.json", (req, res) => {
90
+ app.get("/.well-known/mcp-config", (req, res) => {
91
91
  // Set proper content type for JSON Schema
92
92
  res.set("Content-Type", "application/schema+json; charset=utf-8");
93
93
  const baseSchema = options?.schema
94
- ? zodToJsonSchema(options.schema, {
95
- name: "SessionConfig",
96
- $refStrategy: "none",
97
- })
94
+ ? zodToJsonSchema(options.schema)
98
95
  : {
99
96
  type: "object",
100
97
  properties: {},
@@ -102,7 +99,7 @@ export function createStatefulServer(createMcpServer, options) {
102
99
  };
103
100
  const configSchema = {
104
101
  $schema: "https://json-schema.org/draft/2020-12/schema",
105
- $id: `${req.protocol}://${req.get("host")}/.well-known/mcp/config.json`,
102
+ $id: `${req.protocol}://${req.get("host")}/.well-known/mcp-config`,
106
103
  title: "MCP Session Configuration",
107
104
  description: "Schema for the /mcp endpoint configuration",
108
105
  "x-mcp-version": "1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithery/sdk",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "SDK to develop with Smithery",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",