MCPcopy Index your code
hub / github.com/21st-dev/1code / getCodexServerIdentity

Function getCodexServerIdentity

src/main/lib/trpc/routers/codex.ts:945–963  ·  view source on GitHub ↗
(
  server: CodexMcpServerForSettings,
)

Source from the content-addressed store, hash-verified

943}
944
945function getCodexServerIdentity(
946 server: CodexMcpServerForSettings,
947): string {
948 const config = server.config as Record<string, unknown>
949 return JSON.stringify({
950 enabled: config.enabled ?? null,
951 disabledReason: config.disabledReason ?? null,
952 transportType: config.transportType ?? null,
953 command: config.command ?? null,
954 args: config.args ?? null,
955 env: config.env ?? null,
956 envVars: config.envVars ?? null,
957 url: config.url ?? null,
958 headers: config.headers ?? null,
959 envHttpHeaders: config.envHttpHeaders ?? null,
960 bearerTokenEnvVar: config.bearerTokenEnvVar ?? null,
961 authStatus: config.authStatus ?? null,
962 })
963}
964
965export async function getAllCodexMcpConfigHandler() {
966 const globalSnapshot = await resolveCodexMcpSnapshot({ includeTools: true })

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected