MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / initializeParams

Function initializeParams

__tests__/mcp-opencode-tool-names.test.ts:107–114  ·  view source on GitHub ↗
(clientInfo: object | undefined, root: string)

Source from the content-addressed store, hash-verified

105}
106
107function initializeParams(clientInfo: object | undefined, root: string): object {
108 return {
109 protocolVersion: '2025-06-18',
110 capabilities: {},
111 ...(clientInfo ? { clientInfo } : {}),
112 rootUri: pathToFileURL(root).href,
113 };
114}
115
116/** `instructions` as OpenCode is meant to get them, put back the way every other client gets them. */
117function asForOtherClients(instructions: string): string {

Callers 2

proxyHandshakeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected