Repository navigation
Cursor Marketplace plugin, GH #364/#365, and uv-audit dependency floors #366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1c72b8c
Add Cursor Marketplace plugin sources and clear uv-audit dependency C…
devopam bd9e488
Keep tool error messages visible under mcp 2.x (GH #364).
devopam 9d95a96
Add the MCP ServerList tutorial badge (GH #365).
devopam c3dbe9e
Clarify Cursor plugin local-test paths.
devopam 2ab3c4c
Address CodeRabbit review: pin uvx mcpg@version, re-index every relea…
devopam 900fa3f
Document the Enterprise local-plugin-import prerequisite for Cursor p…
devopam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "name": "mcpg", | ||
| "version": "0.8.3", | ||
| "description": "Production-grade PostgreSQL MCP server: query, tune, and operate Postgres — read-only by default.", | ||
| "author": { | ||
| "name": "Devopam Mittra", | ||
| "email": "devopam@gmail.com" | ||
| }, | ||
| "homepage": "https://github.com/devopam/MCPg", | ||
| "repository": "https://github.com/devopam/MCPg", | ||
| "license": "MIT", | ||
| "keywords": [ | ||
| "postgresql", | ||
| "postgres", | ||
| "database", | ||
| "sql", | ||
| "mcp", | ||
| "pgvector" | ||
| ], | ||
| "logo": "docs/assets/logo-400.png", | ||
| "mcpServers": "packaging/cursor/mcp.json", | ||
| "variables": { | ||
| "type": "object", | ||
| "properties": { | ||
| "MCPG_DATABASE_URL": { | ||
| "type": "string", | ||
| "title": "PostgreSQL connection URL", | ||
| "description": "e.g. postgresql://user:password@localhost:5432/mydb — remote hosts need ?sslmode=require." | ||
| }, | ||
| "MCPG_ACCESS_MODE": { | ||
| "type": "string", | ||
| "title": "Access mode", | ||
| "description": "read-only (default, safe) | restricted (allows write tools) | unrestricted (DBA surface; pair with MCPG_ALLOW_DDL etc.).", | ||
| "default": "read-only", | ||
| "enum": ["read-only", "restricted", "unrestricted"] | ||
| } | ||
| }, | ||
| "required": ["MCPG_DATABASE_URL"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "mcpServers": { | ||
| "mcpg": { | ||
| "command": "uvx", | ||
| "args": ["mcpg@0.8.3"], | ||
| "env": { | ||
| "MCPG_DATABASE_URL": "${MCPG_DATABASE_URL}", | ||
| "MCPG_ACCESS_MODE": "${MCPG_ACCESS_MODE}" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| """Sync the Cursor plugin version pins to a release version. | ||
|
|
||
| Same role ``packaging/mcpb/sync_version.py`` plays for the .mcpb bundle: | ||
| the checked-in ``.cursor-plugin/plugin.json`` and ``packaging/cursor/mcp.json`` | ||
| carry a copy of ``mcpg.__version__``, so a release bump runs this script | ||
| (and ``tests/unit/test_cursor_plugin.py`` fails CI if it is skipped). | ||
|
|
||
| Named distinctly from the MCPB ``sync_version`` module so pytest | ||
| collection cannot bind the wrong ``sync()`` through ``sys.modules``. | ||
|
|
||
| Usage:: | ||
|
|
||
| python3 packaging/cursor/sync_plugin_version.py X.Y.Z | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import json | ||
| import sys | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| def plugin_json_path(repo_root: Path) -> Path: | ||
| """Return the Cursor plugin manifest path under ``repo_root``.""" | ||
| return repo_root / ".cursor-plugin" / "plugin.json" | ||
|
|
||
|
|
||
| def mcp_json_path(repo_root: Path) -> Path: | ||
| """Return the Cursor MCP launch-config path under ``repo_root``.""" | ||
| return repo_root / "packaging" / "cursor" / "mcp.json" | ||
|
|
||
|
|
||
| def sync(repo_root: Path, version: str) -> None: | ||
| """Rewrite the plugin manifest version and the ``uvx mcpg@`` pin.""" | ||
| manifest_path = plugin_json_path(repo_root) | ||
| manifest = json.loads(manifest_path.read_text(encoding="utf-8")) | ||
| manifest["version"] = version | ||
| manifest_path.write_text(json.dumps(manifest, indent=2) + "\n", encoding="utf-8") | ||
|
|
||
| mcp_path = mcp_json_path(repo_root) | ||
| config = json.loads(mcp_path.read_text(encoding="utf-8")) | ||
| config["mcpServers"]["mcpg"]["args"] = [f"mcpg@{version}"] | ||
| mcp_path.write_text(json.dumps(config, indent=2) + "\n", encoding="utf-8") | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| if len(sys.argv) != 2 or not sys.argv[1]: | ||
| raise SystemExit("usage: sync_plugin_version.py <version>") | ||
| root = Path(__file__).resolve().parents[2] | ||
| sync(root, sys.argv[1]) | ||
| print(f"Cursor plugin pinned to {sys.argv[1]}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.