1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! `rmcp-server-kit` - reusable MCP server framework.
//!
//! Provides Streamable-HTTP transport with TLS/mTLS, health endpoints,
//! structured observability (tracing + JSON logs + audit file),
//! authentication (Bearer/mTLS/OAuth 2.1 JWT), RBAC, and rate limiting.
//! Application crates depend on `rmcp-server-kit` and supply their own `ServerHandler`
//! implementation.
/// Reusable server and observability configuration primitives.
/// Generic error type and `Result` alias for server-side code.
/// Tracing / JSON logs / audit file initialization.
/// Streamable HTTP transport and server entry points.
/// Authentication state (API keys, mTLS, OAuth JWT) and middleware.
/// Role-based access control policy engine and middleware.
/// Memory-bounded keyed rate limiter (LRU + idle eviction).
/// Admin diagnostic endpoints (status, auth keys metadata, counters, RBAC).
/// Re-exports for the [`secrecy`] crate's secret-wrapper types.
pub
/// Opt-in tool-call hooks (before/after) and result-size cap.
/// OAuth 2.1 JWKS cache, token validation, and token exchange helpers.
/// Prometheus metrics registry shared across server components.
/// CDP-driven CRL revocation support for mTLS.
// Re-export the canonical error types at the crate root for ergonomic
// `rmcp_server_kit::Result<()>` / `rmcp_server_kit::McpxError` usage in downstream crates.
pub use crate;