Skip to main content
Glama

HTTP OAuth MCP Server

by NapthaAI
mcp-server.ts571 B
#!/usr/bin/env bun import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { z } from "zod"; export const server = new McpServer({ name: "Math-MCP-Server", version: "1.0.0", }); server.tool( "add", "Add two numbers", { l: z.number(), r: z.number() }, async ({ l, r }) => ({ content: [ { type: "text", text: String(l + r), }, ], }), ); server.tool( "divide", "Divide two numbers", { l: z.number(), r: z.number() }, async ({ l, r }) => ({ content: [ { type: "text", text: String(l / r), }, ], }), );

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/NapthaAI/http-oauth-mcp-server'

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