Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit d7a7d5b

Browse files
sapientpantsclaude
andcommitted
fix: default transport to stdio if not provided
- Set default StdioServerTransport when transport not specified in config - Fixes MCP server initialization issue preventing tool registration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9d72f5d commit d7a7d5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/server/mcp-server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ export class DeepSourceMCPServer {
8484
this.registerDefaultTools();
8585
}
8686

87-
// Set transport if provided
88-
if (this.config.transport) {
89-
this.transport = this.config.transport;
90-
}
87+
// Set transport (default to stdio if not provided)
88+
this.transport = this.config.transport || new StdioServerTransport();
9189
}
9290

9391
/**

0 commit comments

Comments
 (0)