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

Function buildEndpointUrl

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

Source from the content-addressed store, hash-verified

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

Callers 1

createMcpConnectorFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected