MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isMcpPath

Function isMcpPath

packages/plugins/mcp/src/testing/server.ts:77–80  ·  view source on GitHub ↗
(url: string, path: string)

Source from the content-addressed store, hash-verified

75const decodeJsonBody = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
76
77const isMcpPath = (url: string, path: string): boolean => {
78 const parsed = new URL(url, "http://executor.test");
79 return parsed.pathname === path;
80};
81
82const protectedResourcePath = "/.well-known/oauth-protected-resource";
83

Callers 1

handleMcpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected