* chore: remove dead code and fix HTTP port-conflict startup - drop unused helpers, constants, schemas, and duplicated types - exit non-zero when the HTTP port is already in use - add stdio and port-conflict tests - clean dist on build, add serve:http, fix inspector:http for Inspector v2 * test: harden port-conflict test; drop unreachable listen guard - pin the child's host so BRAVE_MCP_HOST cannot bypass the conflict - bound the exit wait and reject spawn errors - remove the address() guard; 'listening' does not fire on a failed bind
11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
import newMcpServer from '../server.js';
|
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
|
|
const start = async (): Promise<void> => {
|
|
const transport = new StdioServerTransport();
|
|
const mcpServer = newMcpServer();
|
|
await mcpServer.connect(transport);
|
|
};
|
|
|
|
export default { start };
|