MCP Server — External Agent Access

An MCP server lets an outside agent work inside Echo of Dreams through a fixed set of tools. The agent brings its own reasoning loop. We bring the tools, the data, and the permission boundary behind them.

The agent always acts as one signed-in person, with exactly that person's reach. It never gets a wider identity. Who it acts for comes from the access token on every call, never from a tool argument, so it cannot ask to be someone else.

The two doors

The two doors are separate servers with separate sign-ins, separate token stores and separate tool lists. A token minted for one resolves to nothing at the other.

User door Admin door
Who connects A creator, with their own assistant Staff (Moderator and up)
Served by The account service, at /mcp The admin API: a full door at /mcp, plus focused doors at /mcp/admin/<name>
Turned on from The account site's Agents → Access (the writing app's Settings → Agent access shows the same panel) Admin console Agent access
Needs Pro or higher, plus the per-account switch Moderator rights or higher, plus the per-account switch
OAuth client ids claude-code-user (Claude Code), claude-ai-user (claude.ai) claude-code, claude-ai
Reach Your own work, your own chats, public content Platform-wide, gated per admin area
What it can change Your own work, at the level you set per area Scoped configuration only, never a moderation decision

Both doors re-check everything on every call, with nothing cached: the token, the per-account switch, the account's standing, and (user door) the live subscription or (admin door) the live admin rights. Turning the switch off is a kill switch: the next call fails. A demoted moderator loses the admin door on their next call. A lapsed Pro subscription pauses the user door until renewal, and renewing brings the same connection back without reconnecting.

The client ids name the app, not the person. They are fixed and the same for everyone, and there are no others: neither door accepts dynamically registered clients. You are identified by signing in to Echo of Dreams in the browser window the app opens, where a consent screen lists what the assistant will reach before you choose Allow.

The user door

Connecting

  1. Open Agents → Access on the account site (or Settings → Agent access in the writing app) and turn on agent access.
  2. Copy the connection address and connector name from that page. They differ between environments, so never guess them.
  3. Connect from your app:
    • Claude Code: run the connect command shown on the page, then the login line under it.
    • claude.ai: Customize → Connectors → Add custom connector, paste the address as the server URL, and under the OAuth client choose your own client with the id claude-ai-user and no secret.
  4. Sign in to Echo of Dreams in the window that opens and choose Allow.

The same page lists your Connected assistants, each with Disconnect, and a separate Allow paid task runs switch (off by default, see Paid test runs).

The user door is switched on per deployment. Where the access panel doesn't appear, it isn't enabled on that site yet.

What it offers

The user door composes thirteen tool packs by default. Every pack is the same code the in-product Workbench Assistant uses; the door decides which packs join and how far a write may go.

Pack What the assistant can do
account Read who it is working for, your plan and Echo balance, the live access levels, and the state of an approval it asked for
knowledge Search the help knowledge and its own runbook
entity_library Read your own characters, modes, lorebooks, trackers, personas and packages, their field contracts, the tag catalogue, your profile page, and run the free content pre-check
project_reads Read a project's pool and check whether a package is complete
conversation_observation List your chats, read their messages, and see why a story behaved as it did: its setup, tracker history, summaries and journal, and which lore fired
experience_dry_run Preview the assembled prompt, and simulate a tracker eval or a lorebook match
entity_authoring Draft new entities, edits, greetings, lorebook entries, tracker mechanisms, model wiring, bindings and project additions
media Read your gallery, and draft folder changes, picture details and ratings, links, avatars and imports by link
entity_lifecycle Ask to submit something for publish review, or to change its visibility
project_management Ask to create a project, change its settings, invite or re-role a member, remove a member, or move items between projects
support_intake File a bug report, feedback or an escalation to human support as you, and prepare a content report
context_advice Read your own settings and a story's settings as its next turn reads them, to explain why a story forgot or ignored something or got expensive. Read-only and free
notebook Open, read and edit your notebooks and your projects' notebooks, and read their history

support_intake needs a verified account (a confirmed email address; a linked Google or Discord account alone doesn't count). Without one, those tools are absent from the list, and the rest of the door works as usual.

A connection can also set packs aside and load others with list_packs, load_pack and unload_pack, within a fixed tool ceiling: docs feedback, picture upload, Ask to Join, a greeting's tracker start values and its lorebooks, a session's scratch files, the profile page (where the profile editor is open to you) and blog work (with a blog role).

Permission levels

You set one level per area, on the same settings page. Every area starts at Ask first.

Level What the assistant may do in that area
Read only Look and run tests. Writes are refused.
Ask first Draft changes. They wait for you to review and apply.
Trusted Its changes to your own work apply in the same call, with no review step.
Unrestricted Listed as Coming soon. Not available.
Area Covers Highest level today
Your entities Creating and editing characters, modes, lorebooks, trackers, personas, packages Trusted
Wiring and project pools Binding lorebooks and trackers, adding entities to a project's pool Trusted
Publishing and visibility Submitting for publish review, changing who can see something Trusted (still a click, below)
Projects and people Creating projects, changing settings, managing members Trusted (still a click, below)
Spending Echoes Tips and feature commitments Read only: no spending tool exists
Your gallery Folders, picture details and ratings, imports by link or file Trusted
Your notebooks Notes, shared memory and guidance in your notebook and your projects' notebooks Trusted
Your blog posts (with a blog role) Drafts and review requests Trusted (publishing, unpublishing and deleting are still a click)

How a write behaves depends on the kind of area:

What it never does

Almost every tool is free. Two simulations run a real model: the tracker eval dry-run, and the semantic half of a lorebook match simulation. They spend your Echoes, so they sit behind the separate Allow paid task runs switch, off by default, and held to a daily limit you set yourself (default 50 ✶). The assistant owns its loop, not us, so the switch and the limit are the spend controls. With the switch off, both are refused before anything is spent, and the refusal says how to turn it on. The lorebook match can still run its free keyword and full-text half on its own when the assistant asks for only that.

Seeing what it did

The account site's Agents → History (the writing app's Settings → Agent activity) lists every tool call a connected assistant made on your account: which tool, when, and whether it succeeded. Anything the assistant reads leaves Echo of Dreams for the assistant provider's servers.

The admin door

Connecting

Staff turn on agent access in the admin console's Agent access page, which lists every door with its own address and connector name. Each door is a separate connector holding its own grant. Claude Code connects with the command on that page; claude.ai uses the client id claude-ai.

The doors

The full door keeps everyday admin work in one connection. Focused doors carry packs that never join the full door, and let an operator connect only what a session needs. Every door gets the same identity tools (about_me, describe_my_access) and the same rules; a door narrows which packs compose, never how a call is gated.

Door Path Packs
Full admin door /mcp knowledge, admin reads, diagnostics, publications, moderation tuning, platform models, AI tasks
Moderation /mcp/admin/moderation knowledge, admin reads, moderation tuning, AI tasks
Billing /mcp/admin/billing knowledge, admin reads, platform models
Publications /mcp/admin/publications knowledge, publications
Ops /mcp/admin/ops knowledge, admin reads, diagnostics, Discord diagnostics, admin audit
Content /mcp/admin/content knowledge, admin reads, content reads
Users /mcp/admin/users knowledge, admin reads, users reads
Docs /mcp/admin/docs docs, knowledge

What the packs do:

Pack Covers
admin reads Moderation queue counts, the bug-report batch, setting a bug report's triage status, and why a user can or can't use a feature
diagnostics Service health, background workers, the moderation pipeline, AI tasks, payment webhooks, the subscription and commitment journals, the LLM admission gate, Postgres health, edge refusals, service logs, agent activity, bot instance logs and prompt cost
publications Drafting and editing announcements and banners
moderation tuning Check configs and their signals, keyword filters, eval sets and cases, prefilter keywords and anchors, publish-check settings, pipeline runs, re-runs and outcome statistics
platform models The priced platform-model catalog: read, validate, probe, create, update, activate
AI tasks Reading, editing and test-running the config-driven AI tasks
content reads Why a creator or world profile page reads the way it does for each kind of viewer
Discord diagnostics The shape of a bound Discord channel's history
users reads How many accounts made the adult statement, have none, or are presumed minors (counts only)
admin audit The admin action journal: who changed what
docs Reading, searching and editing the docs spaces

The admin door's limits

What is still planned

Item State
Unrestricted (user door) 📋 Its preconditions are built: the level needs a verified email and a one-time confirmation per area. No area reaches it yet. When it ships, publishing, visibility and project verbs run without the approval link, still only where a project's own policy allows it.
Spending (user door) 📋 The area exists at Read only. No tool spends Echoes on tips or features.
Grouped notices ✅ Shipped (2026-10-28, be3c45593): an assistant's acted-on notices are grouped into one per time window (30 minutes by default) rather than one per act.

Deliberately out of scope, on both doors: deleting content for good (the docs door's reversible removals above are the only deletes), bulk export, and Echo of Dreams acting as an MCP client of other servers.

Design record

These decisions shaped what shipped. Code comments cite them by name.

Acceptance Criteria

Boxes marked [x] were verified live on the date given, or are pinned by the named tests. Unmarked boxes were not re-verified against the running product in the 2026-10-29 rewrite.

User use cases: satisfiable and accessible:

Behavior:

Invariants that must stay true:

Edges: