Skip to main content
Glama
soriat

MCP Elicitations Demo Server

by soriat
resource-static.ts721 B
import { Resource } from "@modelcontextprotocol/sdk/types.js"; import { generateAllResources } from "../lib/resources.js"; export const PAGE_SIZE = 10; export const getResourceTemplates = () => { return [ { uriTemplate: "test://static/resource/{id}", name: "Static Resource", description: "A static resource with a numeric ID", }, ]; }; export const readStaticResource = (uri: string): Resource | null => { const ALL_RESOURCES = generateAllResources(); if (uri.startsWith("test://static/resource/")) { const index = parseInt(uri.split("/").pop() ?? "", 10) - 1; if (index >= 0 && index < ALL_RESOURCES.length) { return ALL_RESOURCES[index]; } } return null; };

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