We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 765a461 commit 18c6e85Copy full SHA for 18c6e85
1 file changed
packages/opencode/src/mcp/catalog.ts
@@ -100,9 +100,11 @@ export function fetch<T extends { name: string }>(
100
),
101
Effect.map((items) => {
102
const sanitizedClient = sanitize(clientName)
103
+ // Escape both the separator and escape marker so `server:uri` keys remain unambiguous.
104
+ const resourceClient = clientName.replaceAll("%", "%25").replaceAll(":", "%3A")
105
return Object.fromEntries(
106
items.map((item) => [
- key ? clientName + ":" + key(item) : sanitizedClient + ":" + sanitize(item.name),
107
+ key ? resourceClient + ":" + key(item) : sanitizedClient + ":" + sanitize(item.name),
108
{ ...item, client: clientName },
109
]),
110
)
0 commit comments