Skip to content

Commit a0d8ec1

Browse files
committed
Make server executable on its own
1 parent 6759c46 commit a0d8ec1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

server/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
"author": "Anthropic, PBC (https://anthropic.com)",
77
"homepage": "https://modelcontextprotocol.github.io",
88
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
9-
"main": "build/index.js",
109
"type": "module",
10+
"bin": {
11+
"mcp-inspector-server": "build/index.js"
12+
},
13+
"files": [
14+
"build"
15+
],
1116
"scripts": {
1217
"build": "tsc",
1318
"start": "node build/index.js",

server/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import cors from "cors";
24
import EventSource from "eventsource";
35

0 commit comments

Comments
 (0)