Skip to main content

mcp_kit/
lib.rs

1//! Shared parts of the Sylphx MCP servers (repomap, lockdocs, anymd).
2//!
3//! - [`server`]: run an MCP server over stdio. You describe tools as JSON and
4//!   answer calls; the kit handles the protocol through [rmcp], the official
5//!   Rust MCP SDK.
6//! - [`roots`]: choose which directory a call works on, from an explicit
7//!   argument, environment variables, a launch default, or the client's roots.
8//! - [`setup`]: register the server with Claude Code, Codex, Cursor, VS Code,
9//!   Claude Desktop, Windsurf and Gemini CLI, and optionally add a Claude Code hook.
10//! - [`licence`] (feature `licence`): sell a Pro tier with an offline-verified
11//!   Ed25519 token, a polite upgrade notice and a `licence` CLI.
12//! - [`remote`] (feature `remote`): serve the same app over Streamable HTTP as
13//!   an OAuth resource server (RFC 9728 metadata, audience-bound JWT bearer
14//!   check, RFC 6750 challenges).
15//! - [`embed`] (feature `embed`): local embeddings with a small static model,
16//!   downloaded once and shared by every Sylphx tool.
17
18#[cfg(feature = "embed")]
19pub mod embed;
20#[cfg(feature = "licence")]
21pub mod licence;
22pub mod cache;
23pub mod star_hint;
24#[cfg(feature = "remote")]
25pub mod remote;
26#[cfg(feature = "search")]
27pub mod search;
28pub mod roots;
29#[cfg(feature = "server")]
30pub mod server;
31#[cfg(feature = "setup")]
32pub mod setup;
33
34#[cfg(feature = "server")]
35pub use rmcp;