Skip to content

Commit

Permalink
Chore: Remove console log statements and add inspect scripts
Browse files Browse the repository at this point in the history
- Remove console log statements in example-express.ts
- Remove console log statements in EasyMCP.ts
- Add inspect scripts for decorators and express examples in package.json
  • Loading branch information
zcaceres committed Jan 20, 2025
1 parent d91063c commit ca2405c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/example-express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ mcp.root({
});

await mcp.serve().catch(console.error);
console.log(mcp.name, "is now serving!");
console.log("It has capabilities:", mcp.listCapabilities());
// console.log(mcp.name, "is now serving!");
// console.log("It has capabilities:", mcp.listCapabilities());
2 changes: 1 addition & 1 deletion lib/EasyMCP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class BaseMCP {
return { roots: this.rootsManager.list() };
},
);
console.log("Registered ListRoots endpoint");
// console.log("Registered ListRoots endpoint");
}
}

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"start": "bun run index.ts",
"start:decorators": "bun run examples/example-experimental-decorators.ts",
"start:express": "bun run examples/example-express.ts",
"inspect:decorators": "bunx @modelcontextprotocol/inspector bun run start:decorators",
"inspect:express": "bunx @modelcontextprotocol/inspector bun run start:express",
"dev": "bun --watch index.ts",
"build": "bun build ./index.ts --outdir ./dist && tsc",
"test": "bun test --tsconfig-override tsconfig.json lib",
Expand Down

0 comments on commit ca2405c

Please sign in to comment.