MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / findPreset

Function findPreset

packages/plugins/mcp/src/react/AddMcpSource.tsx:55–58  ·  view source on GitHub ↗
(id: string | undefined)

Source from the content-addressed store, hash-verified

53// ---------------------------------------------------------------------------
54
55function findPreset(id: string | undefined): McpPreset | undefined {
56 if (!id) return undefined;
57 return mcpPresets.find((p) => p.id === id);
58}
59
60// Splits the raw args field into tokens, honoring double-quoted groups so an
61// argument with spaces stays intact.

Callers 1

AddMcpSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected