Skip to main content
Glama
zk-armor
by zk-armor
server.ts689 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { JinaAIAPIClient } from "./client"; import { registerAllTools } from "./tools"; // We create the server in a function so we can pass in the API key. export function createServer(apiKey: string): McpServer { const server = new McpServer({ name: "jina-ai-server", version: "0.2.0", }); // Create a single client instance. const jinaClient = new JinaAIAPIClient(apiKey); // Register all tools, passing them the server instance and the client // so the tool handlers can access the client via a closure. registerAllTools(server, jinaClient); return 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/zk-armor/mcp-jina-ai'

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