@tigerdata/mcp-boilerplate 0.9.2 → 0.9.3
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/http/mcp.js +1 -1
- package/dist/httpServer.js +3 -1
- package/package.json +1 -1
package/dist/http/mcp.js
CHANGED
|
@@ -201,7 +201,7 @@ export const mcpRouterFactory = (context, createServer, { name, stateful = true,
|
|
|
201
201
|
${inspector
|
|
202
202
|
? `
|
|
203
203
|
<h3>Inspector</h3>
|
|
204
|
-
<p>You can use the <a href="/inspector">MCP Inspector</a> for testing purposes.</p>`
|
|
204
|
+
<p>You can use the <a href="/inspector?server=${encodeURIComponent(fullUrl)}">MCP Inspector</a> for testing purposes.</p>`
|
|
205
205
|
: ''}
|
|
206
206
|
<h3>Claude Code</h3>
|
|
207
207
|
<p>To connect to this MCP server using Claude Code, run the following command in your terminal:</p>
|
package/dist/httpServer.js
CHANGED
|
@@ -54,7 +54,9 @@ export const httpServerFactory = ({ name, version, context, apiFactories = [], p
|
|
|
54
54
|
import('@mcp-use/inspector')
|
|
55
55
|
.then(({ mountInspector }) => {
|
|
56
56
|
app.use(bodyParser.json());
|
|
57
|
-
mountInspector(app, {
|
|
57
|
+
mountInspector(app, {
|
|
58
|
+
autoConnectUrl: process.env.MCP_PUBLIC_URL ?? `http://localhost:${PORT}/mcp`,
|
|
59
|
+
});
|
|
58
60
|
})
|
|
59
61
|
.catch(log.error);
|
|
60
62
|
}
|