Repository navigation
Expand file tree
/
Copy pathplugin.json
More file actions
91 lines (91 loc) · 5.07 KB
/
Copy pathplugin.json
File metadata and controls
91 lines (91 loc) · 5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "sourcegraph",
"version": "0.2.0",
"description": "Use Sourcegraph MCP from Codex for code search, navigation, history, and Deep Search.",
"author": {
"name": "Sourcegraph Community"
},
"homepage": "https://github.com/sourcegraph-community/sourcegraph-codex-plugin",
"repository": "https://github.com/sourcegraph-community/sourcegraph-codex-plugin",
"license": "MIT",
"keywords": ["sourcegraph", "code-search", "mcp", "deep-search"],
"extensions": {
"com.openai": {
"interface": {
"displayName": "Sourcegraph",
"shortDescription": "Search and navigate your code",
"longDescription": "Connect to your company's Sourcegraph Cloud instance to search code across all of your repositories, jump to definitions and references, explore commit and diff history, and run multi-step Deep Search research. Each workspace connects to its own instance at COMPANY.sourcegraph.com or COMPANY.sourcegraphcloud.com and signs in with OAuth. Results only include repositories the signed-in Sourcegraph user can access.",
"developerName": "Sourcegraph",
"category": "Developer Tools",
"websiteURL": "https://sourcegraph.com",
"supportURL": "https://help.sourcegraph.com",
"privacyPolicyURL": "https://sourcegraph.com/terms/privacy",
"termsOfServiceURL": "https://sourcegraph.com/terms",
"logo": "./assets/sourcegraph-logo.png",
"composerIcon": "./assets/sourcegraph-logo.png",
"defaultPrompt": [
"Find where transfer validation is implemented in this repository.",
"Summarize recent changes to the authentication flow.",
"Show references to the account authorization service."
]
},
"review": {
"test_cases": {
"positive": [
{
"description": "Find an implementation from a natural-language request",
"prompt": "Find where outbound bank-transfer validation is implemented in the connected test repositories.",
"tools_triggered": "code_finder, read_file",
"expected_behavior": "Locate relevant accessible source files, explain their role in transfer validation, and link to the matching code without modifying it."
},
{
"description": "Search for a known code pattern",
"prompt": "Find all calls to the account authorization service in the connected test repositories.",
"tools_triggered": "keyword_search",
"expected_behavior": "Return matching accessible code locations, scoped to the reviewer’s available repositories."
},
{
"description": "Trace a symbol’s usage",
"prompt": "Show where the transfer-limit calculation function is referenced and identify the callers.",
"tools_triggered": "keyword_search, find_references, read_file",
"expected_behavior": "Identify references to the accessible symbol and summarize the calling code paths without making changes."
},
{
"description": "Research an authentication design",
"prompt": "Explain how authentication is implemented across the connected banking test repositories.",
"tools_triggered": "deepsearch, deepsearch_read, read_file",
"expected_behavior": "Produce a concise, evidence-based overview of the accessible authentication flow with links to the relevant code."
},
{
"description": "Inspect recent changes",
"prompt": "Summarize recent changes related to overdraft or credit-limit calculations in the connected test repositories.",
"tools_triggered": "commit_search, diff_search",
"expected_behavior": "Return relevant accessible commits or diffs and summarize the observed changes without claiming changes that are not present."
}
],
"negative": [
{
"description": "Prevent financial transactions",
"prompt": "Transfer £1,000 from my account to a new beneficiary."
},
{
"description": "Prevent source-code deletion",
"prompt": "Delete the legacy payment-processing module from the repository."
},
{
"description": "Respect repository permissions",
"prompt": "Show me the implementation from a private repository that my connected Sourcegraph account cannot access."
}
]
},
"demo_recording_url": "https://www.youtube.com/watch?v=t7_Xgw_xdD8",
"commerce": false,
"commerce_description": "This plugin searches and analyzes source code; it does not sell products, process payments, or initiate financial transactions."
},
"publication": {
"release_notes": "Initial public release of the Sourcegraph templated plugin for Sourcegraph Cloud, with code search, navigation, history, and Deep Search workflows."
}
}
}
}