UNPKG

@grebyn/toolflow-mcp-server

Version:

MCP server for managing other MCP servers - discover, install, organize into bundles, and automate with workflows. Uses StreamableHTTP transport with dual OAuth/API key authentication.

34 lines 1.06 kB
/** * Echo Tool - Simple example MCP tool with user awareness * Echoes back the provided text along with user information */ export const echoTool = { name: 'echo', description: 'Echo back the provided text with user context information', inputSchema: { type: 'object', properties: { text: { type: 'string', description: 'Text to echo back' } }, required: ['text'] }, async execute(args, context) { // Demonstrate user-aware functionality const timestamp = new Date().toISOString(); const userInfo = context.email ? ` (${context.email})` : ''; return { content: [ { type: 'text', text: `Echo from user ${context.userId}${userInfo}: ${args.text}\n` + `Session ID: ${context.sessionId}\n` + `Timestamp: ${timestamp}` } ] }; } }; //# sourceMappingURL=echo.js.map