Skip to main content
Glama

Model Context Protocol Server

by hyen43
ExampleTool.js428 B
import { MCPTool } from "mcp-framework"; import { z } from "zod"; class ExampleTool extends MCPTool { name = "example_tool"; description = "An example tool that processes messages"; schema = { message: { type: z.string(), description: "Message to process", }, }; async execute(input) { return `Processed: ${input.message}`; } } export default ExampleTool;

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/hyen43/mcpServer'

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