mcp
v0.2.0MCP server for Podlite: parse, validate, render, and query tools for AI agents
MCP server for Podlite: gives AI agents and editors four tools to parse, validate, render, and structurally query Podlite documents. Add to your MCP client config (Claude Code, Cursor, and other MCP-compatible tools):
Summary extracted from the README.
@podlite/mcp
MCP server for Podlite: gives AI agents and editors four tools to parse, validate, render, and structurally query Podlite documents.
Connect
Add to your MCP client config (Claude Code, Cursor, and other MCP-compatible tools):
{
"mcpServers": {
"podlite": {
"command": "npx",
"args": ["-y", "@podlite/mcp"]
}
}
}
Claude Code one-liner:
claude mcp add podlite -- npx -y @podlite/mcp
Tools
| Tool | Input | Output |
|---|---|---|
podlite_parse |
text |
AST as JSON: typed blocks with line/column locations |
podlite_validate |
text, files? |
{ok, counts, problems[]} — parse errors, lint rules, schema check |
podlite_render |
text, format: html|md, files? |
rendered document |
podlite_query |
selector, text, format: podlite|json|html|md, files? |
blocks matching a structural selector |
Selector examples for podlite_query:
head1 all level-1 headings
code[:lang<python>] code blocks with a :lang attribute
*[:tags~<draft>] any block tagged draft
Scope notes
- A clean
podlite_validateresult means the source parses and passes the current lint rules. podlite_validateapplies the document's:lint-ignoresettings to lint findings and warns about empty or unused settings.=includeis resolved only against thefilesa call gives topodlite_render,podlite_queryorpodlite_validate: a map from path to text, with paths relative to the document, which stands at the root of the map asinput.podlite. The server reads no disk. Withoutfilesan include of another path is left as written and the answer names the paths it asks for (an include ofinput.podliteis the document itself, a cycle that brings nothing); withfiles: {}a missing file is an error. When blocks of the files are in the document, the answer ofpodlite_renderandpodlite_querynames those files;podlite_validateanswers with its report alone.- Included text goes through the same conversion as any text. The server checks the arguments of a call; the caller answers for what the files contain.
- A selector of
podlite_querythat names a source of its own (file:part.podlite | head1, a mask such asfile:notes/*.podlite, orinput.podlitefor the document itself) reads it fromfiles, each file with its own includes; the answer says whentextwas not used as the document of the selection. An operand such asin file:terms.podliteis read fromfilestoo. A mask's*does not go down into a directory;**does. In json each block carries the file it comes from. - Read-only: no tools mutate files.
Links
License
MIT