From 4e7084d411a27e6d202bedea6a6e4916f7a5e07f Mon Sep 17 00:00:00 2001 From: Mo Rajabi Date: Mon, 30 Nov 2026 22:24:31 +0000 Subject: [PATCH] docs: correct mcp profile output, migration, telemetry and sdk upload notes account.profile returns { id, name?, email?, nickname? }; startup no longer migrates, the release migrate step applies 0149; CLI Sentry events carry scrubbed failure text; the SDK example uses native upload_file_v2 instead of the deprecated HTTP upload_file. --- cli/README.md | 5 +++-- crates/sdk/README.md | 16 ++++++++++------ packages/mcp/README.md | 4 +++- server/docs/content-encryption.md | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/cli/README.md b/cli/README.md index 8ef4c99b5d..40b12c5fb5 100644 --- a/cli/README.md +++ b/cli/README.md @@ -4,9 +4,10 @@ Install the Inline CLI and have Claude/Codex interact with it. For setup failures, repeat the command with `--verbose` (twice for trace detail). See [diagnostics and optional error reporting](docs/diagnostics.md). -Official binaries report metadata-only command, bridge-runtime, updater outcomes, and panic failures to Sentry. Set +Official binaries report command, bridge-runtime, updater, and panic failures to Sentry +with allowlisted metadata and the same bounded, scrubbed failure text the CLI shows. Set `INLINE_CLI_TELEMETRY=off` to disable reporting. Command arguments, message contents, -credentials, local paths, and raw errors are not sent. +credentials, local paths, unscrubbed error text, and stack traces are not sent. ## Install diff --git a/crates/sdk/README.md b/crates/sdk/README.md index aa6e826513..5356b4d5e6 100644 --- a/crates/sdk/README.md +++ b/crates/sdk/README.md @@ -4,13 +4,13 @@ Rust SDK for Inline API calls, uploads, client metadata, and realtime RPC. This is the low-level SDK. It does not own a durable cache or sync engine; that lives in the higher-level `inline-client` crate. Use this crate when you -want typed protocol access, HTTP auth/upload helpers, or a realtime RPC +want typed protocol access, HTTP auth helpers, native uploads, or a realtime RPC transport. ```rust use inline_sdk::{ - ApiClient, ClientIdentity, PeerId, ReadMessagesInput, RealtimeClient, - UploadFileInput, proto, + ApiClient, ClientIdentity, NativeUploadInput, PeerId, ReadMessagesInput, RealtimeClient, + proto, upload_file_v2, }; use std::time::Duration; @@ -35,9 +35,13 @@ async fn run() -> Result<(), Box> { let read = ReadMessagesInput::new(PeerId::thread(123)).with_max_id(456); api.read_messages(&token, read).await?; - let upload = - UploadFileInput::document("./report.pdf", "report.pdf").with_mime_type("application/pdf"); - api.upload_file(&token, upload).await?; + let upload = NativeUploadInput::new( + "./report.pdf", + "report.pdf", + "application/pdf", + proto::UploadKind::Document, + ); + let _uploaded = upload_file_v2(&mut realtime, upload, |_progress| {}).await?; let _me = result.user; Ok(()) diff --git a/packages/mcp/README.md b/packages/mcp/README.md index f969dd1220..30807dc3a6 100644 --- a/packages/mcp/README.md +++ b/packages/mcp/README.md @@ -69,9 +69,11 @@ Connect new clients to `https://mcp.inline.chat/mcp/v2`. Every conversation-scop Legacy reads using `userId` resolve an existing approved DM from conversation metadata and fail when none exists. They do not create a DM. Explicit legacy sends using `userId` retain the backend's ability to create a destination DM. - `account.me` (read-only): inspect current MCP authorization, scopes, and allowed chat context. -- `account.profile` (authenticated, read-only): identify the connected Inline account for ChatGPT's Connected accounts view. It accepts no arguments and returns the immutable Inline user ID plus available `name`, `email`, and `nickname` from authenticated `GET_ME`. The tool is designated with `_meta["openai/profile"] = true`; its top-level structured result and JSON text fallback match [OpenAI's profile contract](https://developers.openai.com/plugins/build/auth). It requires no message or space scope and never selects an identity from caller input or a people-search result. `account.me` remains unchanged. - Input: `{}` - Output: `{ user, session, allowed, hints[] }` +- `account.profile` (authenticated, read-only): identify the connected Inline account for ChatGPT's Connected accounts view. It accepts no arguments and returns the immutable Inline user ID plus available `name`, `email`, and `nickname` from authenticated `GET_ME`. The tool is designated with `_meta["openai/profile"] = true`; its top-level structured result and JSON text fallback match [OpenAI's profile contract](https://developers.openai.com/plugins/build/auth). It requires no message or space scope and never selects an identity from caller input or a people-search result. `account.me` remains unchanged. + - Input: `{}` + - Output: `{ id, name?, email?, nickname? }` - `spaces.list` (read-only): list spaces visible to the current MCP grant. - Input: `{ query?, limit? }` - Output: `{ query, items[] }` diff --git a/server/docs/content-encryption.md b/server/docs/content-encryption.md index 20e0f3e0bb..e90d073e05 100644 --- a/server/docs/content-encryption.md +++ b/server/docs/content-encryption.md @@ -62,7 +62,7 @@ bun -e 'import { randomBytes } from "node:crypto"; process.stdout.write(JSON.str Paste it into `INLINE_PROTOCOL_REPLAY_KEY_RING_JSON` as a single JSON value and save a copy in your secret manager. **Never replace an existing ring with this new one**: retained replay results require their original keys. Do not change the other protocol keys for this rollout. -Deploy this release to every API process and worker. The normal container startup applies migration `0149`; it adds columns/indexes and widens title/emoji storage without rewriting content. Check that migration and startup succeed on every instance. Schedule the deployment in a quiet window because the DDL takes PostgreSQL locks. Open existing chats and attachments before continuing. +Deploy this release to every API process and worker. Container startup does not migrate schema: the release's migrate step (`bun server/dist/migrate.js`, then `bun server/dist/verify-migrations.js`, with the direct database connection; the Deploy Server workflow runs both once before replacing any API) applies migration `0149`. It adds columns/indexes and widens title/emoji storage without rewriting content. An API whose database lacks a required migration refuses to start, so check that the migration succeeds and every instance starts and reports ready. See [Fly deployment and schema migrations](fly-deployment.md). Schedule the deployment in a quiet window because the DDL takes PostgreSQL locks. Open existing chats and attachments before continuing. ### 3. Verify existing data without changing it