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

Function artifactSourceText

packages/hosts/mcp/src/tool-server.ts:1115–1115  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1113
1114/** Format the stored source for the text result channel. */
1115const artifactSourceText = (code: string): string => `Source:\n\`\`\`tsx\n${code}\n\`\`\``;
1116
1117/** Add source to both MCP result channels. */
1118const withArtifactSource = (result: McpToolResult, code: string): McpToolResult => {

Callers 1

withArtifactSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected