AI Glot websiteOpen AI Glot
Gestione di AI GlotMCP Code Mode
Gestione di AI Glot

MCP Code Mode

Usa il server MCP di ricerca ed esecuzione di AI Glot per operazioni API multi-step delimitate all'interno di una sandbox Cloudflare Worker isolata dalla rete.

La Code Mode espone due strumenti all’indirizzo https://mcp.ai-glot.com/mcp/code:

  • search trova operazioni pertinenti nel contratto OpenAPI senza caricare l’intera specifica nel contesto del modello.
  • execute esegue un programma JavaScript la cui funzione request() chiama le normali rotte REST di AI Glot.

Perché usarla

Il server standard potrebbe richiedere diversi cicli di interazione modello-strumento per un compito multi-step. La Code Mode consente all’agente di recuperare più pagine, filtrarle e restituire un breve riassunto in un’unica chiamata allo strumento.

Example execute program
const first = await request({
  method: 'GET',
  path: '/batches',
  query: { status: 'completed', limit: 100 },
});

return first.data
  .filter(batch => !batch.archived)
  .slice(0, 10)
  .map(({ id, name, completed_at }) => ({ id, name, completed_at }));

I percorsi passati a request() sono relativi a /v1. Ogni chiamata attraversa lo stesso matching delle rotte, validazione, applicazione degli scope, isolamento del workspace e rate limiting di una richiesta HTTP diretta.

Confini della sandbox

Il programma non ha accesso a reti esterne, binding di ambiente o moduli extra. Può chiamare AI Glot solo tramite request() utilizzando gli scope esistenti della connessione.

LimiteValore
Dimensione programma64 KB
Tempo di esecuzione30 secondi
Richieste API per esecuzione100
JSON restituito256 KB
Output console200 righe / 32 KB

Ogni richiesta interna influisce sul rate limit API normale della credenziale. I risultati voluminosi sono esplicitamente contrassegnati come troncati; filtra o riassumi all’interno del programma invece di restituire pagine grezze.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search AI Glot Docs documentation and read it in full, instead of answering from memory.

https://ai-glot.com/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://ai-glot.com/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.