integrate with solstone

your journal runs an MCP server. this page covers how to connect an agent to it or build something on it: what it offers, what you as the owner control, and where the code lives.

at a glance

what it is
a Model Context Protocol server inside your journal. any MCP client can use it.
address
/mcp on whichever route you turn on. on the journal's own computer: http://127.0.0.1:7659/mcp
protocol
MCP 2025-03-26 over Streamable HTTP. POST JSON-RPC and get JSON back. initialize returns an Mcp-Session-Id, and DELETE ends the session.
sign-in
OAuth 2.1 hosted by the journal (PKCE S256), or a key you create for a script
offers
journal reads and the agent's own notes. no resources, no prompts, no event stream, no stdio.
writes
only the agent's own notes. an agent can't add to, change or delete anything else in your journal.

connect an agent

  1. pick where the agent runs. in your journal, open agents and choose connect an agent. the route decides the address:
    the agent runsaddressdefault
    on the journal's computerhttp://127.0.0.1:7659/mcpon
    on your wifi or VPNhttps://<private address>:7660/mcpoff. uses a certificate from your journal's own authority, which the agents page offers for download.
    anywhere, through solstone.mehttps://<8 characters>.solstone.me/mcpoff. $5/yr. the relay passes encrypted bytes through, and the journal holds the certificate.
    anywhere, at your own domainhttps://<your domain>/mcpoff. needs a linux server you run with a public IPv4 address, an SSH admin login and port 443 open, plus an A and a CAA record. the journal holds the connection to your server and its own certificate.
  2. make a pairing code for that route. it's 8 characters, works once, and expires after 10 minutes. until a code is open, the journal won't answer a sign-in from anyone.
  3. add the address to your agent:
    agentadd itthen sign in
    Claude Codeclaude mcp add --transport http journal <address>type /mcp, choose journal
    Codexcodex mcp add journal --url <address>codex mcp login journal
    Gemini CLIgemini mcp add --transport http journal <address>/mcp auth journal
    Claude on the webadd a custom connector in Claude's settings, with your solstone.me or own-domain addressconnect it from there
    any other MCP clientadd an HTTP server at the addressit should find the OAuth sign-in on its own
  4. approve it. your browser opens a page served by your journal. choose what the agent may see (next section), enter the code, and connect.

what you control

every connection gets its own grant. you choose it when you approve the agent, and you can change it later in agents or with the solstone journal mcp commands.

policyyour choices
how much of your journalyour whole journal: everything now and anything added later, including facets you create later.
only the facets you choose: just those facets, as they grow. facets you create later aren't included.
what kinds of materialany of four:
transcripts: what was said in your recordings and imports, as text. never the audio or the screen images themselves. screen text has its own permission.
entities: the people, places and projects your journal knows, and what it has noted about them.
facets: facet names and descriptions, and the activities, events and summaries filed in them.
screen text: text recognized from your screens, with the time it appeared. this says what was visible, not what you read, typed or did. masking passwords and other secrets is best effort; your redaction rules do not apply.
its own noteson unless you pause it. every connection can save notes, and recall only the ones it saved. other agents can find them through search if their grant covers them. you can read and delete them in your journal.
where it connects froma signed-in agent only works at the route it was paired on. turn a route off in agents and nothing reaches your journal that way.
how long it lastsa signed-in agent stays connected while it's in use. after 30 days unused it pauses until you resume it. you can also pause any agent yourself. if you set an agent up again, connect it again from its page in your journal and it keeps its notes. a script key lasts until you revoke it.
changing your mindchange what it may see, pause it, rename a key, or disconnect it. its activity (which tools it called and with what, when, how it ended and which entries it got back, as links, never a copy) stays in your journal.

the approval form preselects all four kinds. existing connections keep their approved kinds until you change them.

how a grant shapes what the agent sees

  • a tool that needs a kind you didn't grant is left out of the agent's tool list
  • the facet and category arguments only list what you granted, so the agent is never told about a facet it can't read
  • every call is checked again when it arrives, so narrowing a grant takes effect at once

for example, with transcripts only, limited to two facets, the agent is offered search like this. the facet values are the journal's ids for those facets, not their names:

{
  "name": "search",
  "title": "search the journal",
  "annotations": { "title": "search the journal", "readOnlyHint": true, "openWorldHint": false },
  "inputSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "query":    { "type": "string" },
      "category": { "type": "string", "enum": ["transcripts"] },
      "facet":    { "type": "string", "enum": ["3f1c2a9e-7b4d-4e8a-9c21-5d6e0f4b7a13", "b82e4d10-1c5f-4a7e-8d3b-2f9a6c0e5d84"] },
      …
    }
  }
}

tools

your agent discovers the available tools through tools/list; they depend on your journal version and the grant. "needs" is the kind you must grant before a tool is offered. days are YYYYMMDD or YYYY-MM-DD. search and the list_ tools take a limit of 1–100; recall uses 1–20.

toolwhat it doesneedsinputs
searchsearch what this connection may see: screen text, summaries of conversations and work sessions, activities, imported documents, calendar events, and notes on people and projects. leave out the query to list what a day holds.transcripts or screen textquery, day / day_from / day_to, category, facet, cursor
fetchread the document or activity record behind a reference. long screen-text records return a reference for the next part.transcripts, facets or screen text; each reference still needs its own permissionreference (required)
list_transcriptslist transcript segments with their times and sources, newest days firsttranscriptsday, time_from / time_to (HH:MM), facet, cursor
get_transcriptread what was said in one segment, word for wordtranscriptsreference (required), cursor
list_activitieslist activities by day or inclusive date range, with their facet, times, duration, participants, entities and a reference. filter by a person or entity name, or an entity reference.facetsday / from / to, facet, entity, cursor
get_activity_sourcesread the source passages an activity spans, word for word, with source linksfacets and transcriptsreference (required), cursor
list_entitieslist the people, projects and other entities this connection may seeentitiesfacet, cursor
get_entityread what the journal has noted about one entity: its type, description, the last day it came up, and notesentitiesreference (required)
list_facetslist the facets this connection may seenothingcursor
get_weekread a week drawn from activities, even without a generated reflection. memories are derived from activities; quotes, when available, are the owner's words. it lists some of the week's activities; list_activities has them all.your whole journal, with transcripts and facetsweek (the Sunday it starts, YYYYMMDD; the current week when omitted)
save_memorysave a note of the agent's own, up to 32 KB. the only tool that writes. retrying with the same operation_id and content saves it once.nothingcontent, operation_id (both required)
recall_memoryread back this connection's own notes. leave out the query to browse.nothingquery, day / day_from / day_to, continuation, limit 1–20

when search or a list returns next_cursor, pass it back as cursor with the same filters to continue. references and cursors belong to that connection and stop working after a journal restart or grant change. entity descriptions carry description_truncated: true when shortened.

journal text in what the tools return uses Markdown escapes wherever it holds link, image or HTML markup. the JSON text of a result also writes link, image and HTML delimiters as \u escapes. recall_memory returns your agent's own notes as it wrote them.

transcript times use the recording device's clock. when its reported UTC offset differs from your journal's, capture_zone gives the offset and, when available, the zone name. an absent field means the offsets match or the recording had no usable zone information. source links carry the same information.

each transcript segment also carries source: where it came from, in the words your journal uses, such as "your mac · audio". two segments at the same time with different sources are separate recordings. when two sources would otherwise read alike, the journal adds a device name or a number. source links carry it too.

hiding an activity from the journal's pages leaves it searchable. search results mark activities with Stories and weekly reflections as derived: true. read their source passages before treating a summary as someone's words. leaving a memory or quote off the week page leaves its source available to the other tools.

when a source passage says untimed, the times inside it are not real. list_activities reads activity records directly, without waiting for search indexing. its times include the journal's zone. fetch reads a whole activity from a file that holds several. if an activity file changes, list it again for a fresh reference. search references to changed activity files stay unavailable until indexing catches up. when the connection reads your whole journal with transcripts, list_activities also adds a scheduled field to an activity when your calendar had something planned while it ran. if the connection can also read entities, it names the people on the invite who are already in your journal. it says what was planned, not who was there. it comes from search indexing, so it can arrive after the activity does.

search finds calendar events, and anything else in your journal that belongs to no facet, only for a connection that reads your whole journal. when a connection sees only some facets, its search results say so in coverage.outside_facets.

the agent's tool descriptions and input schemas come from the tool registry. your agent sees the available ones when it calls tools/list.

build an integration

a script on the journal's computer: use a key

create a key, then grant it what it needs. a new key can only use its own notes until you grant it more.

solstone journal mcp token create --label my-script
solstone journal mcp permission set --token my-script --category transcripts --category entities
# or: transcripts from one facet only
solstone journal mcp permission set --token my-script --category transcripts --facet work

keys work at the journal's own computer and through solstone.me. the wifi or VPN and own-domain routes take signed-in agents only. token list and token revoke --label manage them, and permission show / clear manage grants.

then talk to it like any MCP server:

# start a session, and keep the Mcp-Session-Id header it returns
curl -si http://127.0.0.1:7659/mcp \
  -H "Authorization: Bearer $JOURNAL_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"my-script","version":"1"}}}'

# see what this key may use
curl -s http://127.0.0.1:7659/mcp -H "Authorization: Bearer $JOURNAL_KEY" \
  -H "Content-Type: application/json" -H "Mcp-Session-Id: $SESSION" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

# call a tool
curl -s http://127.0.0.1:7659/mcp -H "Authorization: Bearer $JOURNAL_KEY" \
  -H "Content-Type: application/json" -H "Mcp-Session-Id: $SESSION" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"search","arguments":{"query":"lease renewal"}}}'

# end the session
curl -s -X DELETE http://127.0.0.1:7659/mcp -H "Authorization: Bearer $JOURNAL_KEY" -H "Mcp-Session-Id: $SESSION"

an app or agent other people install: use OAuth

your client signs in the way the agents above do. each route hosts its own sign-in:

discovery
/.well-known/oauth-protected-resource, then /.well-known/oauth-authorization-server
registration
POST /register: dynamic client registration, or a client ID metadata document (your own https:// URL as client_id)
authorization
/authorize with PKCE S256 and the resource from the protected-resource metadata. public clients only, no client secrets.
tokens
POST /token, authorization_code and refresh_token. access tokens last 1 hour. refresh tokens rotate on every use, and reusing an old one revokes the grant.
scopes
none. the owner picks the grant on the consent page, and your client discovers the result through tools/list.
redirects
loopback (localhost or 127.0.0.1, any port), or the exact callback of a hosted agent the journal recognises. the list

design for it: /register and /authorize answer 403 until the owner has a pairing code open, so tell the owner to make one first. each refresh keeps the grant live for 30 days from then, and after 30 days without one the connection pauses. a paused connection can still refresh, but every tool call returns an error that says it's paused, so tell the owner to resume it in their journal's agents app. a refresh answered invalid_grant means this credential no longer works, so ask the owner to connect your client again in their journal's agents app.

limits

limit
pairing code8 characters · one use · 10 minutes · one route · one open at a time
wrong codes5 per sign-in attempt. 20 from one source lock the code until you make a new one.
sessions16 per agent · end after 30 minutes idle
open connections256 at once (64 on the wifi or VPN and own-domain routes)
request body200 KB
one saved note32,768 bytes
one recall page20 notes · 65,536 bytes

read the source

the server is open source. if you're building against it, or you want your agent to understand it, start here:

whatwhere
the MCP servercore/crates/solstone-core-mcp-endpoint
the tools, their schemas, and how a grant filters themsrc/registry.rs · tool code in src/tools/
grants: whole journal, facets, kindssrc/permissions.rs
sign-in: pairing, OAuth, redirectssrc/oauth/ · the written reference, docs/MCP_OAUTH.md
routes, keys and the solstone journal mcp commandsdocs/SOLCLI.md

to have your agent read it, give it this: read https://github.com/solpbc/solstone-journal/tree/main/core/crates/solstone-core-mcp-endpoint and docs/MCP_OAUTH.md, then help me connect to my journal.

early days. found something that doesn't match what your journal does? tell us.