We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0aac8 commit cd65bb5Copy full SHA for cd65bb5
packages/mcp/src/cli.ts
@@ -3,9 +3,14 @@
3
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
import { createServer } from './server';
5
6
-// Start receiving messages on stdin and sending messages on stdout
7
-const transport = new StdioServerTransport();
8
-(async () => {
+async function main() {
+ const transport = new StdioServerTransport();
9
const server = createServer();
10
await server.connect(transport);
11
-})();
+ console.log("OpenZeppelin Contracts MCP Server is running...");
+}
12
+
13
+main().catch((error) => {
14
+ console.error("Failed to start OpenZeppelin Contracts MCP Server:", error);
15
+ process.exit(1);
16
+});
0 commit comments