stasis-rs 0.9.3

Durable AI orchestration framework with runtime jobs, lineage, and memory integration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use async_trait::async_trait;
use serde_json::Value;

use crate::domain::agent::mcp::{McpInvocationContext, McpToolDescriptor};
use crate::domain::errors::Result;

/// Injects remote MCP tools into Stasis as a tool source (ADR-0007).
#[async_trait]
pub trait McpToolProvider: Send + Sync {
    async fn list_tools(&self) -> Result<Vec<McpToolDescriptor>>;
    async fn invoke(
        &self,
        tool_name: &str,
        input: Value,
        context: McpInvocationContext,
    ) -> Result<Value>;
}