- crates/mcp (L5): JSON-RPC 2.0 over stdio, dual era: MCP 2026-07-28 (per-request _meta, server/discover, -32022) and legacy initialize (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05). Tools list_commands, execute_command (app.quit only with confirm: true), screenshot (image content), read_buffer, get_events (ring of 1000 events via events.subscribe); resources lutra://buffer/<path> for open buffers. Engine errors become tool errors with the engine code. Lines capped at 16 MiB, guard around every request, parser and tool args fuzzed. - lutra mcp [--port PORT] [--no-start] in apps/lutra-cli: connects through the rendezvous file and token, or starts Lutra. - Engine: read-only buffer.list command. - Tests: protocol units + proptest fuzz, integration over the token listener, stdio end to end. Docs: architecture (MCP), G7, ROADMAP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
565 B
TOML
30 lines
565 B
TOML
[package]
|
|
name = "lutra-cli"
|
|
description = "The lutra command-line tool"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
publish.workspace = true
|
|
|
|
[package.metadata.lutra]
|
|
layer = 6
|
|
|
|
[[bin]]
|
|
name = "lutra"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
lutra-control.workspace = true
|
|
lutra-mcp.workspace = true
|
|
serde_json = "1.0.154"
|
|
|
|
[dev-dependencies]
|
|
lutra-engine.workspace = true
|
|
lutra-testkit.workspace = true
|
|
proptest.workspace = true
|
|
tempfile.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|