Skip to main content
Glama

Hello World MCP Server

by Auxin-io
index.tsโ€ข863 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" import { z } from "zod" // Optional: If you have user-level config, define it here export const configSchema = z.object({ debug: z.boolean().default(false).describe("Enable debug logging"), }) export default function createServer({ config, }: { config: z.infer<typeof configSchema> }) { const server = new McpServer({ name: "HR System", version: "1.0.0", }) server.registerTool( "createEmployeeRecord", { title: "HR Employee", description: "Creates a new employee record in HR system (demo stub)", }, async () => { return { content: [ { type: "text", text: "Employee record created (demo)", }, ], } } ) return server.server }

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/Auxin-io/Demo-Secure-MCP'

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