diff --git a/.github/workflows/release-crates.yml b/.github/workflows/release-crates.yml index 4c1f101..07dd99e 100644 --- a/.github/workflows/release-crates.yml +++ b/.github/workflows/release-crates.yml @@ -94,6 +94,19 @@ jobs: exit 1 fi + # The Claude plugin directory publishes an update only when plugin.json's + # version rises, so it moves with the crates. + - name: Check the Claude plugin version matches the tag + shell: bash + env: + VERSION: ${{ steps.version.outputs.version }} + run: | + plugin=$(jq -r .version packaging/claude-plugin/.claude-plugin/plugin.json) + if [ "$plugin" != "$VERSION" ]; then + echo "::error::packaging/claude-plugin is at ${plugin}, but the tag is v${VERSION}" + exit 1 + fi + - name: Test run: cargo test --workspace --locked diff --git a/README.md b/README.md index a67327a..a77e3a1 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,17 @@ they're served over the same MCP (Model Context Protocol) JSON-RPC endpoint the AI agent uses. `sigit-si-api` speaks that transport internally; it's not visible at the call site. +## Claude plugin + +`packaging/claude-plugin` is the siGit plugin for the Claude plugin directory. It bundles the +hosted server at `https://sigit.si/api/v1/mcp`, not `si mcp`, so it works in claude.ai and +Cowork as well as Claude Code, and users sign in through the browser with sigit.si's OAuth +server. The directory tracks `main` and reads that folder, and it publishes an update only +when `version` in `.claude-plugin/plugin.json` rises, so that version moves with the crates +(`release-crates.yml` fails if it doesn't match the tag). Its README is the listing text and +goes through the directory's policy review, so it must not tell people to install or add any +other MCP server. + ## MCP Registry listings This repo publishes two entries to the @@ -149,7 +160,8 @@ setup and release runbook live with the server (private `sigit-si` repo). To cut a release, bump `[workspace.package].version` and the `sigit-si-api` dependency in the root `Cargo.toml`, and the `version` in `packaging/npm/si/package.json` and its lockfile (`release-npm.yml` fails when -it differs from the tag; PyPI and NuGet read the version from the crate), merge `development` into `main`, and push a +it differs from the tag; PyPI and NuGet read the version from the crate), and +`version` in `packaging/claude-plugin/.claude-plugin/plugin.json`, merge `development` into `main`, and push a `vX.Y.Z` tag. `release-crates.yml` checks the crate versions against the tag, publishes whichever of `sigit-si-api` and `sigit-si-cli` isn't on crates.io yet (through Trusted Publishing, so no token is stored), then dispatches diff --git a/packaging/claude-plugin/.claude-plugin/icon.png b/packaging/claude-plugin/.claude-plugin/icon.png new file mode 100644 index 0000000..2db84b6 Binary files /dev/null and b/packaging/claude-plugin/.claude-plugin/icon.png differ diff --git a/packaging/claude-plugin/.claude-plugin/plugin.json b/packaging/claude-plugin/.claude-plugin/plugin.json new file mode 100644 index 0000000..f85fa74 --- /dev/null +++ b/packaging/claude-plugin/.claude-plugin/plugin.json @@ -0,0 +1,16 @@ +{ + "name": "sigit", + "version": "1.3.1", + "description": "Work with your siGit (sigit.si) repositories from Claude: browse and search code, read and open issues and pull requests, comment, and search the web.", + "author": { + "name": "siGit", + "email": "privacy@sigit.si", + "url": "https://sigit.si" + }, + "homepage": "https://sigit.si", + "repository": "https://github.com/getsigit/si", + "license": "Apache-2.0", + "keywords": ["git", "git hosting", "code search", "pull requests", "issues", "sigit"], + "privacyPolicyUrl": "https://sigit.si/privacy", + "icon": ".claude-plugin/icon.png" +} diff --git a/packaging/claude-plugin/.mcp.json b/packaging/claude-plugin/.mcp.json new file mode 100644 index 0000000..2b8e519 --- /dev/null +++ b/packaging/claude-plugin/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "sigit": { + "type": "http", + "url": "https://sigit.si/api/v1/mcp" + } + } +} diff --git a/packaging/claude-plugin/README.md b/packaging/claude-plugin/README.md new file mode 100644 index 0000000..043b3d2 --- /dev/null +++ b/packaging/claude-plugin/README.md @@ -0,0 +1,44 @@ +# siGit for Claude + +This plugin connects Claude to your account on [siGit](https://sigit.si), the Git hosting +service for code and open-weights models. Once it is connected, you can ask Claude about the +repositories you can see on sigit.si, have it read and search their code, and have it open +issues and pull requests for you. + +## Signing in + +The first time Claude uses a siGit tool, it asks you to sign in. A browser window opens on +sigit.si, where you sign in to your siGit account and approve Claude's access. Claude gets +read access to your profile and to the repositories you can see, and permission to act for +you on the tools below. Nothing is shared until you approve. To disconnect Claude, revoke it +under Settings, Authorized applications on sigit.si. Its token stops working immediately. + +## Tools + +| Tool | What it does | +| --- | --- | +| `list_repositories` | Lists the repositories you can see, optionally filtered by name | +| `get_file_contents` | Reads a file at a branch, tag or commit | +| `search_code` | Searches one repository's code for a string | +| `list_issues`, `get_issue` | Lists issues and reads one with its comments | +| `create_issue` | Opens an issue | +| `list_pull_requests`, `get_pull_request` | Lists pull requests and reads one with its comments and diff | +| `create_pull_request` | Opens a pull request between two branches | +| `add_issue_comment` | Comments on an issue or pull request | +| `web_search` | Searches the web | + +`create_issue`, `create_pull_request` and `add_issue_comment` change things on sigit.si. The +other tools only read. + +## Your data + +The tools read and write data in your siGit account on sigit.si. What they return is sent to +Claude and handled under Anthropic's terms. `web_search` sends your search query to Brave +Search, which returns the results; Brave does not receive your account details. siGit keeps +your repositories, issues and pull requests until you delete them or your account. The +[siGit privacy policy](https://sigit.si/privacy) covers all of this in full, and questions +about your data go to privacy@sigit.si. + +## License + +Apache-2.0