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

Function buildEndpointUrl

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

Source from the content-addressed store, hash-verified

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

Callers 1

createMcpConnectorFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected