Skip to main content
Glama

Currents

Official
by currents-dev
get-projects.ts599 B
import { z } from "zod"; import { fetchCursorBasedPaginatedApi } from "../../lib/request.js"; const zodSchema = z.object({}); const handler = async () => { const data = await fetchCursorBasedPaginatedApi("/projects"); if (!data) { return { content: [ { type: "text" as const, text: "Failed to retrieve projects", }, ], }; } return { content: [ { type: "text" as const, text: JSON.stringify(data, null, 2), }, ], }; }; export const getProjectsTool = { schema: zodSchema.shape, handler, };

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/currents-dev/currents-mcp'

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