(mcpId: string, toolName: string)
| 50 | } |
| 51 | |
| 52 | export function encodeMCPToolUri(mcpId: string, toolName: string): string { |
| 53 | return `mcp://${encodeURIComponent(mcpId)}/${encodeURIComponent(toolName)}`; |
| 54 | } |
| 55 | |
| 56 | export function decodeMCPToolUri(uri: string): [string, string] | null { |
| 57 | const url = new URL(uri); |