(sigil mcp server)
(sigil mcp server) - MCP server implementation.
Provides the main server loop, message routing, and MCP protocol handling for the Sigil MCP server.
Exports
mcp-serverprocedureConstruct a mcp-server struct.
mcp-server?procedureTest if a value is a mcp-server struct.
mcp-server-nameprocedureGet the name field of a mcp-server struct.
mcp-server-versionprocedureGet the version field of a mcp-server struct.
mcp-server-toolsprocedureGet the tools field of a mcp-server struct.
mcp-server-resourcesprocedureGet the resources field of a mcp-server struct.
mcp-server-promptsprocedureGet the prompts field of a mcp-server struct.
mcp-server-initializedprocedureGet the initialized field of a mcp-server struct.
set-mcp-server-tools!procedureSet the tools field of a mcp-server struct.
set-mcp-server-resources!procedureSet the resources field of a mcp-server struct.
set-mcp-server-prompts!procedureSet the prompts field of a mcp-server struct.
set-mcp-server-initialized!procedureSet the initialized field of a mcp-server struct.
tool-defprocedureConstruct a tool-def struct.
tool-def?procedureTest if a value is a tool-def struct.
tool-def-nameprocedureGet the name field of a tool-def struct.
tool-def-descriptionprocedureGet the description field of a tool-def struct.
tool-def-input-schemaprocedureGet the input-schema field of a tool-def struct.
tool-def-handlerprocedureGet the handler field of a tool-def struct.
resource-defprocedureConstruct a resource-def struct.
resource-def?procedureTest if a value is a resource-def struct.
resource-def-uriprocedureGet the uri field of a resource-def struct.
resource-def-nameprocedureGet the name field of a resource-def struct.
resource-def-descriptionprocedureGet the description field of a resource-def struct.
resource-def-mime-typeprocedureGet the mime-type field of a resource-def struct.
resource-def-handlerprocedureGet the handler field of a resource-def struct.
prompt-defprocedureConstruct a prompt-def struct.
prompt-def?procedureTest if a value is a prompt-def struct.
prompt-def-nameprocedureGet the name field of a prompt-def struct.
prompt-def-descriptionprocedureGet the description field of a prompt-def struct.
prompt-def-argumentsprocedureGet the arguments field of a prompt-def struct.
prompt-def-handlerprocedureGet the handler field of a prompt-def struct.
mcp-server-register-tool!procedureRegister a tool with the server.
mcp-server-register-resource!procedureRegister a resource with the server.
mcp-server-register-prompt!procedureRegister a prompt with the server.
mcp-server-handle-messageprocedureHandle a parsed JSON-RPC message and return a response (or #f for notifications).
mcp-server-runprocedureRun the MCP server, reading from stdin and writing to stdout.