mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 05:12:11 +03:00
- Created httpTransport.ts with singleton MCP server and WebStandard Streamable HTTP transport running inside Next.js process - Added /api/mcp/sse route (GET+POST) for SSE transport - Added /api/mcp/stream route (GET+POST+DELETE) for Streamable HTTP - Added mcpTransport enum to settingsSchemas (stdio|sse|streamable-http) - Updated /api/mcp/status to report HTTP transport state - Added TransportSelector UI with mode buttons and connection URL display - Routes guard against disabled MCP or wrong transport mode
21 lines
518 B
TypeScript
21 lines
518 B
TypeScript
/**
|
|
* OmniRoute MCP Server — barrel export.
|
|
*/
|
|
export { createMcpServer, startMcpStdio } from "./server.ts";
|
|
export { logToolCall, getRecentAuditEntries, getAuditStats, queryAuditEntries } from "./audit.ts";
|
|
export {
|
|
resolveMcpHeartbeatPath,
|
|
readMcpHeartbeat,
|
|
isMcpHeartbeatOnline,
|
|
isProcessAlive,
|
|
} from "./runtimeHeartbeat.ts";
|
|
export {
|
|
handleMcpSSE,
|
|
handleMcpStreamableHTTP,
|
|
getMcpHttpStatus,
|
|
shutdownMcpHttp,
|
|
isMcpHttpActive,
|
|
} from "./httpTransport.ts";
|
|
export * from "./schemas/index.ts";
|
|
|