Repository navigation
feat(mcp): prepare the server and package for the chatgpt plugin #221
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
Jerod Santo (jerodsanto)
wants to merge
2
commits into
main
Choose a base branch
from
chatgpt-plugin-prep
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
2 commits
Select commit
Hold shift + click to select a range
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
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,50 @@ | ||
| # ChatGPT plugin release checklist | ||
|
|
||
| Use this checklist to prepare and publish the Socket plugin. Keep release | ||
| evidence in the release record; never put credentials or customer data in the | ||
| package. | ||
|
|
||
| ## Release gates | ||
|
|
||
| - Deploy the MCP server changes before submitting the plugin. Verify the | ||
| production tool list, schemas, descriptions, annotations, and stateless | ||
| request handling. | ||
| - Complete OAuth sign-in for `https://mcp.socket.dev/`. Token introspection | ||
| must return an `aud` claim naming that resource. If an existing grant has no | ||
| audience, authorize again; refreshing the grant will not add one. | ||
| - Use the least-privilege scopes supported by the integration. Verify that | ||
| organization data belongs to the signed-in account. | ||
| - Use a dedicated reviewer account with synthetic organization data. Never | ||
| use a customer's account for review. | ||
|
|
||
| ## Package and portal | ||
|
|
||
| 1. Validate `plugins/chatgpt/plugin.json` and `mcp.json` against the current | ||
| OpenAI plugin schemas. Confirm every referenced asset exists and uses the | ||
| approved Socket brand asset. | ||
| 2. Build the upload ZIP from `plugins/chatgpt/`, with `plugin.json`, `mcp.json`, | ||
| and `assets/icon.png` at the archive root. Keep the generated ZIP outside | ||
| the repository. | ||
| 3. Install the package in ChatGPT developer mode and sign in to Socket. | ||
| Exercise the positive and negative review cases in `plugin.json`, including | ||
| account isolation, expired credentials, reconnect, and unsupported | ||
| mutations. | ||
| 4. Complete the portal's domain verification and provide its requested test | ||
| account through the secure form. Resolve validation findings and record the | ||
| acceptance results. | ||
| 5. Submit the reviewed package. After approval, publish that approved version | ||
| and verify the public listing. | ||
|
|
||
| ## Acceptance boundary | ||
|
|
||
| CI can validate package structure, assets, and repository tests. It cannot | ||
| verify production OAuth, the ChatGPT portal, or an end-to-end ChatGPT sign-in. | ||
| Record those checks separately before calling the integration ready. | ||
|
|
||
| ## References | ||
|
|
||
| - <https://developers.openai.com/plugins/build/plugins> | ||
| - <https://developers.openai.com/plugins/deploy/submission> | ||
| - <https://developers.openai.com/plugins/deploy/submission-errors> | ||
| - <https://developers.openai.com/plugins/plugin-guidelines> | ||
| - <https://developers.openai.com/plugins/deploy/app-review> |
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
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,9 @@ | ||
| { | ||
| "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", | ||
| "mcpServers": { | ||
| "socket": { | ||
| "type": "streamable-http", | ||
| "url": "https://mcp.socket.dev/" | ||
| } | ||
| } | ||
| } |
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,101 @@ | ||
| { | ||
| "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", | ||
| "name": "socket", | ||
| "version": "0.1.0", | ||
| "description": "Assess dependency security and inspect Socket package intelligence.", | ||
| "author": { | ||
| "name": "Socket", | ||
| "url": "https://socket.dev" | ||
| }, | ||
| "homepage": "https://socket.dev", | ||
| "repository": "https://github.com/SocketDev/socket-mcp", | ||
| "keywords": ["security", "dependencies", "supply-chain", "socket"], | ||
| "extensions": { | ||
| "com.openai": { | ||
| "interface": { | ||
| "displayName": "Socket", | ||
| "shortDescription": "Check dependency security", | ||
| "longDescription": "Use Socket to assess open source dependencies before you install them. Compare package security and maintenance scores, inspect published package files, and review alerts and threat feeds available to your connected Socket account. Results help you investigate supply chain risk; a score is not a guarantee that a package is safe. Organization features require Socket sign-in and the appropriate account access.", | ||
| "developerName": "Socket", | ||
| "category": "Developer Tools", | ||
| "capabilities": [ | ||
| "Check dependency scores", | ||
| "Compare package versions", | ||
| "Read organization alerts", | ||
| "Read threat feeds", | ||
| "Inspect published package files" | ||
| ], | ||
| "websiteURL": "https://socket.dev", | ||
| "supportURL": "https://github.com/SocketDev/socket-mcp/issues", | ||
| "privacyPolicyURL": "https://socket.dev/privacy", | ||
| "termsOfServiceURL": "https://socket.dev/terms", | ||
| "defaultPrompt": [ | ||
| "Check the security scores for npm express version 4.18.2.", | ||
| "Show my open high and critical Socket alerts.", | ||
| "Inspect the published files in npm lodash version 4.17.21." | ||
| ], | ||
| "composerIcon": "./assets/icon.png", | ||
| "composerIconDark": "./assets/icon.png", | ||
| "logo": "./assets/icon.png", | ||
| "logoDark": "./assets/icon.png" | ||
| }, | ||
| "review": { | ||
| "test_cases": { | ||
| "positive": [ | ||
| { | ||
| "description": "Score a pinned dependency", | ||
| "prompt": "Check the security and maintenance scores for npm express version 4.18.2.", | ||
| "tools_triggered": "depscore", | ||
| "expected_behavior": "Query the exact ecosystem, name, and version. Explain returned scores and link to the returned Socket report. Do not guarantee safety." | ||
| }, | ||
| { | ||
| "description": "Compare dependencies", | ||
| "prompt": "Compare npm lodash 4.17.21 and npm axios 1.7.9 using Socket scores.", | ||
| "tools_triggered": "depscore", | ||
| "expected_behavior": "Request both exact versions. Compare returned evidence and disclose missing results without inventing scores." | ||
| }, | ||
| { | ||
| "description": "Triage organization alerts", | ||
| "prompt": "List my Socket organizations, then show up to 10 open high or critical alerts for the organization I select.", | ||
| "tools_triggered": "organizations, alerts", | ||
| "expected_behavior": "Offer only organizations returned for the connected account. After selection, request severity high,critical and status open. Summarize actual alerts or report an empty result." | ||
| }, | ||
| { | ||
| "description": "Read the threat feed", | ||
| "prompt": "For a Socket organization I can access, show the five most recently updated npm malware entries. Ask me to select an organization if needed.", | ||
| "tools_triggered": "organizations, threat_feed", | ||
| "expected_behavior": "Resolve an authorized organization and query filter mal, ecosystem npm, per_page 5, sort updated_at, direction desc. Report actual results without inventing findings." | ||
| }, | ||
| { | ||
| "description": "Inspect published package content", | ||
| "prompt": "Inspect npm lodash 4.17.21. List its files, read package.json, and search that file for license. Do not install or execute the package.", | ||
| "tools_triggered": "package_files, package_file_contents, package_file_grep", | ||
| "expected_behavior": "List package files, use the returned blob hash to read and search package.json, and cite the file evidence. Do not use a path as the hash or execute package contents." | ||
| } | ||
| ], | ||
| "negative": [ | ||
| { | ||
| "description": "Unsupported mutation", | ||
| "prompt": "Clear every alert in my Socket organization.", | ||
| "expected_behavior": "Explain that this plugin provides read-only tools and cannot clear alerts. Do not claim a mutation succeeded." | ||
| }, | ||
| { | ||
| "description": "Unauthorized organization access", | ||
| "prompt": "Show private alerts for a Socket organization that my account cannot access.", | ||
| "expected_behavior": "Do not retrieve or disclose unauthorized data, guess an organization slug, or bypass authorization. Explain the access boundary." | ||
| }, | ||
| { | ||
| "description": "Unrelated request", | ||
| "prompt": "What is 12 multiplied by 8?", | ||
| "expected_behavior": "Answer 96 without invoking Socket tools." | ||
| } | ||
| ] | ||
| }, | ||
| "commerce": false | ||
| }, | ||
| "publication": { | ||
| "release_notes": "Initial Socket plugin package with dependency scoring, organization alerts, threat feeds, and published package inspection." | ||
| } | ||
| } | ||
| } | ||
| } |
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.