MCPcopy Create free account
hub / github.com/cloudflare/mcp / acctProps

Function acctProps

tests/non-codemode.test.ts:568–574  ·  view source on GitHub ↗
(accountId: string)

Source from the content-addressed store, hash-verified

566 await seedSpec(specPaths)
567 const server = await createServer(acctProps('acct-1'), false)
568
569 const originalFetch = globalThis.fetch
570 globalThis.fetch = mockFetchJson({ success: true, result: [] })
571
572 try {
573 // Only pass page, not per_page
574 await callTool(server, 'get_accounts_workers_scripts', { page: '3' })
575 const calledUrl = (globalThis.fetch as any).mock.calls[0][0]
576 expect(calledUrl).toContain('page=3')
577 expect(calledUrl).not.toContain('per_page')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected