Skip to main content
Glama
index.ts1.02 kB
import z from "zod"; import { registerAgine } from "../mcp/registerAgine.js"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export const configSchema = z.object({ lichessApiKey: z .string() .optional() .describe("Lichess API key to access Lichess Studies"), lichessUsername: z .string() .optional() .describe("Lichess username for mcp user"), chessboardmagicKey : z .string() .optional() .describe("Chessboardmagic Repitore Builder PAT") }); export default function createServer({ config, }: { config: z.infer<typeof configSchema>; }) { const Mcpserver = new McpServer({ name: "chessagine-mcp", websiteUrl: "https://www.chessagine.com/", version: "2.0.0", }); console.warn(config); process.env.LICHESS_API_KEY = config.lichessApiKey || ""; process.env.LICHESS_USERNAME = config.lichessUsername || ""; process.env.CHESSBOARD_MAGIC_PAT = config.chessboardmagicKey || "" registerAgine(Mcpserver); return Mcpserver.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/jalpp/chessagine-mcp'

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