Skip to content

Agent Cannot See Documents

Your agent says it can’t find any documents, or it doesn’t seem to know about Archcore at all. Here are the most common causes and how to fix each one.

The agent needs an MCP server configuration to connect to Archcore. Without it, the agent has no way to discover or read your documents.

Check: Look for the MCP config file for your agent:

AgentConfig file
Claude Code.mcp.json
Cursor.cursor/mcp.json
GitHub Copilot.vscode/mcp.json
Gemini CLI.gemini/settings.json
OpenCodeopencode.json
Codex CLI.codex/config.toml
Roo Code.roo/mcp.json
ClineVS Code globalStorage (manual setup)

Fix: Run the setup command:

Terminal window
archcore mcp install

Or re-run full initialization, which also installs hooks:

Terminal window
archcore init

Both commands auto-detect your agents and write the correct config files. See Supported Agents for the full agent registry.

The MCP server runs as a subprocess — your agent executes archcore mcp behind the scenes. If the archcore binary isn’t in your shell PATH, the agent can’t launch it.

Check:

Terminal window
which archcore

If this returns nothing, the binary isn’t in your PATH.

Fix: Add the directory containing archcore to your PATH. The exact location depends on how you installed it. If you used the install script, the binary is typically at ~/.local/bin/archcore or /usr/local/bin/archcore.

After updating your PATH, verify:

Terminal window
archcore --version

The MCP server looks for .archcore/ relative to the current project root. If you opened your editor in a parent directory, a subdirectory, or a different project entirely, the server won’t find your documents.

Check:

Terminal window
ls .archcore/

If this shows “No such file or directory,” you’re not in the right project root.

Fix: Open your editor or terminal in the directory that contains .archcore/. For multi-root workspaces, make sure the project with .archcore/ is the active workspace root.

Without session hooks, the agent doesn’t receive context about Archcore when a conversation starts. The agent can still use MCP tools if configured, but it won’t proactively check for documents — it only discovers them if it happens to call the MCP tools.

Check: For Claude Code, look for the hook in .claude/settings.json:

{
"hooks": {
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "archcore hooks claude-code session-start"
}
]
}
]
}
}

Fix:

Terminal window
archcore hooks install

This installs hooks for all detected agents. See Hooks for agent-specific details.

Some agents or agent modes don’t support the Model Context Protocol. If your agent isn’t in the supported agents list, it can’t connect to the Archcore MCP server.

Supported agents: Claude Code, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Codex CLI, Roo Code, Cline.

If your agent isn’t listed, you can still use Archcore documents manually — they’re standard Markdown files in .archcore/ that any tool can read.

The agent connects to MCP successfully but reports zero documents. This usually means your documents have validation errors and are being skipped.

Check:

Terminal window
archcore validate

This reports any issues with file naming, frontmatter, or document structure.

Common causes:

  • Filename doesn’t match slug.type.md pattern (e.g., spaces, underscores, or uppercase in the slug)
  • Missing or invalid YAML frontmatter (title and status are required)
  • Unknown document type in the filename

Fix: Correct the issues reported by archcore validate. See Common Validation Errors for detailed guidance on each error type.

Run a full diagnostic:

Terminal window
archcore doctor

This checks your settings.json, document structure, MCP configuration, and server reachability in one pass. The output tells you exactly what’s wrong and how to fix it.