sigildocs

(sigil mcp resources)

(sigil mcp resources) - MCP resource providers.

Provides resource handlers for serving Sigil documentation: sigil://index, sigil://language/, sigil://style/, sigil://stdlib/*.

Uses (sigil resources) for unified file resolution across project, bundle, and filesystem sources.

Exports

handle-indexprocedure

Read the main documentation index.

Read a language reference document.

handle-styleprocedure

Read a style guide document.

Read the stdlib module index.

Read documentation for a specific stdlib module.

Format the stdlib index JSON as markdown.

Format module documentation JSON as markdown.

format-exportprocedure

Format a single export as markdown.

first-lineprocedure

Get the first line of a string.

Handle project overview resource. Reads package.sgl and generates a project summary.

Handle project modules resource. Lists all Sigil modules in the project.

Register all resources with an MCP server.