You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add helper methods for tool and resource registration
Add convenience methods to simplify MCP server feature registration:
- Add AddTool[In, Out] package-level generic function for type-safe tool registration
- Add Server.AddResource method for resource registration
- Add Server.AddResourceTemplate method for resource template registration
- All helpers automatically increment internal counters for accurate stats
These methods eliminate the need for users to:
- Call srv.MCP() to access the underlying MCP server
- Manually increment tool/resource counters after registration
All changes are additive and backwards compatible.
Additional changes:
- Fix branding: replace all 'MCPBase' references with 'hypermcp' in DOCKER.md
- Update README.md with new API examples and documentation structure
- Update EXAMPLE.md to demonstrate new simplified registration pattern
- Clean up go.sum dependencies
0 commit comments