From fed2cfdc03e1cdc8d06db1ba73645d7911780e64 Mon Sep 17 00:00:00 2001 From: Angus Chiu Date: Fri, 16 Oct 2026 11:26:21 +0100 Subject: [PATCH] Add soloma-kb-plugin: drone-kb and drone-kb-scribe MCP servers Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Mkpcphc9ZEjNpw867crpNF --- .claude-plugin/marketplace.json | 14 +++++++++++++ .claude-plugin/plugin.json | 8 ++++++++ .mcp.json | 21 ++++++++++++++++++++ README.md | 34 ++++++++++++++++++++++++++++++++ skills/soloma-kb/SKILL.md | 35 +++++++++++++++++++++++++++++++++ 5 files changed, 112 insertions(+) create mode 100644 .claude-plugin/marketplace.json create mode 100644 .claude-plugin/plugin.json create mode 100644 .mcp.json create mode 100644 README.md create mode 100644 skills/soloma-kb/SKILL.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 0000000..c7d3f69 --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,14 @@ +{ + "name": "soloma-internal", + "description": "Soloma internal Claude Code plugins", + "owner": { + "name": "Soloma" + }, + "plugins": [ + { + "name": "soloma-kb-plugin", + "description": "Search and contribute to the Soloma drone knowledge base", + "source": "./" + } + ] +} diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..dfd1e0f --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,8 @@ +{ + "name": "soloma-kb-plugin", + "description": "Soloma drone knowledge base: search the approved corpus and submit sources for ingestion. Internal use; requires Authentik groups kb-users and kb-writers.", + "version": "0.1.0", + "author": { + "name": "Soloma" + } +} diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..d145ec3 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,21 @@ +{ + "mcpServers": { + "drone-kb": { + "type": "http", + "url": "https://kb-mcp.soloma.ai/mcp", + "oauth": { + "clientId": "DtLb7mB0iU0knxo9DoZDmMuvqAO8tyVv8okkWBfN", + "callbackPort": 8127, + "authServerMetadataUrl": "https://auth.soloma.ai/.well-known/oauth-authorization-server/application/o/kb-mcp-agent/" + } + }, + "drone-kb-scribe": { + "type": "http", + "url": "https://kb-mcp.soloma.ai/inbox/mcp", + "oauth": { + "clientId": "DtLb7mB0iU0knxo9DoZDmMuvqAO8tyVv8okkWBfN", + "callbackPort": 8127 + } + } + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..7f3911b --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# 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 + +``` +/plugin marketplace add ssh://git@git.soloma.ai:2222/soloma-core/soloma-kb-plugin.git +/plugin install soloma-kb-plugin@soloma-internal +``` + +You need read access to this repository and membership of **both** Authentik groups. + +## 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. diff --git a/skills/soloma-kb/SKILL.md b/skills/soloma-kb/SKILL.md new file mode 100644 index 0000000..46f7975 --- /dev/null +++ b/skills/soloma-kb/SKILL.md @@ -0,0 +1,35 @@ +--- +name: soloma-kb +description: Use when answering questions about Soloma drone operations from the knowledge base, or when the user wants to add a document, web page or note to it. Covers searching the approved corpus (drone-kb) and submitting sources (drone-kb-scribe). +--- + +# Soloma drone knowledge base + +Two MCP servers, one sign-in each (the second is usually silent): + +- `drone-kb` — read-only search over the **approved** corpus. +- `drone-kb-scribe` — submit material for ingestion (`submit`, `request_upload`). + +## Answering a question + +1. `query` the `approved` collection (lex + vec together works best). +2. Search results are excerpts, for discovery only. `get` or `multi_get` two or three **complete** Wiki pages; safety position, scope and applicability often sit outside the excerpt. +3. Check each page's applicability and provenance. Follow cited Sources when the evidence matters; Sources are provenance, not final guidance. +4. Say so when the evidence is insufficient. Nothing in this KB clears an aircraft to fly. + +Merged knowledge reaches search only after `kb-sync` pulls, exports and embeds it, a few minutes after a PR merge. + +## Submitting material + +Submitting provides a *source*, not a publication. Accepted bytes are stored durably, may be sent to an external AI service to draft Wiki pages **before** a human reviews the pull request, and nothing is published until a human merges that PR. + +Before any submit or upload: + +- Redact credentials, tokens, private keys and other secrets. The scanner is best-effort and cannot catch everything. +- Do not submit private or customer material you would not send to an external service. +- Use `request_upload` for files and large content; use `submit` for text. + +Receipts: + +- `accepted` with no holds — delivered to the Inbox; ingest drafts a PR on its next run (about every 30 minutes). +- `accepted` with holds (`secret_finding`, `incomplete_scan`, `replacement_review_required`) — **not** delivered. A reviewer must approve, replace or reject it over SSH. Tell the user it is waiting; do not resubmit to get around it.