Skip to main content
Glama
soriat

MCP Elicitations Demo Server

by soriat
elicitation.ts434 B
import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { z } from "zod"; // Possible TODO: Use the elicitation function from the server export const requestElicitation = async ( message: string, requestedSchema: any, server: Server ) => { const request = { method: 'elicitation/create', params: { message, requestedSchema } }; return await server.request(request, z.any()); };

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