MCPcopy
hub / github.com/cloudflare/mcp-server-cloudflare / getProps

Function getProps

packages/mcp-common/src/get-props.ts:4–9  ·  view source on GitHub ↗
(agent: { props?: T })

Source from the content-addressed store, hash-verified

2 * Gets props from agent or throws if undefined
3 */
4export function getProps<T = unknown>(agent: { props?: T }): T {
5 if (!agent.props) {
6 throw new Error('Props required')
7 }
8 return agent.props
9}

Callers 15

registerD1ToolsFunction · 0.90
registerZoneToolsFunction · 0.90
registerWorkersToolsFunction · 0.90
registerR2BucketToolsFunction · 0.90
registerKVToolsFunction · 0.90
registerHyperdriveToolsFunction · 0.90
initMethod · 0.90
initMethod · 0.90
registerBuildsToolsFunction · 0.90
initMethod · 0.90
registerLogsToolsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected