github samanhappy/mcphub v1.3.6

one hour ago

Summary

This release strengthens MCPHub's security and extensibility with a unified authorization engine, stricter permission enforcement across routes and cached content, and request-scoped runtime strategies for per-request upstream connections. It also adds a PostgreSQL-backed transactional audit trail, Google Cloud Gemini embeddings via Application Default Credentials, group-bound built-in prompts and resources, and a dashboard extension registry, while simplifying advanced settings and improving file-staging discoverability. Together these changes make deployments easier to govern, extend, and operate while preserving existing Community authorization behavior.

Features

  • Add a unified authorization engine and multi-strategy SPI with custom authorization strategies and request-scoped caching while preserving existing Community authorization behavior by @samanhappy in #1655
  • Add a multi-strategy request-scoped runtime SPI for upstream connections created and torn down per request, with per-request connection status shown in the dashboard by @samanhappy in #1647
  • Add a PostgreSQL-backed transactional configuration audit trail with an admin audit page, filtering, and retention settings by @wuning159 in #1649
  • Add Google Cloud Gemini embeddings through Application Default Credentials without requiring an API key by @vitaliytv in #1654
  • Bind built-in prompts and resources to MCP group routes so groups can expose these capabilities consistently by @samanhappy in #1643
  • Hide saved server environment variable and header values by default to reduce sensitive data exposure by @samanhappy in #1646
  • Annotate staged tools with mcpfile contract hints to improve discoverability for MCP clients and AI agents by @wuning159 in #1620
  • Add a dashboard extension registry that lets optional modules register pages, navigation, breadcrumbs, and translations by @samanhappy in #1658

Fixes

  • Restore dashboard tool call route precedence by @samanhappy in #1666
  • Prevent legacy content caches from outliving permission changes by @samanhappy in #1665
  • Enforce prompt and resource action permissions by @samanhappy in #1661
  • Count only built-in items linked to groups by @samanhappy in #1656
  • Collapse advanced server and tool settings by default to simplify configuration by @samanhappy in #1652
  • Enforce isolation between template configuration, cloud tools, and built-in read-only resources by @samanhappy in #1651
  • Enforce route scope, policy, session ownership, and replica consistency checks by @samanhappy in #1650
  • Fix read-only tool calls being rejected when BASE_PATH is set by @goul4rt in #1645
  • Bump react-router-dom from 7.18.2 to 7.18.7 by @app/dependabot in #1642
  • Bump @types/node from 24.6.2 to 26.6.11 by @app/dependabot in #1641
  • Bump supertest and its type definitions by @app/dependabot in #1640
  • Bump express-rate-limit from 8.3.0 to 8.7.5 by @app/dependabot in #1638

摘要

此版本通过统一授权引擎、跨路由和缓存内容的更严格权限控制,以及面向按请求上游连接的请求级运行时策略,进一步强化了 MCPHub 的安全性与可扩展性。同时还新增基于 PostgreSQL 的事务化审计追踪、通过 Application Default Credentials 接入的 Google Cloud Gemini 嵌入、绑定到分组的内置提示词与资源,以及 Dashboard 扩展注册表,并简化了高级设置、增强了文件暂存能力的可发现性。这些改进让部署更易治理、扩展和运维,同时保持现有 Community 授权行为不变。

功能

  • 新增统一授权引擎与多策略 SPI,支持自定义授权策略和请求级缓存,并保持现有 Community 授权行为兼容 by @samanhappy in #1655
  • 新增多策略请求级运行时 SPI,为按请求创建和销毁的上游连接提供支持,并在 Dashboard 中显示按请求连接状态 by @samanhappy in #1647
  • 新增基于 PostgreSQL 的事务化配置审计追踪,包括管理员审计页面、筛选和保留期限设置 by @wuning159 in #1649
  • 通过 Application Default Credentials 接入 Google Cloud Gemini 嵌入,无需 API Key by @vitaliytv in #1654
  • 将内置提示词和资源绑定到 MCP 分组路由,使分组能够统一暴露这些能力 by @samanhappy in #1643
  • 默认隐藏已保存的服务器环境变量和请求头值,减少敏感信息暴露 by @samanhappy in #1646
  • 为启用文件暂存的工具补充 mcpfile 契约提示,提升 MCP 客户端和 AI Agent 的发现能力 by @wuning159 in #1620
  • 新增 Dashboard 扩展注册表,允许可选模块注册页面、导航、面包屑和翻译资源 by @samanhappy in #1658

修复

  • 恢复 Dashboard 工具调用路由的优先级 by @samanhappy in #1666
  • 防止旧内容缓存在权限变更后继续生效 by @samanhappy in #1665
  • 强制执行提示词和资源的操作权限 by @samanhappy in #1661
  • 仅统计已绑定到分组的内置项目 by @samanhappy in #1656
  • 默认折叠高级服务器和工具设置,简化配置界面 by @samanhappy in #1652
  • 强制执行模板配置、云工具和内置只读资源之间的隔离 by @samanhappy in #1651
  • 强制校验路由作用域、策略、会话归属和副本一致性 by @samanhappy in #1650
  • 修复设置 BASE_PATH 后只读工具调用被拒绝的问题 by @goul4rt in #1645
  • 将 react-router-dom 从 7.18.2 升级到 7.18.7 by @app/dependabot in #1642
  • 将 @types/node 从 24.6.2 升级到 26.6.11 by @app/dependabot in #1641
  • 升级 supertest 及其类型定义 by @app/dependabot in #1640
  • 将 express-rate-limit 从 8.3.0 升级到 8.7.5 by @app/dependabot in #1638

New Contributors

References

  • fix(routes): restore dashboard tool call route precedence by @samanhappy in #1666
  • fix(authz): prevent legacy content caches from outliving permissions by @samanhappy in #1665
  • fix(authz): enforce prompt and resource action permissions by @samanhappy in #1661
  • feat(frontend): add extension registry for optional dashboard modules by @samanhappy in #1658
  • fix: count only group-linked built-in items by @samanhappy in #1656
  • feat(authz): add unified authorization engine and multi-strategy SPI by @samanhappy in #1655
  • feat: add Google Cloud Gemini embeddings with ADC by @vitaliytv in #1654
  • fix(ui): collapse advanced server and tool settings by @samanhappy in #1652
  • fix(authz): enforce template config, cloud tool, and built-in read isolation by @samanhappy in #1651
  • fix(authz): enforce route scope, policy, session ownership, and replica parity by @samanhappy in #1650
  • feat(audit): add PostgreSQL transactional configuration audit trail by @wuning159 in #1649
  • feat(runtime): add multi-strategy request-scoped runtime SPI by @samanhappy in #1647
  • feat: hide saved server env and header values by default by @samanhappy in #1646
  • fix(auth): allow read-only tool calls when BASE_PATH is set by @goul4rt in #1645
  • feat(groups): bind built-in prompts and resources to MCP group routes by @samanhappy in #1643
  • chore(deps-dev): bump react-router-dom from 7.18.2 to 7.18.7 by @app/dependabot in #1642
  • chore(deps-dev): bump @types/node from 24.6.2 to 26.6.11 by @app/dependabot in #1641
  • chore(deps-dev): bump supertest and @types/supertest by @app/dependabot in #1640
  • chore(deps): bump express-rate-limit from 8.3.0 to 8.7.5 by @app/dependabot in #1638
  • feat(staging): annotate staged tools with mcpfile contract hints by @wuning159 in #1620
  • Full changelog: v1.3.5...v1.3.6

Don't miss a new mcphub release

NewReleases is sending notifications on new releases.