Skip to content

MCP server

The MCP server is how other AI tools meet your companion. The Model Context Protocol (MCP) is an open standard for connecting AI clients to external tools and data. weside speaks it, so a Claude Code session — or any MCP-compatible client — can adopt your companion’s identity, read and write its memories, and track its goals, instead of starting cold every time.

The same API surface the app, CLI, and the we plugin sit on top of, exposed as MCP tools:

  • Identity — get_companion_identity, list_companions, select_companion, create_companion, update_companion, wake_companion, get_council
  • Memory — search_memories (semantic), save_memory, list_memories, update_memory, forget_memory, store_conversations
  • Shared memory — save_shared_memory, update_shared_memory: what every companion of yours loads
  • Goals — list_goals, save_goal, update_goal, update_goal_status
  • Rooms — list_rooms, show_room (pages through a whole room, each file shown as a room attachment), room_participants, view_room_attachment
  • Notes — list_notes, read_note
  • Timeline — read_timeline (your companion’s time axis across its rooms), news_since (what is addressed to it since a cursor, and its handoffs)
  • Provider — show_provider, list_provider_presets, set_provider
  • Tools — discover_tools, execute_tool, get_tool_schema for actions your companion can perform
  • Council — council_prep_kickoff, council_prep_poll, council_writeback_kickoff

Two patterns show up most:

  • Companion-aware skills — a Claude Code session that loads your companion’s identity and goals, so the work stays aligned with what you’re actually building.
  • Memory-backed context — pulling persistent memory into a tool that would otherwise forget everything between sessions.

The server lives at https://api.weside.ai/mcp/ and authenticates through your weside.ai account. The simplest path is the we plugin: the plugin ships the connection and signs in on first connect.

Every client other than Claude Code needs only that URL: it registers itself with weside (Dynamic Client Registration) and needs no client ID. The weside client ID in the Claude Code config below belongs to Claude Code alone; another client that copies it fails at sign-in.

The simplest way is the we plugin. To wire the server by hand, put this into .mcp.json:

{
"mcpServers": {
"weside-mcp": {
"type": "http",
"url": "https://api.weside.ai/mcp/",
"oauth": {
"clientId": "9114483b-1a59-460d-afa0-2534fd3bd1aa",
"callbackPort": 8080
}
}
}
}

The client ID only works together with callbackPort: 8080: weside accepts the sign-in only back at exactly that address.

Add the server as remote with the URL only, and no oauth block:

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"weside": {
"type": "remote",
"url": "https://api.weside.ai/mcp/"
}
}
}

OpenCode then registers itself and opens the weside sign-in. If your entry carries "disabled": true (or "enabled": false), remove it, otherwise OpenCode never connects.

Claude (web or Desktop), Cursor, Codex and other MCP clients: add https://api.weside.ai/mcp/ as a custom connector with OAuth sign-in, no client ID.

Whichever client you use, you sign in to weside, and a consent card shows:

  • what the app calls itself — any app can choose any name, so the name proves nothing;
  • where its access goes — the host that receives your sign-in, or “a program on this device” for local tools;
  • what it reaches: weside basics (your companions, memories, goals and rooms over MCP — the default) or, for apps whose sign-in goes to Claude, optionally Full companion (everything your companion can do, including connected services and its workspace).

Allow it, and the connection stays until you revoke it under Home → Account → Connected apps. To change basics ↔ full, revoke the app there and connect it again.

An app you allowed with weside basics reaches exactly these tools:

  • Identity — get_companion_identity, list_companions, select_companion
  • Memory — search_memories, save_memory, list_memories, update_memory, forget_memory
  • Goals — list_goals, save_goal, update_goal, update_goal_status
  • Rooms — list_rooms, show_room, room_participants
  • Tools — discover_tools, get_tool_schema, execute_tool

Every other tool — shared memory, notes, the timeline, attachments, the provider, the council, waking or changing a companion, storing conversations — answers oauth-client-not-permitted. Those are for the we plugin’s own connection and for an app you allowed with Full companion.

Your companion can hand work over from a weside room to a Claude Code session that runs as it (started with the we plugin). It decides that itself, with a note for the session — only in a turn you started, and never out of a room in a restricted circle.

On the session’s side, the plugin’s poller asks weside once a minute whether something was handed over and wakes the session, naming only the room it came from. The session reads the note itself with news_since. The note is a proposal, never an order: the session shows you who sent it, from which room and what it asks, and does nothing it asks until you confirm in the terminal.

  • You pressed Cancel on the consent card, or closed it. The app gets no access to your account. Start the connection again from your MCP client; the card shows again.
  • “This authorization request is no longer valid. Restart the connection from your MCP client.” — the request took too long or was already decided. Start again from the client. The other messages on that page (“could not be loaded”, “could not be saved”, “incomplete”) mean the same: start again from the client.
  • “This app is not permitted: its sign-in can go to more than one place.” — weside connects only apps whose sign-in always goes to one place. That app cannot connect.
  • The app stopped working after you revoked it. Revoking under Home → Account → Connected apps ends its access; a sign-in it already holds stops working when that expires. To use it again, connect it from the client and allow it once more.
  • A tool is missing, or a call answers oauth-client-not-permitted. With weside basics an app reaches your companions, memories, goals and rooms — not your connected services, files or the workspace, and it cannot pin a memory or change a pinned one, or schedule a dated goal. Do those in the weside app, or, for an app whose sign-in goes to Claude, revoke it and connect it again with Full companion. The full list is under What an app with weside basics reaches.
  • “The full companion could not be saved, so the app gets weside basics.” — revoke the app in Connected apps and connect it again.
  • The app is not under Connected apps. The list shows apps you allowed through the consent card. If an app you connected is missing, its connection did not finish: connect it again from the client. In the mobile app, an older version says “Connected apps are not available in this app version”; update the app.
  • User-scoped, not cross-account. A connection acts as the account it authenticated as, on that account’s companions; it cannot act for another user’s companion.
  • MCP only. An app’s token reaches the MCP server and nothing else of your account: not your settings, sign-in methods or payments.
  • One destination per app. An app whose sign-in could go to more than one place is not permitted to connect.
  • Full companion is a real grant. With it, an app reaches your connected mail and services — it could request a weside sign-in code there — and can run code in your companion’s workspace. Choose it only for an app you trust completely.
  • Rooms replaced threads. There is no delete_thread-style tool for rooms — deliberately: destroying a companion’s cognition isn’t an action this surface hands to a client.