Expand description
§sery-mcp — local-files MCP server.
sery-mcp is primarily a binary — most users run
cargo install sery-mcp and configure their MCP client to spawn
it. The library surface exists for the rare downstream that wants
to embed the same tool implementations into their own MCP server
(e.g. Sery Link’s desktop app spawning the logic in-process
instead of as a subprocess).
§v0.3.0 surface
SeryMcpServer— the configured MCP server. Construct viaSeryMcpServer::newwith a single--rootpath; serve withrmcp::ServiceExt::serveand your transport of choice.- Six tools, all read-only:
list_folder— enumerate files (scankit)search_files— filename + extension search with scoring (scankit)get_schema— column names + types + row count (tabkit)sample_rows— N rows of sampled data, header-keyed (tabkit)read_document— DOCX/PDF/PPTX/HTML/IPYNB → markdown (mdkit)query_sql— read-only SQL queries against a CSV / Parquet file (DataFusion). The file is registered as tabledatafor the duration of the call.
§Privacy + threat model
sery-mcp opens no sockets and makes no outbound network calls.
All file reads are bounded by --root: any tool argument that
tries to escape via .. or absolute paths is rejected before the
filesystem call. Tools are read-only by design — no write_file,
no delete, no execute.
Structs§
- Column
Info - One column in a
get_schemaresponse. - Document
Response read_documentresponse.- File
Entry - One entry in a
list_folderresponse. - GetSchema
Request - Input for the
get_schematool. - List
Folder Request - Input for the
list_foldertool. - Query
Response query_sqlresponse.- Query
SqlRequest - Input for the
query_sqltool. - Read
Document Request - Input for the
read_documenttool. - Sample
Rows Request - Input for the
sample_rowstool. - Samples
Response sample_rowsresponse.- Schema
Response get_schemaresponse.- Search
Files Request - Input for the
search_filestool. - Search
Hit - One result in a
search_filesresponse. - Sery
McpServer - A configured MCP server. Cheap to construct + clone; share a single instance across the rmcp serve loop.
Constants§
- VERSION
- The crate version as reported by Cargo at build time.