Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { getGuide} from "./tools.js";
import { getGuideParams } from "./params.js";
import { fetchAndUpdateSidebar } from "./sidebar.js";

// stdout is reserved for MCP protocol traffic when using stdio transport.
// Route application diagnostics to stderr so console.log calls in helpers
// cannot corrupt protocol messages.
console.log = console.error.bind(console);

// Initialize the server
const server = new McpServer({
name: "docs-mcp",
Expand Down