apr-cli 0.31.2

CLI tool for APR model inspection, debugging, and operations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! `apr mcp` — start the aprender MCP server over stdio.
//!
//! Wraps `aprender_mcp::AprMcpServer::run_stdio` so that Claude Code, Cursor,
//! Cline, and other MCP clients can configure `apr` as a tool server via
//! `.mcp.json`.

use crate::error::CliError;

/// Start the MCP server on stdio (blocking until stdin closes).
pub fn run() -> Result<(), CliError> {
    let mut server = aprender_mcp::AprMcpServer::new();
    server
        .run_stdio()
        .map_err(|e| CliError::Aprender(format!("mcp server: {e}")))
}