Expand description
MCP resource definitions for Onshape integration.
This crate provides MCP resources generated at compile time from markdown
documentation in docs/src/mcp-resources/. Each subdirectory with an
index.md becomes a resource group, and each entry in the index becomes
an MCP resource.
§Adding resources
To add a new resource to an existing group (e.g. insights):
- Create
docs/src/mcp-resources/insights/new-topic.md - Add an entry to
docs/src/mcp-resources/insights/index.md:- [New Topic](new-topic.md) — Description of the new topic
To add a new resource group:
- Create
docs/src/mcp-resources/new-group/index.md - Add entries following the same format
No Rust code changes are needed in either case.
Structs§
- Resource
Entry - A single resource entry, populated at compile time by the build script.
Enums§
- Resource
Error - Errors that can occur when reading a resource.
- Resource
Result - Result of dispatching a resource operation.
Constants§
Functions§
- list_
resources - List all available MCP resources.
- read_
resource - Read a specific resource by URI.