MCPcopy Create free account
hub / github.com/2234839/mcpserver / createMessage

Function createMessage

src/utils/common.ts:1–6  ·  view source on GitHub ↗
(content: any[], prompt: string)

Source from the content-addressed store, hash-verified

1export function createMessage(content: any[], prompt: string) {
2 return [{
3 role: 'user' as const,
4 content: [...content, { type: 'text' as const, text: prompt }]
5 }];
6}
7
8export function createErrorResponse(message: string) {
9 return {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected