Skip to main content
Glama

Marvel MCP

by DanWahlin
MIT License
6
11
  • Linux
  • Apple
index.ts537 B
// src/tools/get_comic_by_id/index.ts import { ComicDataWrapperSchema } from "../schemas.js"; import { httpRequest } from "../../utils.js"; import { GetComicByIdSchema } from "./schemas.js"; export const get_comic_by_id = { description: `Fetch a single Marvel comic by ID.`, schema: GetComicByIdSchema, handler: async (args: any) => { const argsParsed = GetComicByIdSchema.parse(args); const res = await httpRequest(`/comics/${argsParsed.comicId}`); return ComicDataWrapperSchema.parse(res); } };

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/DanWahlin/marvel-mcp'

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