code
Clone this repository
https://tangled.org/anil.recoil.org/ocaml-mcp
git@git.recoil.org:anil.recoil.org/ocaml-mcp
For self-hosted knots, clone URLs may differ based on your setup.
- Add handle_resource_templates_list function for the resources/templates/list method
- Add resourceTemplates capability to the server
- Update server capabilities with resourceTemplates option
This fixes the 'Method not found: resources/templates/list' error when running the MCP server.
- Add ResourceTemplate module with handlers for templated URIs
- Update Resource module to use direct URIs without templates
- Implement URI parameter extraction from template patterns
- Fix handling of resources/read to match against both resources and templates
- Refactor resource matching into a dedicated Resource_matcher module
- Update example code to use resource templates properly
- Fix JSON-RPC method names for consistency