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

Function projectIdSchema

packages/mcp/src/tools/shared.ts:30–38  ·  view source on GitHub ↗
(context: McpAuthContext)

Source from the content-addressed store, hash-verified

28 * - Read clients have it fixed in context — it's not included in the schema.
29 */
30export function projectIdSchema(context: McpAuthContext) {
31 return context.projectId === null
32 ? z
33 .string()
34 .describe(
35 'Project ID to query (required for organization-level access)'
36 )
37 : z.string().optional();
38}
39
40
41/**

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

no outgoing calls

Tested by

no test coverage detected