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
/mcpon 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.
initializereturns anMcp-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
- pick where the agent runs. in your journal, open agents and choose connect an agent. the route decides the address:
the agent runs address default on the journal's computer http://127.0.0.1:7659/mcpon on your wifi or VPN https://<private address>:7660/mcpoff. uses a certificate from your journal's own authority, which the agents page offers for download. anywhere, through solstone.me https://<8 characters>.solstone.me/mcpoff. $5/yr. the relay passes encrypted bytes through, and the journal holds the certificate. anywhere, at your own domain https://<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. - 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.
- add the address to your agent:
agent add it then sign in Claude Code claude mcp add --transport http journal <address>type /mcp, choose journalCodex codex mcp add journal --url <address>codex mcp login journalGemini CLI gemini mcp add --transport http journal <address>/mcp auth journalClaude on the web add a custom connector in Claude's settings, with your solstone.me or own-domain address connect it from there any other MCP client add an HTTP server at the address it should find the OAuth sign-in on its own - 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.
| policy | your choices |
|---|---|
| how much of your journal | your 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 material | any 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 notes | on 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 from | a 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 lasts | a 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 mind | change 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
facetandcategoryarguments 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.
| tool | what it does | needs | inputs |
|---|---|---|---|
search | search 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 text | query, day / day_from / day_to, category, facet, cursor |
fetch | read 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 permission | reference (required) |
list_transcripts | list transcript segments with their times and sources, newest days first | transcripts | day, time_from / time_to (HH:MM), facet, cursor |
get_transcript | read what was said in one segment, word for word | transcripts | reference (required), cursor |
list_activities | list 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. | facets | day / from / to, facet, entity, cursor |
get_activity_sources | read the source passages an activity spans, word for word, with source links | facets and transcripts | reference (required), cursor |
list_entities | list the people, projects and other entities this connection may see | entities | facet, cursor |
get_entity | read what the journal has noted about one entity: its type, description, the last day it came up, and notes | entities | reference (required) |
list_facets | list the facets this connection may see | nothing | cursor |
get_week | read 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 facets | week (the Sunday it starts, YYYYMMDD; the current week when omitted) |
save_memory | save 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. | nothing | content, operation_id (both required) |
recall_memory | read back this connection's own notes. leave out the query to browse. | nothing | query, 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 ownhttps://URL asclient_id)- authorization
/authorizewith PKCE S256 and theresourcefrom the protected-resource metadata. public clients only, no client secrets.- tokens
POST /token,authorization_codeandrefresh_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 (
localhostor127.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 code | 8 characters · one use · 10 minutes · one route · one open at a time |
| wrong codes | 5 per sign-in attempt. 20 from one source lock the code until you make a new one. |
| sessions | 16 per agent · end after 30 minutes idle |
| open connections | 256 at once (64 on the wifi or VPN and own-domain routes) |
| request body | 200 KB |
| one saved note | 32,768 bytes |
| one recall page | 20 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:
| what | where |
|---|---|
| the MCP server | core/crates/solstone-core-mcp-endpoint |
| the tools, their schemas, and how a grant filters them | src/registry.rs · tool code in src/tools/ |
| grants: whole journal, facets, kinds | src/permissions.rs |
| sign-in: pairing, OAuth, redirects | src/oauth/ · the written reference, docs/MCP_OAUTH.md |
routes, keys and the solstone journal mcp commands | docs/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.