{
  "markdown": "# sourcegraph-claudecode-plugin\n\nSourcegraph plugin for Claude Code that adds:\n\n- Sourcegraph MCP server connectivity (code search, navigation, Deep Search)\n- `searching-sourcegraph` skill for disciplined search workflows (with supporting workflows and query patterns)\n\n## Prerequisites\n\n- [Claude Code](https://code.claude.com) version 1.0.33 or later (`claude --version`)\n- A Sourcegraph instance with MCP enabled\n- A Sourcegraph access token with `mcp` scope\n\nSet the required environment variables in your shell profile (`.zshrc`, `.bashrc`, etc.):\n\n```bash\nexport SOURCEGRAPH_ENDPOINT=\"https://sourcegraph.example.com\"\nexport SOURCEGRAPH_ACCESS_TOKEN=\"<your-token>\"\n```\n\n## Install (permanent)\n\nAdd this repository as a marketplace, then install the plugin:\n\n```bash\n# From a local clone\nclaude plugin marketplace add ./sourcegraph-claudecode-plugin\n\n# Or directly from GitHub\nclaude plugin marketplace add sourcegraph-community/sourcegraph-claudecode-plugin\n```\n\nThen install:\n\n```bash\nclaude plugin install sourcegraph@sourcegraph-claudecode-plugin\n```\n\nRestart Claude Code after installing.\n\n## Install (per-session, for development)\n\nLoad the plugin for a single session without installing permanently:\n\n```bash\nclaude --plugin-dir ./sourcegraph-claudecode-plugin\n```\n\nRun `/reload-plugins` after making changes during a session.\n\n## Alternative: add MCP server only\n\nIf you only want the Sourcegraph MCP tools without the skills, add the server directly:\n\n```bash\nclaude mcp add --transport http sourcegraph \\\n  \"${SOURCEGRAPH_ENDPOINT}/.api/mcp\" \\\n  --header \"Authorization: token ${SOURCEGRAPH_ACCESS_TOKEN}\"\n```\n\n## Verify\n\nAfter installing, confirm everything loaded:\n\n- `/help` should list `sourcegraph:searching-sourcegraph`\n- `/mcp` should show the `sourcegraph` MCP server as connected\n\n## Structure\n\n```text\n.\n├── .claude-plugin/\n│   ├── plugin.json\n│   └── marketplace.json\n├── .mcp.json\n├── skills/\n│   └── searching-sourcegraph/\n│       ├── SKILL.md\n│       ├── query-patterns.md\n│       ├── examples/\n│       │   └── common-searches.md\n│       └── workflows/\n│           ├── implementing-feature.md\n│           ├── understanding-code.md\n│           ├── debugging-issue.md\n│           ├── fixing-bug.md\n│           └── code-review.md\n└── README.md\n```\n\n## Skill\n\nThe plugin installs one skill: `searching-sourcegraph`. Claude auto-invokes it when you need to search or navigate code via Sourcegraph. It includes workflows for implementing features, understanding code, debugging issues, fixing bugs, and code review.\n\n## MCP Details\n\n- Endpoint: `${SOURCEGRAPH_ENDPOINT}/.api/mcp`\n- Transport: HTTP (`\"type\": \"http\"`)\n- Auth header: `Authorization: token <token>`\n\n## Built from\n\n- [sourcegraph-cursor-plugin](https://github.com/sourcegraph-community/sourcegraph-cursor-plugin)\n- [sourcegraph-gemini](https://github.com/sourcegraph-community/sourcegraph-gemini)\n- [sourcegraph-skill](https://github.com/sourcegraph-community/sourcegraph-skill)\n\n## Docs\n\n- [Claude Code plugins](https://code.claude.com/docs/en/plugins)\n- [Sourcegraph MCP](https://sourcegraph.com/docs/api/mcp)\n",
  "bytes": 3099,
  "sha": "0769d6fa859dd53abb24d895fffc4bf8d255b3c3f06d09307f639208069fc453",
  "repo_slug": "sourcegraph-community/sourcegraph-claudecode-plugin",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_sourcegraph_community_sourcegraph_claude_55d8a7fb/readme"
}