MCPcopy Index your code
hub / github.com/simstudioai/sim / hasType

Function hasType

apps/sim/app/api/mcp/tools/execute/route.ts:49–51  ·  view source on GitHub ↗
(prop: unknown)

Source from the content-addressed store, hash-verified

47}
48
49function hasType(prop: unknown): prop is SchemaProperty {
50 return typeof prop === 'object' && prop !== null && 'type' in prop
51}
52
53/**
54 * POST - Execute a tool on an MCP server

Callers 2

route.tsFile · 0.85
validateToolArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected