fix: cubic feedback
This commit is contained in:
parent
739c04681c
commit
0c5fbfcf24
2 changed files with 5 additions and 2 deletions
|
|
@ -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, {});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue