Skip to main content
Glama

Adaptive Graph of Thoughts MCP Server

index.jsβ€’602 B
const fetch = require('node-fetch'); const BASE_URL = process.env.AGOT_BASE_URL || 'http://localhost:8000'; module.exports = async ({selectionText}) => { try { const res = await fetch(`${BASE_URL}/nlq`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ question: selectionText }) }); if (!res.ok) { throw new Error(`HTTP ${res.status}: ${res.statusText}`); } const data = await res.json(); return data.summary || JSON.stringify(data); } catch (error) { return `Error: ${error.message}`; } };

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/SaptaDey/Adaptive-Graph-of-Thoughts-MCP-server'

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