Skip to content

Commit 667314b

Browse files
committed
use temporary release version of inspector
1 parent 97c02d9 commit 667314b

File tree

23 files changed

+84
-71
lines changed

23 files changed

+84
-71
lines changed

epicshop/mcp-dev/dev.js

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ const clientPort = await getPort({
2222
})
2323

2424
const sessionToken = randomBytes(32).toString('hex')
25+
console.log('sessionToken', sessionToken)
2526
// Spawn mcp-inspector as a sidecar process
2627
const inspectorProcess = execa('mcp-inspector', [], {
2728
env: {
2829
...process.env,
2930
SERVER_PORT: serverPort,
3031
CLIENT_PORT: clientPort,
31-
MCP_PROXY_TOKEN: sessionToken,
32-
33-
// TODO: remove this in a couple months https://github.com/modelcontextprotocol/inspector/pull/517
34-
MCP_PROXY_TOKEN: sessionToken,
35-
32+
MCP_PROXY_AUTH_TOKEN: sessionToken,
3633
MCP_AUTO_OPEN_ENABLED: 'false',
3734
ALLOWED_ORIGINS: [
3835
`http://localhost:${clientPort}`,
@@ -44,20 +41,36 @@ const inspectorProcess = execa('mcp-inspector', [], {
4441
stdio: ['inherit', 'pipe', 'inherit'], // capture stdout
4542
})
4643

44+
/*
45+
Starting MCP inspector...
46+
47+
⚙️ Proxy server listening on 127.0.0.1:10000
48+
49+
🔑 Session token: 5c96a97c78de97283c838754ea89a74283d5ce87692dbe4a4903c416ae64fc6b
50+
Use this token to authenticate requests or set DANGEROUSLY_OMIT_AUTH=true to disable auth
51+
52+
🔗 Open inspector with token pre-filled:
53+
http://localhost:9000/?MCP_PROXY_AUTH_TOKEN=5c96a97c78de97283c838754ea89a74283d5ce87692dbe4a4903c416ae64fc6b
54+
(Auto-open is disabled when authentication is enabled)
55+
56+
*/
57+
4758
// Wait for the inspector to be up before starting the proxy server
4859
function waitForInspectorReady() {
4960
return new Promise((resolve) => {
5061
inspectorProcess.stdout.on('data', (data) => {
5162
const str = data.toString()
5263
// Suppress specific logs from inspector
5364
if (
54-
str.includes('Proxy server listening on port') ||
55-
str.includes('MCP Inspector is up and running')
65+
/server listening/i.test(str) ||
66+
/inspector is up/i.test(str) ||
67+
/session token/i.test(str) ||
68+
/DANGEROUSLY_OMIT_AUTH/i.test(str) ||
69+
/open inspector/i.test(str) ||
70+
/localhost/i.test(str) ||
71+
/auto-open is disabled/i.test(str)
5672
) {
57-
// Do not print these lines
58-
if (str.includes('MCP Inspector is up and running')) {
59-
resolve()
60-
}
73+
resolve()
6174
return
6275
}
6376
process.stdout.write(str) // print all other inspector logs

exercises/01.advanced-tools/01.problem.annotations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/01.solution.annotations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/02.problem.structured/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/02.solution.structured/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/02.elicitation/01.problem/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/02.elicitation/01.solution/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/03.sampling/01.problem.simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/03.sampling/01.solution.simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/03.sampling/02.problem.advanced/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.9.0",
21-
"@modelcontextprotocol/inspector": "^0.16.1",
21+
"@kentcdodds/tmp-modelcontextprotocol_inspector": "^0.17.0-alpha.0",
2222
"@types/node": "^24.0.13",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

0 commit comments

Comments
 (0)