Skip to content

MCPg v0.8.4

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Nov 15:33
· 4 commits to main since this release
v0.8.4
8a73b47

A patch release: no tool added, removed or renamed (tool surface unchanged). It carries the mcp 2.2.0 security bump, tool-error-message fixes for mcp 2.x, and the Cursor Marketplace plugin sources. See release notes.

Added

  • MCP ServerList tutorial badge next to the existing listing badge in the README
    (mcp-serverlist.com/mcp/mcpg; GH #365).
  • Cursor Marketplace plugin sources. .cursor-plugin/plugin.json plus
    packaging/cursor/mcp.json package MCPg as a Cursor plugin (uvx mcpg@X.Y.Z, DSN
    and access mode as ${VAR} placeholders). Version is synced by
    packaging/cursor/sync_plugin_version.py and guarded by tests/unit/test_cursor_plugin.py.
    Submit the public repo at cursor.com/marketplace/publish;
    listing is a manual Cursor review, not a publish-workflow step.

Security

Fixed

  • Tool error messages survive mcp 2.2.0. The SDK now replaces the message of any exception that is not a
    ToolError with a generic "Error executing tool ". MCPg's own errors (MCPgError subclasses, e.g. an
    unconfigured NL→SQL provider that names the env var to set) are re-raised as ToolError by the call wrapper, and the
    audit log records their text; the heavy-diagnostics gate raises ToolError. Unexpected exceptions keep the SDK's
    generic message. The wrapper reads the MCPgError from the exception's __cause__ or, failing that, its __context__
    (CodeRabbit on #356).
  • run_select keeps the validator's inner verdict (GH #364). Error validating query: <sql> now includes the
    cause (Function pg_read_file is not allowed, …) so mcp 2.x ToolError wrapping does not leave the client with
    only the SQL text. Client-session tests cover a disallowed function and an undefined-column error. Disallowed-statement
    messages no longer append str(stmt) AST dumps (those can render literal passwords).

Changed

  • SQL allowlist: jsonb_exists, jsonb_exists_any, jsonb_exists_all. These are the function spellings of the
    already-allowed jsonb operators ? / ?| / ?& (GH #364).