MCPcopy Create free account
hub / github.com/TanStack/ai / emitPrompts

Function emitPrompts

packages/ai-mcp/src/cli/emit.ts:131–139  ·  view source on GitHub ↗
(s: ServerSurface)

Source from the content-addressed store, hash-verified

129}
130
131function emitPrompts(s: ServerSurface): string {
132 if (!s.prompts.length) return '{}'
133 return `{ ${s.prompts
134 .map(
135 (p) =>
136 `${tsString(p.name)}: { args: Record<string, string>; messages: unknown }`,
137 )
138 .join('; ')} }`
139}

Callers 1

emitDescriptorsFunction · 0.85

Calls 1

tsStringFunction · 0.85

Tested by

no test coverage detected