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

Function getToolsListCursor

apps/sim/app/api/mcp/serve/[serverId]/route.ts:257–261  ·  view source on GitHub ↗
(rpcParams: unknown)

Source from the content-addressed store, hash-verified

255}
256
257function getToolsListCursor(rpcParams: unknown): string | undefined {
258 if (!rpcParams || typeof rpcParams !== 'object' || !('cursor' in rpcParams)) return undefined
259 const cursor = (rpcParams as { cursor?: unknown }).cursor
260 return typeof cursor === 'string' && cursor.length > 0 ? cursor : undefined
261}
262
263async function getDuplicateToolName(serverId: string): Promise<string | null> {
264 const [duplicate] = await db

Callers 1

handleToolsListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected