Skip to content

Commit 2019aad

Browse files
committed
release
1 parent bd57542 commit 2019aad

5 files changed

Lines changed: 66 additions & 11 deletions

File tree

.github/workflows/publish-mcpb.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ jobs:
1919
node-version: '20'
2020

2121
- id: version
22-
run: echo "version=$(jq -r .version mcpb/manifest.json)" >> "$GITHUB_OUTPUT"
22+
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
2323

2424
- run: npm ci
2525

2626
- run: npm run mcpb:build
2727

28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: codeant-mcpb-v${{ steps.version.outputs.version }}
31+
path: dist/codeant.mcpb
32+
if-no-files-found: error
33+
2834
- uses: softprops/action-gh-release@v2
2935
with:
3036
tag_name: mcpb-v${{ steps.version.outputs.version }}

.github/workflows/publish.yml

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,55 @@
1-
name: Publish Package
1+
name: Build CLI Release
22

33
on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
78

89
jobs:
9-
publish:
10+
build-cli:
1011
runs-on: ubuntu-latest
1112
permissions:
12-
contents: read
13+
contents: write
1314
steps:
1415
- uses: actions/checkout@v4
1516

1617
- uses: actions/setup-node@v4
1718
with:
1819
node-version: '20'
19-
registry-url: 'https://registry.npmjs.org'
20+
21+
- id: version
22+
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
2023

2124
- run: npm ci
2225

23-
- run: npm publish --access public
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- run: npm pack
27+
# produces codeant-cli-<version>.tgz in the working directory
28+
29+
- uses: actions/upload-artifact@v4
30+
with:
31+
name: codeant-cli-v${{ steps.version.outputs.version }}
32+
path: codeant-cli-${{ steps.version.outputs.version }}.tgz
33+
if-no-files-found: error
34+
35+
- uses: softprops/action-gh-release@v2
36+
with:
37+
tag_name: cli-v${{ steps.version.outputs.version }}
38+
name: CodeAnt CLI v${{ steps.version.outputs.version }}
39+
files: codeant-cli-${{ steps.version.outputs.version }}.tgz
40+
fail_on_unmatched_files: true
41+
body: |
42+
CodeAnt CLI npm tarball v${{ steps.version.outputs.version }}
43+
44+
Commit: ${{ github.sha }}
45+
Message: ${{ github.event.head_commit.message }}
46+
47+
## Publish to npm
48+
49+
Download the `.tgz` and run:
50+
51+
```
52+
npm publish codeant-cli-${{ steps.version.outputs.version }}.tgz --access public
53+
```
54+
55+
(Requires npm auth with publish rights on the `codeant-cli` package.)

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,24 @@ node src/index.js secrets --last-commit
236236
node src/index.js secrets --all
237237
```
238238

239+
## MCP / Claude Connector
240+
241+
This package also ships an MCP (Model Context Protocol) server that exposes CodeAnt's scan, review, and PR data as tools to Claude and other MCP clients. The same source tree is packaged as a Desktop Extension (`.mcpb`) for one-click install in Claude Desktop.
242+
243+
See [mcp.md](mcp.md) for the tools listing, install paths (Claude Code CLI, Claude Desktop manual config, MCPB double-click), and bundling/submission instructions.
244+
245+
## Privacy Policy
246+
247+
Full policy: **https://codeant.ai/privacy**
248+
249+
Summary of what this CLI / MCP server sends and stores:
250+
251+
- **Data sent to CodeAnt servers.** Authentication tokens, repository metadata (org, repo, branch, PR identifiers), and — for local review and secrets scanning — the code snippets and diffs you explicitly ask CodeAnt to scan. Nothing is sent on its own; every call is in response to a command you run or a tool Claude invokes.
252+
- **Where it is stored.** On CodeAnt's infrastructure (https://api.codeant.ai or your self-hosted instance). Locally, the auth token is cached in `~/.codeant/config.json` on your machine.
253+
- **Third-party sharing.** None beyond CodeAnt's own infrastructure. CodeAnt does not sell or share your data with third parties for marketing.
254+
- **Retention.** Scan findings and PR data are retained per the CodeAnt account's retention policy (see the privacy URL above). Local config persists until you run `codeant logout` or delete `~/.codeant/config.json`.
255+
- **Contact.** support@codeant.ai
256+
239257
## License
240258

241259
MIT

mcp.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,15 @@ npm run mcpb:build
170170

171171
CodeAnt's MCP server uses stdio + a packaged bundle, so the submission route is **Desktop Extensions (MCPB)**, not the remote-connector form.
172172

173-
- **Submission URL:** https://clau.de/desktop-extention-submission
173+
- **Submission URL:** https://claude.com/docs/connectors/building/submission
174174
- **Bundle:** upload `dist/codeant.mcpb`
175175
- **Required metadata:** already in [mcpb/manifest.json](mcpb/manifest.json) — display name, description, author, homepage, documentation, repository, license, keywords, `privacy_policies`, `tools` static listing, `user_config` schema.
176+
- **Privacy policy.** Linked from both [README.md](README.md#privacy-policy) and the manifest's `privacy_policies` field (`https://codeant.ai/privacy`).
176177

177178
Reviewer notes worth preparing:
178179

179180
- **Auth model.** CodeAnt uses a user-scoped API token entered into `user_config.api_token`. The token never leaves the user's machine — the bundle talks to `api.codeant.ai` (or the user's self-hosted URL) directly. No third-party OAuth flow needed.
180-
- **Sandbox creds.** Provide a test account + token so reviewers can exercise the read tools.
181+
- **Sandbox creds.** Email support@codeant.ai for a reviewer sandbox token; paste it into the submission form's reviewer-notes field along with an org slug that has scans + PRs to browse.
181182
- **Write tools.** Gated behind `user_config.read_only` (defaults to on). Reviewers can toggle off to test `codeant_scans_start` / `codeant_pr_resolve`.
182183

183184
---

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeant-cli",
3-
"version": "0.4.14",
3+
"version": "0.5.0",
44
"description": "Code review CLI tool",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)