Skip to content

Commit 5959b24

Browse files
ochafikclaude
andcommitted
fix: request clipboardWrite permission for copy-markers button
The app runs in a sandboxed iframe — Clipboard API requires the host to set allow="clipboard-write". Declare it via permissions metadata. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac3fc04 commit 5959b24

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/map-server/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ export function createServer(): McpServer {
199199
"https://*.cesium.com",
200200
],
201201
},
202+
// Clipboard permission for the copy-markers button
203+
permissions: { clipboardWrite: {} },
202204
},
203205
};
204206

0 commit comments

Comments
 (0)