Skip to main content
Glama

Me-MCP

by mihalik
resources.ts884 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; import resume from "../public/resources/resume.txt"; /** * This registers a text-based resource for a resume. There is also a tool * that can be used to fetch the same resume. I don't think that most MCP * clients will automatically fetch resources so the tool version is more * useful. */ export default function registerResources(server: McpServer) { server.resource( "resume", "resume://uri", { mimeType: "text/plain" }, async (): Promise<ReadResourceResult> => { return { contents: [ { uri: "resume://uri", text: resume, }, ], }; } ); }

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/mihalik/me-mcp'

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