Skip to content

Commit 6a99fea

Browse files
committed
Refactor project components
* Remove bin folder, leaving cli, server, and client * This fixes modelcontextprotocol#315 * In .gitignore, - add .idea - remove bin/build * Remove bin and bin/cli.js * Remove bin/scripts/copy-cli.js * Refactor/move bin/scripts to cli/scripts * Refactor/move bin/src/index.ts to cli/src/cli.ts * Refactor/renamed client/bin/cli.js to client/bin/client.js * In .github/workflows/main.yml, - add run of cli tests * In cli/pacakge.json - change main and bin/mcp-inspector-cli properties to build/cli.js * In client/package.json, - change bin/mcp-inspector-client properties to build/start.js * In pacakge.json - change bin/mcp-inspector property to ./cli/build/cli.js - removed bin and cli/bin from files list - removed @modelcontextprotocol/inspector-bin dependency - rearranged and corrected scripts
1 parent f7272d8 commit 6a99fea

15 files changed

+639
-3399
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
working-directory: ./client
3131
run: npm test
3232

33+
- name: Run cli tests
34+
working-directory: ./cli
35+
run: npm test
36+
3337
- run: npm run build
3438

3539
publish:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.DS_Store
2+
.vscode
3+
.idea
24
node_modules/
35
*-workspace/
46
server/build
57
client/dist
68
client/tsconfig.app.tsbuildinfo
79
client/tsconfig.node.tsbuildinfo
8-
.vscode
9-
bin/build
1010
cli/build
1111
test-output

bin/cli.js

Lines changed: 0 additions & 217 deletions
This file was deleted.

bin/package.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

bin/scripts/copy-cli.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

bin/tsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

cli/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
"version": "0.9.0",
44
"description": "CLI for the Model Context Protocol inspector",
55
"license": "MIT",
6-
"author": "Nicolas Barraud",
7-
"homepage": "https://github.com/nbarraud",
8-
"main": "build/index.js",
6+
"author": "Anthropic, PBC (https://anthropic.com)",
7+
"homepage": "https://modelcontextprotocol.io",
8+
"bugs": "https://github.com/modelcontextprotocol/inspector/issues",
9+
"main": "build/cli.js",
910
"type": "module",
1011
"bin": {
11-
"mcp-inspector-cli": "build/index.js"
12+
"mcp-inspector-cli": "build/cli.js"
1213
},
1314
"files": [
1415
"build"
1516
],
1617
"scripts": {
17-
"build": "tsc"
18+
"build": "tsc",
19+
"postbuild": "node scripts/make-executable.js",
20+
"test": "node scripts/cli-tests.js"
1821
},
1922
"devDependencies": {},
2023
"dependencies": {

0 commit comments

Comments
 (0)