Skip to content

Commit 5357711

Browse files
committed
feat: implement parameterized resource support using matchit
- Add matchit dependency for high-performance URI routing - Replace hardcoded 'default' parameters with actual URI parameter extraction - Implement URI template parsing for custom schemes (timedate://, resource://, etc.) - Generate router-based dispatch instead of literal string matching - Support both parameterized and non-parameterized resources - Phase 1 implementation supporting String parameters only Breaking changes: - Projects using parameterized resources must add 'matchit = "0.8"' dependency Fixes parameterized resources that were completely broken since v0.9.0
1 parent ac048c2 commit 5357711

File tree

3 files changed

+326
-131
lines changed

3 files changed

+326
-131
lines changed

Cargo.lock

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-macros/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ schemars = { version = "1.0", features = ["chrono04"] }
3232
serde = { workspace = true }
3333
serde_json = { workspace = true }
3434

35+
# URI routing for parameterized resources
36+
matchit = "0.8"
37+
3538
# Optional authentication support
3639
pulseengine-mcp-auth = { workspace = true, optional = true }
3740

0 commit comments

Comments
 (0)