Summary
MCPHub v1.1.7 adds group-level instructions for MCP clients, optional Prometheus metrics, managed pruning for declarative settings, and an opt-in guard for high-risk tool-call arguments. It also improves OAuth registration and diagnostics, embedding token truncation, form parameter conversion, and tool-call troubleshooting.
Highlights
- Configure group instructions returned during MCP initialization, including smart group routes and multi-server groups.
- Enable Prometheus metrics with
ENABLE_METRICS=true; optionally protect/metricswith a dedicatedMETRICS_TOKENbearer credential. - Use
MCPHUB_SETTINGS_SYNC=pruneto permanently remove deleted settings-managed servers and groups at startup while preserving unmanaged dashboard entries. - Enable
TOOL_CALL_GUARD_ENABLED=trueto reject tool calls whose arguments match high-confidence malicious patterns before forwarding them upstream. This guard is disabled by default and provides pattern-based checks, not comprehensive protection.
Fixes
- Honor explicit OAuth redirect URIs during client registration, avoiding unintended fallback callbacks.
- Preserve useful OAuth failure diagnostics while continuing to sanitize credentials.
- Use
cl100k_basewhen truncating text for supported OpenAI embedding models. - Convert integer, number, and boolean array form parameters according to their item schemas.
- Include group, authenticated caller, and target tool context in tool-call error logs.
- Preserve hyphenated filenames and improve context-line parsing when compressing search results.
References
- fix: honor explicit OAuth redirect URIs during registration by @samanhappy in https://github.com/samanhappy/mcphub/pull/1352
- fix: preserve sanitized OAuth failure diagnostics by @samanhappy in https://github.com/samanhappy/mcphub/pull/1351
- fix: use cl100k_base for OpenAI embedding truncation by @Lay-quq in https://github.com/samanhappy/mcphub/pull/1350
- fix: convert primitive array form parameters by item schema by @Lay-quq in https://github.com/samanhappy/mcphub/pull/1347
- feat: add managed pruning to declarative settings sync by @samanhappy in https://github.com/samanhappy/mcphub/pull/1346
- feat: expose optional Prometheus metrics endpoint by @samanhappy in https://github.com/samanhappy/mcphub/pull/1345
- feat: group-level instructions sent on initialize by @SelfRef in https://github.com/samanhappy/mcphub/pull/1340
- fix: include request context in tool call error logs by @samanhappy in https://github.com/samanhappy/mcphub/pull/1339
- fix(compression): keep a hyphenated file name whole when compressing search results by @pacocartones in https://github.com/samanhappy/mcphub/pull/1326
- feat: add opt-in pre-call guard for high-risk tool call arguments by @DSHCorrectover in https://github.com/samanhappy/mcphub/pull/1299
- Full changelog: https://github.com/samanhappy/mcphub/compare/v1.1.6...v1.1.7