systemprompt-mcp 0.14.3

Native Model Context Protocol (MCP) implementation for systemprompt.io. Orchestration, per-server OAuth2, RBAC middleware, and tool-call governance — the core of the AI governance pipeline.
Documentation
//! CLI command entry points for MCP service management.
//!
//! Thin async wrappers that delegate to [`McpOrchestrator`] for starting,
//! stopping, and reporting on managed MCP servers from the `systemprompt`
//! CLI surface.

use crate::error::McpDomainResult;
use crate::services::McpOrchestrator;

pub async fn start_services(
    manager: &McpOrchestrator,
    service_name: Option<String>,
) -> McpDomainResult<()> {
    manager.start_services(service_name).await
}

pub async fn stop_services(
    manager: &McpOrchestrator,
    service_name: Option<String>,
) -> McpDomainResult<()> {
    manager.stop_services(service_name).await
}

pub async fn show_status(manager: &McpOrchestrator) -> McpDomainResult<()> {
    manager.show_status().await
}

pub async fn list_services(manager: &McpOrchestrator) -> McpDomainResult<()> {
    manager.list_services().await
}