Skip to main content
Glama
soriat

MCP Elicitations Demo Server

by soriat
tool-echo.ts488 B
import { z } from "zod"; import { zodToJsonSchema } from "zod-to-json-schema"; const EchoSchema = z.object({ message: z.string().describe("Message to echo"), }); export const echoTool = { name: "echo", description: "Echoes back the input!", inputSchema: zodToJsonSchema(EchoSchema), handler: async (args: any) => { const validatedArgs = EchoSchema.parse(args); return { content: [{ type: "text" as const, text: `Echo: ${validatedArgs.message}` }], }; }, };

Implementation Reference

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/soriat/soria-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server