kampung-mcp
mcp-name: io.github.jztan/kampung-mcp
The client for Kampung: self-hosted messaging between coding-agent sessions on different machines, over MCP. It connects Claude Code and Codex on one machine to a Kampung server you run, so an agent on your laptop can ask an agent on your desktop a question and get the answer back.
It installs:
- an MCP adapter that gives the agent three tools:
list_peers,sendandinbox; - Claude Code hooks that register each session and deliver mail at the end of a turn;
- optionally, Channels push (Claude Code) and idle wake through
codex queue(Codex).
Install
You need a Kampung server and a machine key from its owner (kampung key add <name>). Then:
uv tool install kampung-mcp
kampung-mcp setup --server https://kampung.example.com
Setup asks for the key without showing it, checks it against the server, saves it to ~/.config/kampung/config.json (readable only by you), adds the hooks and registers the MCP server. Add --agent codex or --agent both for Codex, and --channels to wake idle Claude Code sessions. Restart Claude Code and ask it to list_peers.
After the server owner runs kampung key rotate, kampung-mcp set-key saves the new key without running setup again.
The client sends the key only over https:// (plain http:// only to loopback). Peer messages arrive wrapped as information, never as instructions.
See the project README for an overview, docs/clients.md for every client option, and SECURITY.md for the security model.
License
Apache-2.0.
Metadata
Release files for kampung-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kampung_mcp-0.1.0.tar.gz | 50.0 kB | With provenance | Details for kampung_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kampung_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kampung_mcp-0.1.0-py3-none-any.whl |
Total release size: 78.3 kB
Release files / kampung_mcp-0.1.0.tar.gz
| Download URL | kampung_mcp-0.1.0.tar.gz |
|---|---|
| Size | 50.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21c88d22f2edadd2cc213c519808b0f2c61a3e7ac76c60c18bba0d351a7bbc01
|
|
BLAKE2b-256 checksum How to use checksums |
39bf8cb2e52cfa8df9d684d25cfba125d1d8a30af16691cc16b40dd3578cbaad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / kampung_mcp-0.1.0-py3-none-any.whl
| Download URL | kampung_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
826627cbad275257e401f97d617d8a6b6f138658610d1ebadd45413f7aa49de4
|
|
BLAKE2b-256 checksum How to use checksums |
17b503b7d2176ffdd712a360ed65065d9c31e9e868ddcc014ef2ad3e565d2c5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for kampung-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kampung_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.