Make server executable on its own

This commit is contained in:
Justin Spahr-Summers
2024-11-11 10:41:07 +00:00
parent 6759c461f9
commit a0d8ec1e7e
2 changed files with 8 additions and 1 deletions

View File

@@ -6,8 +6,13 @@
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.github.io",
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
"main": "build/index.js",
"type": "module",
"bin": {
"mcp-inspector-server": "build/index.js"
},
"files": [
"build"
],
"scripts": {
"build": "tsc",
"start": "node build/index.js",

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env node
import cors from "cors";
import EventSource from "eventsource";