Skip to main content
Glama
atlas-introspect-mcp

atlas-introspect-mcp

by garland3

atlas-introspect-mcp

Un servidor MCP que permite que ATLAS se observe — y se edite — a sí mismo:

superficie

lo que obtienes

cómo

conversaciones

listar, buscar, leer el historial completo del chat

API REST de ATLAS (solo lectura)

config/mcp.json

leer, añadir/reemplazar/eliminar un servidor, reemplazar el archivo

en disco, atómico + con copia de seguridad

espacios de trabajo

listar, crear, actualizar, eliminar

API REST de ATLAS

prompts personalizados

la biblioteca de prompts por usuario

API REST de ATLAS

archivos de prompts

los valores predeterminados prompts/*.md en disco

en disco, con copia de seguridad

Por qué pasa por la API HTTP

El historial de chat, los espacios de trabajo y los prompts residen todos en un único archivo DuckDB (data/chat_history.db). DuckDB es de un solo escritor y el proceso de ATLAS mantiene ese bloqueo de escritura durante toda su vida útil; un segundo proceso que abra el archivo, incluso en modo solo lectura, falla con un conflicto de bloqueo. Así que este servidor le pregunta a ATLAS a través de HTTP en bucle local. Eso también significa que el alcance por usuario lo aplica ATLAS, no se reimplementa aquí.

Solo se tocan directamente mcp.json y prompts/*.md; ATLAS no tiene API para ninguno de los dos.

Ser un proceso separado es lo que hace seguro llamar de vuelta a ATLAS: ATLAS espera la respuesta stdio de este servidor mientras su propio bucle de eventos queda libre para atender la solicitud. Una herramienta en el mismo proceso que hiciera lo mismo provocaría un interbloqueo.

Related MCP server: Capyra

Identidad

Cada consulta se limita a un usuario, enviada como X-User-Email. Con DEBUG_MODE=true, ATLAS respeta esa cabecera; con ella desactivada, la cabecera es la que habría proporcionado el proxy de autenticación, así que la misma bandera funciona en ambos casos. El valor predeterminado es test@test.com — el usuario de prueba al que ATLAS recurre en modo depuración y, por tanto, el propietario de las conversaciones creadas a través de la interfaz en este host.

Instalación

git clone https://github.com/garland3/atlas-introspect-mcp
cd atlas-introspect-mcp
uv venv .venv
uv pip install -e ".[dev]" --python .venv/bin/python

Comprobación independiente (con ATLAS en ejecución):

.venv/bin/atlas-introspect-mcp --list-tools
.venv/bin/python -c "
import asyncio; from fastmcp import Client
from fastmcp.client.transports import StdioTransport
async def m():
    async with Client(StdioTransport(command='.venv/bin/atlas-introspect-mcp', args=['--stdio'])) as c:
        print(await c.call_tool('atlas_status', {}))
asyncio.run(m())"

Registro con ATLAS

Añade a tu config/mcp.json de ATLAS (rutas absolutas — el comando se busca en el PATH del gestor de servicios, no en el de tu shell) y luego reinicia ATLAS:

"atlas_introspect": {
  "command": [
    "/abs/path/to/atlas-introspect-mcp/.venv/bin/atlas-introspect-mcp",
    "--stdio",
    "--atlas-url", "http://127.0.0.1:8090",
    "--user", "test@test.com"
  ],
  "cwd": "/abs/path/to/atlas-introspect-mcp",
  "transport": "stdio",
  "groups": ["users"],
  "description": "Introspect and configure this ATLAS instance: browse chat history, read/edit config/mcp.json, manage workspaces and custom prompts.",
  "short_description": "ATLAS self-introspection",
  "compliance_level": "Public"
}

Añade "--read-only" al comando para una versión solo de visualización; cada herramienta de mutación se negará en lugar de escribir.

Puertos: stdio no necesita ninguno. --transport http usa por defecto el 8101. Rechaza el puerto 8080 directamente — en un host con k3s, klipper-lb hace DNAT de 8080 a Traefik incluso en 127.0.0.1, así que un servidor enlazado allí no recibe nada y cada solicitud vuelve como un 500 vacío sin ninguna línea en tu registro.

Configuración

Cada bandera tiene un equivalente en variable de entorno.

bandera

variable de entorno

valor predeterminado

--atlas-url

ATLAS_URL

http://127.0.0.1:8090

--user

ATLAS_USER

test@test.com

--auth-header

ATLAS_AUTH_HEADER

X-User-Email

--atlas-home

ATLAS_HOME

~/ATLAS-GROUP/atlas-ui-3

--config-dir

ATLAS_CONFIG_DIR

<atlas-home>/config

--prompts-dir

ATLAS_PROMPTS_DIR

<atlas-home>/prompts

--timeout

ATLAS_TIMEOUT

30 segundos

--max-output-chars

ATLAS_MAX_OUTPUT

100000

--read-only

ATLAS_INTROSPECT_READ_ONLY

desactivado

--transport

ATLAS_INTROSPECT_TRANSPORT

stdio

--port

ATLAS_INTROSPECT_PORT

8101 (solo transporte http)

Herramientas

Conversaciones (solo lectura) — list_conversations, search_conversations, get_conversation, list_conversation_tags

config/mcp.json — get_mcp_config, upsert_mcp_server, delete_mcp_server, replace_mcp_config

Espacios de trabajo — list_workspaces, create_workspace, update_workspace, delete_workspace

Prompts personalizados — list_custom_prompts, get_custom_prompt, create_custom_prompt, update_custom_prompt, delete_custom_prompt

Archivos de prompts en disco — list_prompt_files, read_prompt_file, write_prompt_file

Salud — atlas_status

Cosas que te morderán

  • Las ediciones de mcp.json no son en vivo. ATLAS lanza los servidores stdio al arrancar. Cada herramienta de escritura lo indica en su resultado; aplica con systemctl --user restart atlas o ./redeploy.sh --no-pull.

  • Editar tu propia entrada funciona, pero solo tiene efecto al reiniciar — momento en el que una entrada rota significa que este servidor ha desaparecido y no puedes arreglarlo desde dentro de ATLAS. Las copias de seguridad se guardan junto al archivo como mcp.json.bak-<stamp>.

  • upsert_mcp_server reemplaza una entrada por completo, no la fusiona. Léela primero, cámbiala y envía el objeto completo de vuelta. Lo mismo para el config de un espacio de trabajo y el content de un prompt.

  • Las herramientas de conversación son de solo lectura por diseño. Hay endpoints de eliminación en ATLAS; deliberadamente no se exponen aquí.

  • write_prompt_file cambia todos los chats de la instancia. Hace una copia de seguridad primero y, como mcp.json, se aplica en el próximo reinicio.

Pruebas

.venv/bin/pytest

Cubren la lógica de edición y validación de archivos (escritura atómica, copia de seguridad, rechazo de recorrido, advertencias de lint, modo solo lectura) contra un directorio temporal — no se necesita ATLAS en ejecución.

Available Tools

21 tools
atlas_statusA

Check that ATLAS is up and report what this server is pointed at.

Start here when another tool fails: it distinguishes "ATLAS is down" from "the feature is disabled" from "this server is aimed at the wrong URL".

Inputs: no named parameters. Returns: object

create_custom_promptB

Add a prompt to this user's library.

Inputs: title (required), content (required). Returns: object

create_workspaceB

Create a workspace.

The selection fields are exactly what ATLAS restores when the workspace is applied; unknown keys are rejected by the API, so use these arguments rather than a free-form config blob.

Inputs: name (required), description, rag_enabled, selected_tools, +3 more. Returns: object

delete_custom_promptA

Delete a custom prompt. Not recoverable — confirm with the user first.

Inputs: prompt_id (required). Returns: object

delete_mcp_serverA

Remove a server entry from config/mcp.json (previous file is backed up).

Inputs: name (required). Returns: object

delete_workspaceA

Delete a workspace. Not recoverable — confirm with the user first.

Inputs: workspace_id (required). Returns: object

get_conversationA

Read one full conversation, including its messages.

Long messages are clipped per-message so a single large tool result cannot swamp the answer; raise max_message_chars when you need the full text of a specific turn.

Inputs: conversation_id (required), include_metadata, max_message_chars. Returns: object

get_custom_promptA

Read one custom prompt in full, by id.

Inputs: prompt_id (required). Returns: object

get_mcp_configA

Read config/mcp.json — the whole file, or one server entry.

Inputs: lint, server. Returns: object

list_conversationsA

List saved conversations, newest first.

Returns id, title, model, timestamps, message count, and a short preview. Use get_conversation for the messages themselves.

Inputs: tag, limit, offset. Returns: object

list_conversation_tagsA

List the tags this user has applied to conversations.

Inputs: no named parameters. Returns: object

list_custom_promptsB

List this user's custom prompt library.

Inputs: include_content. Returns: object

list_prompt_filesA

List the markdown prompt files ATLAS loads from disk.

These are the defaults (system prompt, agent reason/observe/summary prompts), separate from the per-user library above. Editing one changes behaviour for every chat, and takes effect on the next ATLAS restart.

Inputs: no named parameters. Returns: object

list_workspacesA

List this user's workspaces (saved bundles of prompt/tool/RAG selections).

Inputs: no named parameters. Returns: object

read_prompt_fileC

Read one on-disk prompt file.

Inputs: name (required). Returns: object

replace_mcp_configA

Overwrite config/mcp.json with a complete JSON document.

For restructuring several entries at once. Rejected unless content parses as an object of objects; the previous file is backed up either way. Prefer upsert_mcp_server for a single-server change.

Inputs: content (required). Returns: object

search_conversationsC

Search conversations by title and message content.

Inputs: query (required), limit. Returns: object

update_custom_promptA

Edit a custom prompt's title or content.

content replaces the whole text — read it with get_custom_prompt first if you are amending rather than rewriting.

Inputs: prompt_id (required), title, content. Returns: object

update_workspaceA

Update a workspace's name, description, or selections.

config replaces the whole selection snapshot when given — read the current one with list_workspaces first. Allowed keys: active_prompt_key, selected_tools, selected_prompts, selected_data_sources, rag_enabled. Anything else is rejected by ATLAS.

Inputs: workspace_id (required), name, config, description. Returns: object

upsert_mcp_serverA

Add or replace one server entry in config/mcp.json.

The entry is replaced wholesale, not merged — read the current entry with get_mcp_config first and send it back with your change applied. The rest of the file is untouched, and the previous file is backed up.

A stdio entry looks like::

{"command": ["/abs/path/.venv/bin/entrypoint", "--stdio"],
 "cwd": "/abs/path", "transport": "stdio",
 "groups": ["users"], "description": "what it does"}

Inputs: name (required), config (required). Returns: object

write_prompt_fileA

Overwrite an on-disk prompt file, backing up the previous version.

Affects every chat in this instance and applies on the next ATLAS restart. Confirm with the user before changing system_prompt.md.

Inputs: name (required), content (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 21 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: conversations, workspaces, custom prompts, prompt files, and MCP config are cleanly separated. Even similar operations like search_conversations vs list_conversations are differentiated by their descriptions (search vs browse). No two tools appear to do the same thing.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (list_, get_, create_, update_, delete_, read_, write_, search_, upsert_, replace_) with snake_case throughout. Only 'atlas_status' deviates slightly, but it's a special health-check tool and still fits the imperative style.

    Tool Count4/5

    At 21 tools, the server is on the heavier side, but the scope (managing conversations, workspaces, prompts, prompt files, and MCP config) justifies the count. Each tool addresses a specific need, and there is no obvious duplication or bloat.

    Completeness4/5

    Workspaces, custom prompts, and MCP config all have full CRUD (or equivalent) coverage. Conversations lack create/delete, and tags are read-only, but those may be intentionally absent for an introspection tool. The ability to read and write prompt files covers the on-disk prompt management need. Minor gaps exist, but agents can work around them.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables ChatGPT and other MCP clients to browse, search, edit and upload files, run commands and interactive terminals, inspect Git history and worktrees, dispatch coding agents, and install composable plugins within locally registered workspaces. Requests execute under the user's own machine with per-request approval or auto-approval, keeping files, tasks and results local unless explicitly returned.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables administration of LibreChat through MCP, providing tools to manage Skills, Agents, scheduled tasks, Prompt library, and visibility/permissions. It also offers a generic API request tool for interacting with upstream endpoints.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables a self-hosted AI workspace with persistent sessions, agent run/step execution logs, unified search across conversations and knowledge, and discovery/invocation of local and remote MCP tools.
      MIT