GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mcp): prevent resource key collisions (#33596) · soequelle/opencode@6c12c32

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/mcp
    • catalog.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/mcp/catalog.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/mcp/catalog.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ export function fetch<T extends { name: string }>(
100100
),
101101
Effect.map((items) => {
102102
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")
103105
return Object.fromEntries(
104106
items.map((item) => [
105-
key ? clientName + ":" + key(item) : sanitizedClient + ":" + sanitize(item.name),
107+
key ? resourceClient + ":" + key(item) : sanitizedClient + ":" + sanitize(item.name),
106108
{ ...item, client: clientName },
107109
]),
108110
)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.