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

Function buildEndpointUrl

packages/plugins/mcp/src/sdk/connection.ts:67–73  ·  view source on GitHub ↗
(endpoint: string, queryParams: Record<string, string>)

Source from the content-addressed store, hash-verified

65// ---------------------------------------------------------------------------
66
67const buildEndpointUrl = (endpoint: string, queryParams: Record<string, string>): URL => {
68 const url = new URL(endpoint);
69 for (const [key, value] of Object.entries(queryParams)) {
70 url.searchParams.set(key, value);
71 }
72 return url;
73};
74
75type HttpMethod = Parameters<typeof HttpClientRequest.make>[0];
76const HTTP_METHODS = new Set<HttpMethod>([

Callers 1

createMcpConnectorFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected