fix: cubic feedback

This commit is contained in:
Dallin Romney 2025-11-17 19:22:07 -08:00
parent 739c04681c
commit 0c5fbfcf24
2 changed files with 5 additions and 2 deletions

View file

@ -473,7 +473,10 @@ export class MCPService
try {
const transport = this.constructHttpTransport(serverConfig);
await client.connect(transport, {});
} catch {
} catch (e) {
if (isAuthError(e)) {
throw e;
}
const transport = this.constructSseTransport(serverConfig);
await client.connect(transport, {});
}

View file

@ -130,7 +130,7 @@ export function parseAgentFileTools(toolsString?: string): ParsedAgentTools {
const afterLastColon = toolRef.substring(lastColonIndex + 1);
// Check if it's a port number (only digits), empty string, or a tool name
if (/^\d+$/.test(afterLastColon)) {
if (/^\d+(?:$|[/?#])/.test(afterLastColon)) {
// It's a port number, treat the whole thing as the server
const mcpServer = toolRef;
tools.push({ mcpServer });