AISquare

Use these docs in your agent

Drive the platform from a coding agent over MCP, pull the whole docs corpus as plain text, or copy any page as Markdown.

These docs, and the platform they describe, are built to be used by agents as well as people. A coding agent can use these docs three ways. It can drive the platform over MCP: read runs, reasoning, and verdicts, and write corrections back. It can read the whole docs corpus as plain text. Or it can copy any single page as Markdown. This page shows each option and the exact config to paste.

Drive the platform from your coding agent

The learnings MCP server exposes the Trust Loop as tools: your runs, the reasoning graph, per-rule verdicts, findings, improvement suggestions, cross-run insights, and the feedback write path. A coding agent with these tools reads what its agent did and fixes it against real graded evidence instead of guesswork.

Download the server: aisquare_learnings_mcp.py. One file, Python 3.9+, one dependency (pip install mcp), HTTP via the standard library. Every tool is a read except two deliberately safe writes: feedback dispositions and the deterministic per-run checkup. Nothing in it can delete or alter a run.

Install and register (Claude Code)
pip install mcp
curl -sO https://docs.aisquare.studio/tools/aisquare_learnings_mcp.py

export EXPLAINABILITY_GATEWAY_URL="https://<your-workspace>.aisquare.studio"
export EXPLAINABILITY_API_KEY="AIS_..."        # studio API key
export AISQUARE_STUDIO_ID="<your-studio-id>"

claude mcp add aisquare-learnings -- python3 aisquare_learnings_mcp.py
mcp.json (Cursor, Claude Desktop, Windsurf, VS Code)
{
  "mcpServers": {
    "aisquare-learnings": {
      "command": "python3",
      "args": ["aisquare_learnings_mcp.py"],
      "env": {
        "EXPLAINABILITY_GATEWAY_URL": "https://<your-workspace>.aisquare.studio",
        "EXPLAINABILITY_API_KEY": "AIS_...",
        "AISQUARE_STUDIO_ID": "<your-studio-id>"
      }
    }
  }
}

Reads need a studio key

The reads behind these tools are studio-scoped, so set a studio API key. A workspace ingest key sends traces but answers every read with 403 Studio ID mismatch. See Authentication.

The twelve tools, mapped to the Trust Loop:

ToolWhat it returnsLoop step
list_runsRecent runs, filterable by errors, policies, agent, dateUnderstand
get_run_graphThe run as nodes and edges with latency, tokens, costUnderstand
get_reasoningClaims, inference chain, assumptions (RML)Understand
get_verdictsPer-rule pass and fail gates with the judge's reasoningPrevent
get_findingsMachine-readable gaps with fingerprintsFix
send_feedbackDispositions a finding; trains the graderFix
get_optimizationsHeuristic improvement suggestions for one runFix
studio_insightsCross-run patterns over the last N runsRemember
run_checkupDeterministic per-run health vs the agent's own historyFix (coming soon)
learnings_contextDistilled lessons ready to inject into a promptRemember (coming soon)
list_lessonsThe lesson list: candidate, active, promotedRemember (coming soon)
get_trendsCost, latency, and reliability trends with run idsRemember (coming soon)

The four tools marked coming soon are already in the server. Until the lessons rollout reaches your gateway, they answer with a clear "not deployed on this gateway version yet". When the rollout lands they start answering, with no client-side change.

Feed the whole corpus to a model

Two routes expose these docs as plain Markdown that any model can read in one request. They follow the llms.txt convention.

Use /llms.txt when you want a small map and let the model follow links. Use /llms-full.txt when you want everything in one payload, for example to ground a one-off question or seed a retrieval index.

Copy a single page

Every page in these docs carries its own AI affordances in the header, next to the title:

  • Copy Markdown copies the page as clean Markdown, ready to paste into a chat or a prompt.
  • Open in ChatGPT, Claude, or Cursor opens that assistant with the page already loaded as context.

You can also fetch the raw Markdown of any page directly. Append .md to its URL:

https://docs.aisquare.studio/docs/getting-started/quickstart.md

The same URL without the suffix returns Markdown too when the request sends an Accept: text/markdown header, so a crawler or agent gets Markdown while a browser gets the rendered page.

Query the docs over MCP

Not active yet

A hosted docs-search MCP endpoint (GitMCP over this repository) requires the repository to be public, and it is currently private, so that endpoint does not answer today. Until it is live, point your agent at /llms.txt and the per-page Markdown above, or use the platform MCP server at the top of this page. This note will be replaced with the endpoint and config when it activates.

Questions

Building an agent on AISquare and need something these surfaces do not cover? Reach us at bots@aisquare.studio.

On this page