confluence-knowledge (local MCP service)
Local companion service for the confluence-knowledge Copilot agent.
See ../../docs/confluence-knowledge.md for the full guide.
- GET-only
ConfluenceClient— non-GET raisesSecurityExceptionpre-flight. - Recursive subtree crawl (Cloud v2 + Data Center), resumable.
- Local embeddings (
all-MiniLM-L6-v2) + local reranker (ms-marco-MiniLM-L6-v2) — Apache-2.0, pinned inmodels.lock.json, never a cloud embedding call. - SQLite + FTS5 + vector-blob index under
.conf_knowledge_index/. - Credentials via OS keyring / env var / chmod-600
.conf_auth.json.
Dev
python3.11+ -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/python -m pytest # all offline — no network needed
.venv/bin/python -m ruff check src tests
Before every release, run the end-to-end smoke test. It spawns the real stdio server through the MCP client SDK and uses the real models against a fake Confluence on localhost, with simulated network latency:
.venv/bin/pip install -e '.[models]'
CONF_KNOWLEDGE_HOME=/tmp/ck/home .venv/bin/confluence-knowledge prepare-models
CONF_KNOWLEDGE_HOME=/tmp/ck/home .venv/bin/python scripts/e2e_smoke.py # ends with "E2E OK"
e2e_bootstrap.py goes further — it replays the agent's entire install flow
in a sandboxed $HOME (python discovery → venv → pip install from the
shipped dist/ bundle → models → credentials → register → the real server
over stdio → a full Q&A round-trip). Run it before every release:
CK_MODEL_CACHE=/tmp/ck/home/models .venv/bin/python scripts/e2e_bootstrap.py # "E2E BOOTSTRAP OK"
CLI
| Command | Purpose |
|---|---|
confluence-knowledge setup |
guided env/site/token setup (hidden input, keyring) |
confluence-knowledge prepare-models |
fetch pinned local models once |
confluence-knowledge doctor |
verify config + heartbeat + models |
confluence-knowledge serve |
run the stdio MCP server (what the IDE launches) |
confluence-knowledge clean |
delete the local index (~/.confluence-knowledge/work unless CONF_KNOWLEDGE_WORKDIR is set) |
Metadata
Release files for confluence-knowledge 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| confluence_knowledge-0.4.1.tar.gz | 40.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| confluence_knowledge-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.0 kB
Release files / confluence_knowledge-0.4.1.tar.gz
| Download URL | confluence_knowledge-0.4.1.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e97339e447d931b18d4a18096119a4c87d5fba39375ca2c86d155c1ddbb4d7c
|
|
BLAKE2b-256 checksum How to use checksums |
3df17f61be24a5b62cc01999e272aaee27c86f0df2e5b608e6dc3cfeebffd69d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / confluence_knowledge-0.4.1-py3-none-any.whl
| Download URL | confluence_knowledge-0.4.1-py3-none-any.whl |
|---|---|
| Size | 34.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dab74c6c3d495aab25d3b3c6525854d1e66913072f56b285da73a8d3680c9a6e
|
|
BLAKE2b-256 checksum How to use checksums |
67173ab50ebe01e73211bdd2afd8bd4482b9f06b47590e6009a55f8e962947e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|