Skip to main content
Glama
kongyo2

EVE University Wiki MCP Server

get_eve_wiki_links

Extract all links from an EVE University Wiki article by providing the article title. Access comprehensive EVE Online knowledge with enhanced reliability through automatic Wayback Machine fallback.

Instructions

Get the links contained within an EVE University Wiki article

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the EVE University Wiki article

Implementation Reference

  • The tool handler execute function that fetches links from EVE University Wiki using eveWikiClient and returns them as formatted JSON.
    execute: async (args) => { try { const links = await eveWikiClient.getLinks(args.title); return JSON.stringify( { links: links, // All links without limit title: args.title, }, null, 2, ); } catch (error) { return `Error getting links: ${error}`; } },
  • Zod schema defining the input parameters for the get_eve_wiki_links tool (requires 'title' string).
    parameters: z.object({ title: z.string().describe("Title of the EVE University Wiki article"), }),
  • src/server.ts:149-175 (registration)
    The complete server.addTool registration for the get_eve_wiki_links tool, including annotations, description, handler, name, and parameters schema.
    server.addTool({ annotations: { openWorldHint: true, readOnlyHint: true, title: "Get EVE University Wiki Links", }, description: "Get the links contained within an EVE University Wiki article", execute: async (args) => { try { const links = await eveWikiClient.getLinks(args.title); return JSON.stringify( { links: links, // All links without limit title: args.title, }, null, 2, ); } catch (error) { return `Error getting links: ${error}`; } }, name: "get_eve_wiki_links", parameters: z.object({ title: z.string().describe("Title of the EVE University Wiki article"), }), });
  • The EveWikiClient.getLinks method that implements the core logic of querying the MediaWiki API for links in the specified article (limited to 500).
    async getLinks(title: string): Promise<string[]> { return this.retryableRequest(async () => { try { const response = await this.client.get("", { params: { action: "query", format: "json", pllimit: 500, prop: "links", titles: title, }, }); const pages = response.data?.query?.pages; if (!pages) { return []; } const pageId = Object.keys(pages)[0]; const page = pages[pageId]; if (page.missing || !page.links) { return []; } return page.links.map((link: { title: string }) => link.title); } catch (error) { console.error("Error getting links:", error); throw new Error(`Failed to get links for "${title}": ${error}`); } }); }
  • Instantiation of the EveWikiClient used by the tool handler.
    const eveWikiClient = new EveWikiClient();

Other Tools

Related Tools

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/kongyo2/EVE-University-Wiki-MCP-Server'

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