-
Notifications
You must be signed in to change notification settings - Fork 34
Added Mastercard Developers AI agent plugins for Claude Code, Codex and Cursor #67
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
Open
kshamajha
wants to merge
7
commits into
Mastercard:main
Choose a base branch
from
kshamajha:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4930aad
Added Mastercard Developers plugins for Claude Code, Codex and Cursor
kshama0602 3a8b5f2
Updated version to be in sync and npx command along with README changes
kshama0602 05ec0dc
Fix Cursor MCP config, add skills-sync CI guard and README changes
kshama0602 75057a8
Updated README
kshama0602 6190b3a
Updated plugin.json with relevant keywords
kshama0602 17b0199
Implemented review feedback
kshama0602 7b78e57
Added agent plugins portable
kshama0602 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,21 @@ | ||
| { | ||
| "name": "mastercard-developers", | ||
| "metadata": { | ||
| "description": "Official Mastercard Developers plugins and skills for AI coding agents, including the Mastercard Developers MCP server and best practices for building integrations with Mastercard APIs." | ||
| }, | ||
| "owner": { | ||
| "name": "Mastercard", | ||
| "email": "apisupport@mastercard.com" | ||
| }, | ||
| "plugins": [ | ||
| { | ||
| "name": "mastercard-developers", | ||
| "source": "./providers/claude/plugin/", | ||
| "description": "Mastercard Developers", | ||
| "version": "1.0.0", | ||
| "author": { | ||
| "name": "Mastercard" | ||
| } | ||
| } | ||
| ] | ||
| } |
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,27 @@ | ||
| { | ||
| "name": "mastercard-developers", | ||
| "metadata": { | ||
| "description": "Official Mastercard Developers plugins and skills for AI coding agents, including the Mastercard Developers MCP server and best practices for building integrations with Mastercard APIs." | ||
| }, | ||
| "owner": { | ||
| "name": "Mastercard", | ||
| "email": "apisupport@mastercard.com" | ||
| }, | ||
| "plugins": [ | ||
| { | ||
| "name": "mastercard-developers", | ||
| "version": "1.0.0", | ||
| "source": { | ||
| "source": "git-subdir", | ||
| "url": "https://github.com/Mastercard/developers-agent-toolkit.git", | ||
| "path": "providers/codex/plugin", | ||
| "ref": "main" | ||
| }, | ||
| "policy": { | ||
| "installation": "AVAILABLE", | ||
| "authentication": "NONE" | ||
| }, | ||
| "category": "Finance" | ||
| } | ||
| ] | ||
| } |
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,21 @@ | ||
| { | ||
| "name": "mastercard-developers", | ||
| "metadata": { | ||
| "description": "Official Mastercard Developers plugins and skills for AI coding agents, including the Mastercard Developers MCP server and best practices for building integrations with Mastercard APIs." | ||
| }, | ||
| "owner": { | ||
| "name": "Mastercard", | ||
| "email": "apisupport@mastercard.com" | ||
| }, | ||
| "plugins": [ | ||
| { | ||
| "name": "mastercard-developers", | ||
| "source": "./providers/cursor/plugin/", | ||
| "description": "Mastercard Developers", | ||
| "version": "1.0.0", | ||
| "author": { | ||
| "name": "Mastercard" | ||
| } | ||
| } | ||
| ] | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
| name: Guard Skills Sync | ||
| 'on': | ||
| push: | ||
| branches: | ||
| - main | ||
| - develop | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - develop | ||
| workflow_dispatch: | ||
| jobs: | ||
| skills-in-sync: | ||
| name: Verify provider skills match canonical skills/ | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: 'Use Node.js 20.x' | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20.x' | ||
| - name: Check skills are in sync | ||
| run: node scripts/sync.js --check |
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 |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| .DS_Store | ||
| .vscode | ||
| .idea | ||
| *.iml | ||
| .eslintcache | ||
| .npmrc | ||
| .mcpregistry* |
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,54 @@ | ||
| # Provider Plugins | ||
|
|
||
| This directory contains plugins for different AI code editors and agent harnesses. | ||
|
|
||
| Most providers share the same vendor-specific layout: | ||
|
|
||
| ``` | ||
| providers/<provider>/plugin/ | ||
| ├── skills/ # Agent skills (mastercard-developers-bestpractice) | ||
| ├── .mcp.json | mcp.json # Mastercard Developers MCP server wiring | ||
| └── .<provider>-plugin/ # Provider-specific plugin manifest (plugin.json) | ||
| ``` | ||
|
|
||
| The exception is `agent-plugins`, which follows the portable | ||
| [Agent Plugins v1](https://agent-plugins.org/specification) layout instead: a | ||
| root `plugin.json` (no `.<provider>-plugin/` subdirectory). See the table below. | ||
|
|
||
| ## Providers | ||
|
|
||
| | Provider | Plugin manifest | MCP config | | ||
| |----------|-----------------|------------| | ||
| | `claude` | `.claude-plugin/plugin.json` | `.mcp.json` | | ||
| | `codex` | `.codex-plugin/plugin.json` | `.mcp.json` | | ||
| | `cursor` | `.cursor-plugin/plugin.json` | `mcp.json` | | ||
| | `agent-plugins` | `plugin.json` (root) | `mcp.json` | | ||
|
|
||
| The `agent-plugins` entry is a portable **[Agent Plugins v1](https://agent-plugins.org/specification)** | ||
| package: one vendor-neutral directory (`plugin.json` + `mcp.json` + `skills/`) | ||
| that any conformant client can load without a provider-specific manifest. It | ||
| collapses the duplicated per-vendor "box" into a single layout. Client-only | ||
| presentation data is kept in the vendor folders (e.g. `providers/codex/`) for | ||
| now; the Agent Plugins schema reserves `extensions.<reverse.domain>` for it if | ||
| needed later. See | ||
| [`agent-plugins/plugin/README.md`](agent-plugins/plugin/README.md). | ||
|
|
||
| ## MCP server | ||
|
|
||
| Every plugin connects to the remote Mastercard Developers MCP server at | ||
| `https://developer.mcp.mastercard.com`, which requires **no authentication**. | ||
| A local `npx -y @mastercard/developers-mcp` alternative is documented in the | ||
| skill. | ||
|
|
||
| ## Skills | ||
|
|
||
| Each plugin ships the `mastercard-developers-bestpractice` skill under | ||
| `skills/`. The skill instructs agents on how to set up the Mastercard | ||
| Developers MCP server (remote and local) and how to reach Mastercard | ||
| documentation in `llms.txt` format. | ||
|
|
||
| > **Do not edit the skill copies under `providers/*/plugin/skills/`.** They are | ||
| > generated from the canonical [`skills/`](../skills/) directory at the | ||
| > repository root. Edit the canonical file, then run `node scripts/sync.js` | ||
| > to propagate the change to every provider. `node scripts/sync.js --check` | ||
| > (also run in CI) verifies the copies are in sync. |
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 @@ | ||
| # Agent Plugin (portable) | ||
|
|
||
| This directory is a portable **[Agent Plugins v1](https://agent-plugins.org/specification)** | ||
| package — a single, vendor-neutral layout that any conformant client (Claude | ||
| Code, Codex, Cursor, Gemini CLI, Antigravity, …) can load without a | ||
| provider-specific manifest. | ||
|
|
||
| ``` | ||
| plugin/ | ||
| ├── plugin.json # Agent Plugins manifest ($schema + name + metadata) | ||
| ├── mcp.json # MCP server wiring (type: streamable-http) | ||
| └── skills/ # mastercard-developers-bestpractice (synced from /skills) | ||
| ``` | ||
|
|
||
| ## Why this exists | ||
|
|
||
| The `providers/claude`, `providers/codex`, and `providers/cursor` folders each | ||
| carry a near-identical copy of the same skill + MCP server wrapped in a | ||
| different vendor manifest shape. Agent Plugins collapses that duplicated "box" | ||
| into one portable directory: | ||
|
|
||
| | Concern | Vendor-specific plugins | Agent Plugin | | ||
| | --- | --- | --- | | ||
| | Manifest | `.claude-plugin/`, `.codex-plugin/`, `.cursor-plugin/` | single root `plugin.json` | | ||
| | MCP config | `.mcp.json` / `mcp.json`, `type: "http"` | `mcp.json`, `type: "streamable-http"` | | ||
| | Client-only fields | top-level (e.g. Codex `interface`) | `extensions.<reverse.domain>` (sanctioned home; see note) | | ||
|
|
||
| > **Client-only metadata is intentionally not duplicated here yet.** The Codex | ||
| > `interface` block (catalog display name, category, brand color, etc.) still | ||
| > lives in [`providers/codex/`](../../codex/). The Agent Plugins schema is | ||
| > closed, so any such client-specific data would have to move under | ||
| > `extensions."<reverse.domain>"` — but the exact namespace a client reads is | ||
| > client-defined and unverified for us, so we keep the portable manifest lean | ||
| > and vendor-neutral until a client confirms both native `plugin.json` loading | ||
| > and its extension namespace. | ||
|
|
||
| ## Notable spec differences from the vendor copies | ||
|
|
||
| - **MCP transport type** is `"streamable-http"` (the Agent Plugins value for a | ||
| remote MCP endpoint), not the vendor-native `"http"`. | ||
| - **`$schema` is required** on both `plugin.json` and `mcp.json`. | ||
| - **Client-specific data** (e.g. the Codex `interface` block) is **not** | ||
| duplicated here — it stays in [`providers/codex/`](../../codex/). If a client | ||
| ever needs it in the portable manifest, it must go under | ||
| `extensions."<reverse.domain>"`, because the manifest schema is closed and | ||
| rejects unknown top-level fields. | ||
|
|
||
| ## Skills | ||
|
|
||
| The `skills/` copy is generated from the canonical [`/skills`](../../../skills) | ||
| directory by `node scripts/sync.js`. Do not edit it directly. |
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,9 @@ | ||
| { | ||
| "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", | ||
| "mcpServers": { | ||
| "mastercard-developers": { | ||
| "type": "streamable-http", | ||
| "url": "https://developer.mcp.mastercard.com" | ||
| } | ||
| } | ||
| } |
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,25 @@ | ||
| { | ||
| "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", | ||
| "name": "mastercard-developers", | ||
| "version": "1.0.0", | ||
| "description": "Mastercard Developers plugin to help build integrations with Mastercard APIs, including best practices and the Mastercard Developers MCP server.", | ||
| "author": { | ||
| "name": "Mastercard", | ||
| "url": "https://developer.mastercard.com" | ||
| }, | ||
| "homepage": "https://developer.mastercard.com", | ||
| "repository": "https://github.com/Mastercard/developers-agent-toolkit", | ||
| "license": "MIT", | ||
| "keywords": [ | ||
| "mastercard", | ||
| "mastercard-developers", | ||
| "payments", | ||
| "api", | ||
| "open-banking", | ||
| "open-finance", | ||
| "integration", | ||
| "mcp", | ||
| "modelcontextprotocol", | ||
| "agent-toolkit" | ||
| ] | ||
| } |
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.