feat(app): the Connect page's Claude desktop app row writes a one-click extension (P15 C1)

Claude's desktop extension format is the MCP Bundle: a .mcpb zip with a
manifest.json (manifest 0.3, github.com/anthropics/mcpb). The row's
button makes the company's agent key if there is none and writes
Documents/Wanderbooks/Extensions/wanderbooks-<id>.mcpb: a manifest whose
server is a binary running this program's own stable path as
mcp --book <id>, the 512 px icon and a short README as the entry point.
The package carries no program (the one executable is the installed
one), no key and no path of the data root. The page then says in plain
words where in Claude to pick the file and to keep Wanderbooks open, and
offers to show the file. The manifest is checked against Anthropic's
published schema (a test fixture) and its required fields. The blessed
Connect page pictures change by exactly the new row. The program's
version is now one value set by main for every platform, not only Unix.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 15:31:21 -07:00
1 parent 479d3a5c5e
commit 2bc442f795
15 files changed
+1039 -21

No files matched your search

+19
View File
@@ -412,6 +412,16 @@ pub trait Owner: Send + Sync {
fn command_line(&self, _words: &[&str]) -> Result<String, String> {
Err("not here".into())
}
/// The Claude desktop extension for the company `book` (shown as
/// `company`): the one-click package written where a person can open it,
/// the key made first if there was none. Blocks.
fn claude_desktop_extension(
&self,
_book: &str,
_company: &str,
) -> Result<ExtensionMade, String> {
Err("not here".into())
}
/// The key an assistant needs to reach the company `book` exists (made
/// now if it did not), able to read, draft and post but not to see the
/// access record: `Ok(true)` when it was made now. It never replaces a
@@ -476,6 +486,15 @@ pub trait Owner: Send + Sync {
}
}
/// The Claude desktop extension the Connect page made (WB-pkg-5).
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ExtensionMade {
/// The package file, in full.
pub file: String,
/// The folder it is in.
pub folder: String,
}
/// The owner the program gave the viewer, for every company's view that
/// isn't given one of its own. It is the program's (one per process, as
/// the program is one), not a company's: each view takes a handle to it