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
- Open Agents → Access on the account site (or Settings → Agent access in the writing app) and turn on agent access.
- Copy the connection address and connector name from that page. They differ between environments, so never guess them.
- 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-userand no secret.
- 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:
- Drafting areas (entities, wiring, gallery). At Ask first a write becomes a staged proposal: personal work lands in your Agent proposals inbox, project work on that project's Agents tab for its managers. At Trusted the same proposal is recorded and then applied in the call, through the same code your review click runs. Every platform rule still fires at apply time; a write a rule refuses stays staged with the reason. Changes it applied itself are listed under History → Applied by your assistant.
- Action areas (publishing and visibility, projects and people). These eight verbs have no draft to review, so at both Ask first and Trusted they return an approval link. Nothing happens until you open it, signed in, and approve. Submitting for publish still goes through human moderation review afterwards.
- In a project, the project's own agent policy (its Agents tab, set by its managers) applies as well, and the stricter of the two wins. A new project stages an outside assistant's changes for review, even at Trusted.
- A call that touches two areas takes the lower of the two and is refused or staged whole, never half-applied.
- Raising a level asks each connected assistant to reconnect once, because a raise is new consent. Lowering takes effect on the next call.
What it never does
- It never deletes an entity, a conversation or a project. The one removal on the door is taking a person off a project: the assistant first shows what they would lose, and the removal waits for your approval.
- It never closes, resolves or withdraws a ticket or a report. Support filing only adds.
- It never spends Echoes on tips or features, changes your subscription, touches other people's private work, or changes its own permission levels.
Paid test runs
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
- Every tool checks the caller's admin area level first. A moderator with no access to an area gets a refusal naming the area, not a partial answer.
- Private content comes back derived, never raw. A tool returns a verdict, a flag, a status or a count. Raw private items stay in the admin console. Derived facts about users still leave the platform, and that is part of the consent.
- Writes are configuration, scoped and reversible. Triage status on bug reports only, never closing one. Check configs, keywords, eval cases, anchors and publish-check settings. Announcement and banner drafts: a published announcement or an active banner is refused, and nothing on the door publishes. Platform-model and AI-task settings. Docs edits, each one commit that readers don't see until a person publishes it in the docs console.
- No moderation decision crosses this door, except taking something away in a crisis. Nothing approves, rejects,
refunds or deletes forever. A pipeline re-run still routes its verdict to a human. The crisis door
(
/mcp/admin/crisis, 2026-11-01) can unpublish content, ban or sign out an account, stop a bot, contain a picture or hide a comment at once, at the staff member's own admin level, and every one of those a person undoes in the console. A delete it asks for is a restorable soft delete, and it waits for the staff member's click. - Reversible removals are allowed; hard deletes are not. The docs door can delete or rename a file at head,
as one commit that
docs_revertundoes and readers don't see until a person publishes, anddocs_unpublishcan take a page away from readers at once, which a person with Documentation Manage undoes by serving it again. Nothing on any admin door deletes forever: the docs tools have no purge to call.
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.
- Gate taxonomy (dev-signed 2026-07-20). The doors carry different gates, both global, neither per tool. The
user door is a Pro feature: the grant endpoint refuses a non-Pro account,
/authorizere-checks the tier, and every tool call re-checks it, because refresh tokens keep an active client connected for weeks without re-authorizing. The admin door gates on admin rights and is never tier-checked. The in-product Workbench Assistant composes the same packs with no tier gate: the gate belongs to the external door, never to a pack. - Paid runs are capped. The outside agent owns the loop, so no per-turn cost ceiling applies. The paid-runs switch (default off) and the person's own daily limit (set in Agent access) are the backstop; a call past it is refused before anything is spent.
- Write posture: stage, then apply through one fail-closed applier. The early design had an own-content
apply_ownflag. It shipped instead as the Trusted level: a write is always recorded as a proposal first, then applied through the proposal applier's per-kind table. A kind the table doesn't know stays staged, so a new content type can never be blind-written. - Opaque tokens, resolved per call. Access tokens are server-side, not JWTs, so revoking access stops a live session on its next call, and an MCP token replayed against the site's own APIs authenticates nothing.
- Two authorization servers. Each door's grants are minted by the service that already signs that audience in: the account service for creators, the admin API for staff. No component spans both.
- Tools carry their own gates. Our authorization lives at the endpoint layer, so each tool re-applies it rather than reading a repository directly.
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:
- As a Pro creator, I can turn on agent access in Settings → Agent access, connect Claude Code or claude.ai from the address on that page, and see my assistant read my library. (Open 2026-10-30: needs a real Claude Code or claude.ai connection against a running deployment with the user door switched on.)
- As a creator at Ask first, a change my assistant drafts waits in Agent proposals, and I can approve or reject it with feedback. (Open 2026-10-30: needs a connected assistant and a person driving the inbox in the running app.)
- As a creator at Trusted, a change to my own entity applies at once and is listed under History →
Applied by your assistant. (Open 2026-10-30: the apply path is pinned by
ComposerAutoApplyTests; the History listing still needs a person to check it in the running app.) - As a creator, an assistant's publish or project request reaches me as an approval link, and nothing happens until I approve it. (Open 2026-10-30: needs a connected assistant and a person opening the link signed in.)
- As a creator, I can disconnect one assistant, or turn access off for all of them, from the same page.
(Open 2026-10-30: the endpoints are pinned by
McpConnectionsEndpointTests; the page itself needs a person to drive it with a live connection.) - As a moderator, I can connect a focused admin door from the admin console's Agent access page and use
only that door's packs. (Open 2026-10-30: each door's tool list is pinned by
AdminMcpProfileTests.EachProfile_ListsExactlyItsPacksTools_PlusTheIdentityTools→ passed; connecting a real client from the console page still needs a person.)
Behavior:
- The user door is Pro-gated at the grant endpoint: a free account's grant is refused. (Verified live 2026-07-20.)
- A lapsed Pro loses a live connection on the next call, and renewing restores the same token. (Verified live
2026-07-20; the decision ladder is pinned in
McpUserGateDecisionTests.) - Turning the per-account switch off fails the next call on a live connection. (Verified 2026-10-30: the gate
reads the switch on every call, uncached;
ResolveDenial_KillSwitchOff_IsAccessRevoked_BeforeTierIsConsidered,Evaluate_AGrantNewerThanTheWatermark_ReachesTheKillSwitch,McpPermissionModeFunctionTests.Revoke_ResetsTheModes_ClearsRunTasks_AndBumpsTheEpochandARevokedConnection_IsRefusedOnItsNextCall_EvenWhileItsTokenRowIsStillValid→ passed.) - Raising a level makes the connection reconnect once; lowering one applies on the next call. (Verified
2026-10-30:
SetAreaModes_RaisingToTrusted_BumpsTheEpoch_SoEveryLiveTokenMustReconsent,SetAreaModes_LoweringDoesNotBumpTheEpoch_ALoweredSessionKeepsWorking,ResolveDenial_EpochMismatch_IsReconsentRequired,ARaiseThatRequiresReconnecting_EndsEveryLiveConnection_SoNoneIsListedAsConnectedandBuildAsync_PopulatesTheAuthorizationFromTheGrantRow_OnTheExternalDoor→ passed.) - A paid simulation with paid runs off is refused before any Echo is spent, and the daily cap holds.
(Owner, 2026-10-30: refuse, for both. Verified 2026-10-30: the tracker eval dry-run
(
Eval_FlagOff_RefusesBeforeAnySpend_AndNamesTheOptIn) and the lorebook match asking for its paid half (Simulate_FlagOff_TheVectorLegAskedFor_IsRefusedBeforeAnySpend_NamingTheOptInAndTheFreeRoute,LibrarySimulate_FlagOff_TheVectorLegAskedFor_IsRefusedBeforeAnySpend_AndTheLibraryCallNeverRuns) are refused with nothing charged and nothing run; the free half asked for alone still runs (Simulate_FlagOff_TheCallerAskedForTheFreeLegsOnly_RunsFree_WithNoNote,LibrarySimulate_FlagOff_TheCallerAskedForTheFreeLegsOnly_RunsTheLibraryCallFree); the cap holds (Eval_CapReached_RefusesNamingTheCap_NothingRuns) → passed.) - An account without a verified email has no
support_intaketools. (Verified 2026-10-30: "verified" isfn_user_has_verified_email, a confirmed email address, as above.UserMcpDoorTransportTests.AnUnverifiedCreator_GetsNeitherTheIntakeTools_NorTheirDoctrine_NorTheirResourceandUnverifiedRoster_IsExactlyTheFullRosterMinusTheIntakeCarveOut→ passed.)
Invariants that must stay true:
- No tool on either door deletes an entity, a conversation or a project; the only removal is a project member,
behind an impact report and an approval. (Verified 2026-10-30: both doors drop destructive tools, and the
user door lets through only
remove_member;ListToolsAsync_ExcludesADestructiveNonReadOnlyToolon both doors,RemoveMember_IsTheOnlyHighImpactVerb_AndTheOnlyDestructiveOne,RemoveMember_WithNoToken_ReturnsTheReportAndAToken_AndChangesNothingandRemoveMember_WithAValidToken_LandsAsAnApprovalLink_ThenRemovesAndNotifiesOnApprove→ passed.) - No admin pack joins the user door, and no user pack joins the admin door (pinned by
UserMcpPackProjectionTestsandAdminMcpProfileTests). (Verified 2026-10-30: both doors' pack lists are pinned name by name, and the only pack on both is the sharedknowledgepack;UserConnection_ComposesExactlyTheShippedComposerFamilyPacksPlusIntakeAndKnowledge,EveryProfile_IsASubsetOfTheAdminPacks_AndTogetherTheyLeaveNoAdminPackOut,NoCaller_EverReceivesAnAdminPacksDoctrine_ThoughTheAdminPacksAreRegistered→ passed.) - An admin-door token resolves to nothing at the user door, and the reverse. (Verified 2026-10-30: each door
keeps its opaque tokens in its own tables and accepts only its own audience;
McpUserTokenValidationRegistrationTests.OnlyATokenMintedForThisDoor_IsAccepted_TheAudienceIsTheDoorsResourceUrl,AdminMcpProfileTokenTests.ATokenWithANonAdminAudience_IsRefused_OnEveryDoorPath(a user-door audience included) andATokenTheServerNeverMinted_IsRefused_OnEveryPath→ passed.) - No tool on the admin door publishes, approves, rejects, refunds or deletes forever; its only removals
are reversible. (2026-11-01: "bans" left this line. The crisis door's
ban_accountbans at once, as the console does; an unban is a person's, in the console. Itsdelete_contentis a soft delete behind the click.) (Owner, 2026-10-30: the docs door's soft removals are allowed, hard deletes are not. Verified 2026-10-30: nothing publishes, approves, rejects, bans or refunds, and the door drops every destructive tool (McpPackProjectionTests→ passed). Every removal the docs door offers is undoable, read in code:docs_editdelete/rename(a file or a folder) andcreateover an existing file are one commit at head throughIScopedRepoStore.WriteAsync(DocsAuthoring.EditAsync), whichdocs_revertundoes anddocs_historykeeps;docs_revertis itself a commit;docs_unpublishchanges only the served copy (head andrefs/publisheduntouched) and a person serves the page again (ReadmitAsync, AdminAPI/api/admin/docs/spaces/{space}/readmit, docsConsoleServeItAgain).IDocsAuthoringhas no publish, readmit, restore or purge method, so the store'sDeleteForeverAsyncis unreachable from the pack.) - No area accepts a level above its deployed ceiling (pinned by
McpPermissionModeFunctionTests). (Verified 2026-10-30:TheCheckConstraint_RefusesAnAboveCeilingWrite_EvenByHand,SetAreaModes_AboveTheCeiling_IsRefusedByTheCheck_NotClamped,AgentAreas_MatchesTheCoreRegistry_TheTwoCeilingSourcesCannotDriftandValidateAreaMode_AboveTheDeployedCeiling_IsRefused_NeverStored→ passed.) - The full admin door's pack list is fixed; a new admin pack joins a focused door (pinned by
AdminMcpProfileTests). (Verified 2026-10-30:TheDefaultDoor_ListsExactlyItsFrozenTools(82 tools) andTheProfileOnlyPacks_AppearOnlyOnTheirOwnProfiles_NeverOnTheDefaultDoor→ passed.)
Edges:
- A user-door call for another user's private entity returns not found, never a partial read. (Verified
2026-10-30:
EntityLibraryReadServiceTests.UniformNotFound_ForeignDeletedNonexistent_ByteIdentical,ConversationObservationReadServiceTests.ForeignConversation_RefusesExactlyLikeNonexistent,MediaToolPackTests.AForeignImage_ReadsExactlyLikeAMissingOneandD3_ForeignEntity_IsUnreachable_AtAutoApply_TheOwnershipGateIsNotLifted→ passed.) - A Trusted write that a platform rule refuses stays staged with the reason. (Verified 2026-10-30:
ComposerAutoApplyTests.D3_CreatorLimit_StillRefuses_InsideTheApplyTransaction,D3_PublishEditLock_StillRefuses_AtAutoApplyandAKindWithNoApplierArm_StaysPending_WithSteeringNamingTheReviewUrl→ passed.) - An approval link opened after it expired does nothing. (Verified 2026-10-30: opening a link only reads it
(
NoDecisionIsReachableByGet_AtAll→ passed), and an expired one can't be decided or run (Decide_AnExpiredRow_IsRefused_AndSettledExpired,Claim_AnApprovedRowPastItsExpiry_NeverExecutes_AndTheRowReadsExpired→ passed).)