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//! - [`embed`] (feature `embed`): local embeddings with a small static model,
13//!   downloaded once and shared by every Sylphx tool.
14
15#[cfg(feature = "embed")]
16pub mod embed;
17#[cfg(feature = "licence")]
18pub mod licence;
19pub mod cache;
20pub mod star_hint;
21#[cfg(feature = "search")]
22pub mod search;
23pub mod roots;
24#[cfg(feature = "server")]
25pub mod server;
26#[cfg(feature = "setup")]
27pub mod setup;
28
29#[cfg(feature = "server")]
30pub use rmcp;