MCPcopy Create free account
hub / github.com/simstudioai/sim / useMcpServers

Function useMcpServers

apps/sim/hooks/queries/mcp.ts:88–97  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

86}
87
88export function useMcpServers(workspaceId: string) {
89 return useQuery({
90 queryKey: mcpKeys.serversList(workspaceId),
91 queryFn: ({ signal }) => fetchMcpServers(workspaceId, signal),
92 enabled: !!workspaceId,
93 retry: false,
94 staleTime: 60 * 1000,
95 placeholderData: keepPreviousData,
96 })
97}
98
99async function fetchMcpTools(
100 workspaceId: string,

Callers 5

MCPFunction · 0.90
tool-input.tsxFile · 0.90
McpServerSelectorFunction · 0.90
workflow-block.tsxFile · 0.90
useMcpToolsQueryFunction · 0.85

Calls 1

fetchMcpServersFunction · 0.85

Tested by

no test coverage detected