aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / crates / aien-mcp / src / lib.rs
| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
| 16 | //! MCP session owner for AIEN. |
| 17 | //! |
| 18 | //! `aien-mcp` keeps the live session. J-Space receives a [`CapabilitySnapshot`] |
| 19 | //! and may invoke only speculation-safe tools. An irreversible `tools/call` |
| 20 | //! runs only when the Effect Broker presents an [`AuthorizedEffect`]. |
| 21 | |
| 22 | mod approval; |
| 23 | mod authority; |
| 24 | mod broker; |
| 25 | mod effect; |
| 26 | mod error; |
| 27 | pub mod memory; |
| 28 | mod session; |
| 29 | mod snapshot; |
| 30 | mod transport; |
| 31 | mod wire; |
| 32 | |
| 33 | #[cfg(test)] |
| 34 | mod lane_tests; |
| 35 | |
| 36 | #[cfg(test)] |
| 37 | mod transport_tests; |
| 38 | |
| 39 | #[cfg(test)] |
| 40 | pub(crate) use effect::authorize_for_test; |
| 41 | |
| 42 | pub use approval::{ApprovalDesk, ApprovalError, ApprovalGrant, GrantStatus}; |
| 43 | pub use authority::{ |
| 44 | intent_digest, AuthorityContext, AuthorityDecision, AuthorityOutcome, EffectAuthority, |
| 45 | EffectClassAuthority, EffectScope, Exposure, TrustLevel, |
| 46 | }; |
| 47 | pub use broker::{ |
| 48 | receipt_digest, Clock, EffectLane, McpBroker, SpeculativeLane, SpeculativeToolCall, |
| 49 | }; |
| 50 | pub use effect::{AuthorizedEffect, EffectIntent, EffectReceipt, ToolResult}; |
| 51 | pub use error::Error; |
| 52 | pub use session::SessionManager; |
| 53 | pub use snapshot::CapabilitySnapshot; |
| 54 | pub use transport::{LocalTool, LocalToolServer}; |
| 55 | pub use wire::{CallOutcome, McpWire}; |