Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mkpcphc9ZEjNpw867crpNF
53 lines
2.5 KiB
Markdown
53 lines
2.5 KiB
Markdown
# soloma-kb-plugin
|
|
|
|
Claude Code plugin for the Soloma drone knowledge base. Internal use only.
|
|
|
|
Adds two MCP servers and one skill:
|
|
|
|
| Server | Endpoint | Purpose | Authentik group |
|
|
|---|---|---|---|
|
|
| `drone-kb` | `https://kb-mcp.soloma.ai/mcp` | Search the approved corpus | `kb-users` |
|
|
| `drone-kb-scribe` | `https://kb-mcp.soloma.ai/inbox/mcp` | Submit sources for ingestion | `kb-writers` |
|
|
|
|
## Install
|
|
|
|
You need read access to this repository, membership of **both** Authentik groups (`kb-users` and `kb-writers`), and a Gitea access token. No SSH key is required.
|
|
|
|
**1. Create a token** in Gitea: avatar → *Settings* → *Applications* → *Generate New Token*. Name it `claude-plugin` and grant repository **read** only. Copy it now; Gitea shows it once.
|
|
|
|
**2. Let git remember it (once).** Claude Code runs git without prompting, so the token must already be stored. Make sure a credential helper is configured (macOS: `git config --global credential.helper osxkeychain`; Windows: Git Credential Manager is the default; Linux: `libsecret` or `store`), then run:
|
|
|
|
```
|
|
git ls-remote https://git.soloma.ai/soloma-core/soloma-kb-plugin.git
|
|
```
|
|
|
|
Enter your Gitea username and paste the token as the password. A list of refs means it worked and is now saved.
|
|
|
|
**3. Add the plugin**, in Claude Code:
|
|
|
|
```
|
|
/plugin marketplace add https://git.soloma.ai/soloma-core/soloma-kb-plugin.git
|
|
/plugin install soloma-kb-plugin@soloma-internal
|
|
```
|
|
|
|
Restart Claude Code, then see *First sign-in* below.
|
|
|
|
*If you already use SSH keys with Gitea:* set `Port 2222` under `Host git.soloma.ai` in `~/.ssh/config` and use `git@git.soloma.ai:soloma-core/soloma-kb-plugin.git` instead. Claude Code does not accept `ssh://` URLs.
|
|
|
|
**Token expired or revoked?** Marketplace updates fail with an authentication error. Create a new token and repeat step 2.
|
|
|
|
## First sign-in
|
|
|
|
Each server signs in separately (Claude Code keeps one token per server). Run `/mcp`, authenticate `drone-kb`, then `drone-kb-scribe`. Both use the same Authentik provider, so the second sign-in should finish without asking for credentials again.
|
|
|
|
Both servers use OAuth callback port **8127**: finish one sign-in before starting the other.
|
|
|
|
If you added either server by hand before (`claude mcp add ... drone-kb`), remove it first to avoid duplicates:
|
|
|
|
```
|
|
claude mcp remove drone-kb -s user
|
|
claude mcp remove drone-kb-scribe -s user # or the old name, kb-scribe-live
|
|
```
|
|
|
|
The OAuth `clientId` in `.mcp.json` identifies the public `kb-mcp-agent` client (PKCE, no secret). Access is enforced by Authentik group membership, not by that value.
|