Skip to main content
Glama

docs-mcp-server

list.tsx647 B
import type { FastifyInstance } from "fastify"; import type { ListJobsTool } from "../../../tools/ListJobsTool"; import JobList from "../../components/JobList"; // Import the extracted component /** * Registers the API route for listing jobs. * @param server - The Fastify instance. * @param listJobsTool - The tool instance for listing jobs. */ export function registerJobListRoutes( server: FastifyInstance, listJobsTool: ListJobsTool ) { // GET /web/jobs - List current jobs (only the list) server.get("/web/jobs", async () => { const result = await listJobsTool.execute({}); return <JobList jobs={result.jobs} />; }); }

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/arabold/docs-mcp-server'

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