MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / resolveProjectId

Function resolveProjectId

packages/mcp/src/tools/shared.ts:12–22  ·  view source on GitHub ↗
(
  context: McpAuthContext,
  inputProjectId: string | undefined,
)

Source from the content-addressed store, hash-verified

10 * Thin adapter so tool files don't repeat the full argument object every call.
11 */
12export function resolveProjectId(
13 context: McpAuthContext,
14 inputProjectId: string | undefined,
15): Promise<string> {
16 return resolveClientProjectId({
17 clientType: context.clientType,
18 clientProjectId: context.projectId,
19 organizationId: context.organizationId,
20 inputProjectId,
21 });
22}
23
24/**
25 * Build the projectId portion of an input schema.

Callers 15

registerGscOverviewToolsFunction · 0.90
registerGscPageToolsFunction · 0.90
registerGscQueryToolsFunction · 0.90
registerGroupToolsFunction · 0.90
registerUserFlowToolsFunction · 0.90
registerActiveUserToolsFunction · 0.90
registerEventToolsFunction · 0.90
registerSessionToolsFunction · 0.90

Calls 1

resolveClientProjectIdFunction · 0.90

Tested by

no test coverage detected