Skip to main content
Glama
garland3

atlas-introspect-mcp

by garland3

atlas-introspect-mcp

ATLAS が自分自身を参照・編集できるようにする MCP サーバー:

サーフェス

得られるもの

方法

会話

一覧、検索、チャット履歴全体の読み取り

ATLAS REST API(読み取り専用)

config/mcp.json

サーバーの読み取り、追加/置換/削除、ファイルの置換

ディスク上、アトミック+バックアップ

ワークスペース

一覧、作成、更新、削除

ATLAS REST API

カスタムプロンプト

ユーザーごとのプロンプトライブラリ

ATLAS REST API

プロンプトファイル

ディスク上の prompts/*.md デフォルト

ディスク上、バックアップあり

HTTP APIを経由する理由

チャット履歴、ワークスペース、プロンプトはすべて1つの DuckDB ファイル(data/chat_history.db)に格納されています。DuckDB はシングルライターであり、ATLAS プロセスはその書き込みロックをプロセス全体の存続期間中保持します。そのため、別のプロセスがファイルを開こうとすると、読み取り専用であっても、ロック競合で失敗します。そこで、このサーバーはループバック HTTP 経由で ATLAS に問い合わせます。これにより、ユーザーごとのスコープもここで再実装するのではなく、ATLAS によって強制されます。

mcp.jsonprompts/*.md のみが直接操作されます。ATLAS にはどちらにも API がありません。

別プロセスであることが、ATLAS へのコールバックを安全にします。ATLAS はこのサーバーの stdio 応答を待つ間、自身のイベントループはリクエストを処理するために空いたままです。同じことをプロセス内ツールで行うとデッドロックします。

Related MCP server: Atlas MCP Server

アイデンティティ

すべてのクエリは1人のユーザーにスコープされ、X-User-Email として送信されます。DEBUG_MODE=true の場合、ATLAS はそのヘッダーを尊重します。オフの場合、ヘッダーは認証プロキシが提供したものになるため、同じフラグがどちらの場合でも機能します。デフォルトは test@test.com です。これはデバッグモードで ATLAS がフォールバックするテストユーザーであり、したがってこのホスト上の UI を通じて作成された会話の所有者です。

インストール

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

スタンドアロンチェック(ATLAS 実行中):

.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())"

ATLAS に登録する

ATLAS の config/mcp.json に追加します(絶対パス — コマンドはシェルの PATH ではなく、サービス管理の PATH で検索されます)。その後、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"
}

ビュー専用ビルドにするには、コマンドに "--read-only" を追加します。すると、すべての変更ツールは書き込みの代わりに拒否します。

ポート: stdio は不要です。--transport http はデフォルトで 8101 です。ポート 8080 は完全に拒否します。k3s を実行しているホストでは、klipper-lb が 8080 を Traefik に DNAT します(127.0.0.1 を含む)。そのため、そこにバインドされたサーバーは何も受信せず、すべてのリクエストはログに何も残らない空の 500 として返されます。

設定

すべてのフラグには環境変数による同等のものがあります。

フラグ

環境変数

デフォルト

--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

--max-output-chars

ATLAS_MAX_OUTPUT

100000

--read-only

ATLAS_INTROSPECT_READ_ONLY

off

--transport

ATLAS_INTROSPECT_TRANSPORT

stdio

--port

ATLAS_INTROSPECT_PORT

8101(HTTP トランスポートのみ)

ツール

会話(読み取り専用)list_conversations, search_conversations, get_conversation, list_conversation_tags

config/mcp.jsonget_mcp_config, upsert_mcp_server, delete_mcp_server, replace_mcp_config

ワークスペースlist_workspaces, create_workspace, update_workspace, delete_workspace

カスタムプロンプトlist_custom_prompts, get_custom_prompt, create_custom_prompt, update_custom_prompt, delete_custom_prompt

ディスク上のプロンプトファイルlist_prompt_files, read_prompt_file, write_prompt_file

ヘルスatlas_status

注意点

  • mcp.json の編集は即時反映されません。 ATLAS は起動時に stdio サーバーを起動します。すべての書き込みツールはその結果にその旨を記載します。適用するには systemctl --user restart atlas または ./redeploy.sh --no-pull を実行してください。

  • 自分自身のエントリの編集は機能しますが、再起動後にのみ有効になります。 その時点でエントリが壊れていると、このサーバーは消えてしまい、ATLAS 内から修正できません。バックアップはファイルの隣に mcp.json.bak-<スタンプ> として作成されます。

  • upsert_mcp_server はエントリを丸ごと置き換えます、マージはしません。まず読み取り、変更し、全体を送り返してください。ワークスペースの config やプロンプトの content も同様です。

  • 会話ツールは設計上読み取り専用です。 ATLAS には削除エンドポイントがありますが、ここでは意図的に公開していません。

  • write_prompt_file はインスタンス内のすべてのチャットを変更します。 まずバックアップを作成し、mcp.json と同様に次の再起動時に適用されます。

テスト

.venv/bin/pytest

これらは、一時ディレクトリに対してファイル編集と検証ロジック(アトミック書き込み、バックアップ、トラバーサル拒否、lint 警告、読み取り専用モード)をカバーしています。実行中の ATLAS は不要です。

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables MCP-based interaction with a local Hermes Agent installation, providing file read/search, skill management, and optional sandboxed write, terminal, and memory tools.
    9
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents and users to manage workspace files, monitor system metrics, take persistent notes, and retrieve weather data via MCP tools and resources.
  • A
    license
    A
    quality
    C
    maintenance
    Enables MCP-compatible clients to interact with AnythingLLM, providing tools for workspace management, chat and thread operations, document operations, vector search, and system inspection.
    34
    5
    MIT
  • A
    license
    C
    quality
    B
    maintenance
    MCP sidecar for Hermes Agent exposing operator tools (cron, skills, config, workspace) with tiered read-only/operator/owner modes and dry-run by default for safe local development.
    43
    MIT

View all related MCP servers

Related MCP Connectors

  • Self-hostable team wiki; agents read & write it via MCP; Atlas turns your repo into a cited wiki.

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

View all MCP Connectors

Latest Blog Posts

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/garland3/atlas-introspect-mcp'

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