Skip to main content
Glama

MCP-IQWiki

by IQAIcom
search-wiki.ts•678 B
import dedent from "dedent"; import { client } from "../lib/graphql.js"; import { SEARCH_WIKIS_QUERY } from "../lib/queries.js"; export class SearchWikiService { async execute(query: string) { const response = await client.request(SEARCH_WIKIS_QUERY, { query }); return response.search; } format(search: Awaited<ReturnType<typeof this.execute>>) { const formattedSearch = dedent` šŸ“œ Search Results - Answer: ${search.answer} - Wiki Suggestions: ${(search.suggestions ?? []) .map( (suggestion: { id: string; title: string; }) => `${suggestion.title} (${suggestion.id})`, ) .join(", ")} `; return formattedSearch; } }

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/IQAIcom/mcp-iqwiki'

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