P0: config, DTOs, source traits, fakes, error, state and module stubs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-15 17:23:17 -04:00
1 parent aa9b0da962
commit 1802f97d94
22 files changed
+1736

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
//! MCP server (WS-F owns `src/mcp/`).
//!
//! STUB: signatures are final. Pinned `rmcp` 3.5.1 validates `Host` and
//! `Origin` itself via `StreamableHttpServerConfig::with_allowed_hosts` and
//! `with_allowed_origins` (DEC-8). Feed it loopback names, `server.bind`,
//! `server.allowed_hosts` and `server.allowed_origins`.
pub mod prompts;
use rmcp::handler::server::ServerHandler;
use rmcp::model::ServerConfig;
use rmcp::transport::streamable_http_server::session::local::LocalSessionManager;
use rmcp::transport::streamable_http_server::StreamableHttpService;
use crate::state::AppState;
/// Per-session MCP handler. Holds the shared state.
#[derive(Clone)]
pub struct TrackerService {
#[allow(dead_code)]
state: AppState,
}
impl TrackerService {
pub fn new(state: AppState) -> Self {
Self { state }
}
}
impl ServerHandler for TrackerService {
fn get_info(&self) -> ServerConfig {
todo!("WS-F F4")
}
}
/// Tower service to mount at `/mcp` with `nest_service`.
pub fn service(_state: AppState) -> StreamableHttpService<TrackerService, LocalSessionManager> {
todo!("WS-F F8")
}
+3
View File
@@ -0,0 +1,3 @@
//! MCP prompts: diagnose_unit, container_health_report (WS-F)
//!
//! Placeholder created in P0 so the owning workstream only edits its own files.