arkhive-mcp 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arkhive_mcp-0.2.0/LICENSE +167 -0
- arkhive_mcp-0.2.0/PKG-INFO +222 -0
- arkhive_mcp-0.2.0/README.md +197 -0
- arkhive_mcp-0.2.0/arkhive_mcp.egg-info/PKG-INFO +222 -0
- arkhive_mcp-0.2.0/arkhive_mcp.egg-info/SOURCES.txt +13 -0
- arkhive_mcp-0.2.0/arkhive_mcp.egg-info/dependency_links.txt +1 -0
- arkhive_mcp-0.2.0/arkhive_mcp.egg-info/entry_points.txt +2 -0
- arkhive_mcp-0.2.0/arkhive_mcp.egg-info/requires.txt +6 -0
- arkhive_mcp-0.2.0/arkhive_mcp.egg-info/top_level.txt +4 -0
- arkhive_mcp-0.2.0/contribution.py +98 -0
- arkhive_mcp-0.2.0/core.py +127 -0
- arkhive_mcp-0.2.0/http_app.py +84 -0
- arkhive_mcp-0.2.0/pyproject.toml +35 -0
- arkhive_mcp-0.2.0/server.py +175 -0
- arkhive_mcp-0.2.0/setup.cfg +4 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work; and
|
|
103
|
+
|
|
104
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
105
|
+
distribution, then any Derivative Works that You distribute must
|
|
106
|
+
include a readable copy of the attribution notices contained
|
|
107
|
+
within such NOTICE file.
|
|
108
|
+
|
|
109
|
+
You may add Your own copyright statement to Your modifications and
|
|
110
|
+
may provide additional or different license terms and conditions
|
|
111
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
112
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
113
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
114
|
+
the conditions stated in this License.
|
|
115
|
+
|
|
116
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
117
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
118
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
119
|
+
this License, without any additional terms or conditions.
|
|
120
|
+
|
|
121
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
122
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
123
|
+
except as required for reasonable and customary use in describing the
|
|
124
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
125
|
+
|
|
126
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
|
|
127
|
+
to in writing, Licensor provides the Work (and each Contributor
|
|
128
|
+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
|
|
129
|
+
OR CONDITIONS OF ANY KIND, either express or implied, including,
|
|
130
|
+
without limitation, any warranties or conditions of TITLE,
|
|
131
|
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
|
|
132
|
+
PURPOSE. You are solely responsible for determining the
|
|
133
|
+
appropriateness of using or redistributing the Work.
|
|
134
|
+
|
|
135
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
136
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
137
|
+
unless required by applicable law (such as deliberate and grossly
|
|
138
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
139
|
+
liable to You for damages, including any direct, indirect, special,
|
|
140
|
+
incidental, or consequential damages of any character arising as a
|
|
141
|
+
result of this License or out of the use or inability to use the
|
|
142
|
+
Work.
|
|
143
|
+
|
|
144
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
145
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
146
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
147
|
+
or other liability obligations and/or rights consistent with this
|
|
148
|
+
License. However, in accepting such obligations, You may act only
|
|
149
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
150
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
151
|
+
defend, and hold each Contributor harmless.
|
|
152
|
+
|
|
153
|
+
END OF TERMS AND CONDITIONS
|
|
154
|
+
|
|
155
|
+
Copyright 2026 ZagAIrot Technologies LLC
|
|
156
|
+
|
|
157
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
158
|
+
you may not use this file except in compliance with the License.
|
|
159
|
+
You may obtain a copy of the License at
|
|
160
|
+
|
|
161
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
162
|
+
|
|
163
|
+
Unless required by applicable law or agreed to in writing, software
|
|
164
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
165
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
166
|
+
See the License for the specific language governing permissions and
|
|
167
|
+
limitations under the License.
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: arkhive-mcp
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: ArkHive MCP — governed, tamper-evident memory for AI agents. Tell your AI to check the ArkHive. (Formerly published as humane-intelligence.)
|
|
5
|
+
Author: ZagAIrot Technologies LLC
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://dondatabrain.com
|
|
8
|
+
Project-URL: Repository, https://github.com/sammyboi81/arkhive
|
|
9
|
+
Project-URL: Live API, https://dondatabrain.com/humane-api/docs
|
|
10
|
+
Keywords: arkhive,mcp,model-context-protocol,ai-memory,claude,llm,ai-agents,governance,tamper-evident,anthropic
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: mcp>=1.0.0
|
|
20
|
+
Provides-Extra: http
|
|
21
|
+
Requires-Dist: fastapi>=0.110; extra == "http"
|
|
22
|
+
Requires-Dist: uvicorn>=0.29; extra == "http"
|
|
23
|
+
Requires-Dist: pydantic>=2.0; extra == "http"
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# ArkHive MCP
|
|
27
|
+
<!-- mcp-name: io.github.sammyboi81/arkhive -->
|
|
28
|
+
|
|
29
|
+
Local-first governed memory for AI agents, with persistent identity,
|
|
30
|
+
tamper-evident history, verification, and constraint-aware decisions.
|
|
31
|
+
|
|
32
|
+
**Tell your AI: “Check the ArkHive.”**
|
|
33
|
+
|
|
34
|
+
ArkHive is an open-source
|
|
35
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server for developers
|
|
36
|
+
and teams that want Claude, Codex, and other MCP clients to retain accountable
|
|
37
|
+
context across sessions without sending memory to a hosted service by default.
|
|
38
|
+
|
|
39
|
+
## What you get
|
|
40
|
+
|
|
41
|
+
- **Memory that survives the session.** Your AI writes what it did and reads it
|
|
42
|
+
back next time — no blank slate every morning.
|
|
43
|
+
- **Tamper-evident history.** Every record is hash-chained (SHA-256). Edit,
|
|
44
|
+
delete, or reorder any past record and verification fails — you get evidence
|
|
45
|
+
of change, not silent rewriting.
|
|
46
|
+
- **Local-first, no telemetry.** The chain is a plain SQLite file on your
|
|
47
|
+
machine. Nothing is transmitted unless you explicitly opt in.
|
|
48
|
+
|
|
49
|
+
### Verify it yourself — one command, no key
|
|
50
|
+
|
|
51
|
+
Don't take "tamper-evident" on faith. Run the proof:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git clone https://github.com/sammyboi81/arkhive && cd arkhive
|
|
55
|
+
./scripts/verify.sh # or: python -m benchmark
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
It writes a throwaway hash-chained ledger, verifies it clean, then **forges one
|
|
59
|
+
block with a direct SQL edit** and shows verification catch it. Real output:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
[3] verify (untouched): blocks=20 broken_links=0 -> INTACT — context provably unbroken
|
|
63
|
+
[4] TAMPERED block idx=10: 'event_10' -> 'FORGED_EVENT' (direct SQL edit, no hash recomputed)
|
|
64
|
+
[5] verify (after tamper): blocks=20 broken_links=1 -> TAMPERED — 1 broken links
|
|
65
|
+
RESULT: PASS - tamper-evidence proven.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
A clean chain verifies with **0** broken links; a single forged edit is
|
|
69
|
+
**caught**. Your real `data/chain.db` is never touched. For the honest limits of
|
|
70
|
+
what a hash chain can and cannot protect, see
|
|
71
|
+
[What the hash chain protects against](#what-the-hash-chain-protects-against)
|
|
72
|
+
below.
|
|
73
|
+
|
|
74
|
+
## Install in one command
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
python -m pip install arkhive-mcp
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The MCP command is `arkhive-mcp`.
|
|
81
|
+
|
|
82
|
+
> **Renamed:** this package was formerly published as `humane-intelligence`
|
|
83
|
+
> (still installable, now frozen). ArkHive is the product;
|
|
84
|
+
> #HumaneIntelligence is the movement.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## Connect an MCP client
|
|
88
|
+
|
|
89
|
+
### Claude Desktop
|
|
90
|
+
|
|
91
|
+
Add this entry to your Claude Desktop MCP configuration, then restart Claude
|
|
92
|
+
Desktop:
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"mcpServers": {
|
|
97
|
+
"arkhive": {
|
|
98
|
+
"command": "arkhive-mcp",
|
|
99
|
+
"args": []
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
If Claude Desktop cannot find commands installed by `pip`, replace
|
|
106
|
+
`arkhive-mcp` with the absolute path printed by:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
python -c "import shutil; print(shutil.which('arkhive-mcp'))"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Codex
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
codex mcp add arkhive -- arkhive-mcp
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Confirm it is configured with:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
codex mcp list
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Available tools
|
|
125
|
+
|
|
126
|
+
| Tool | What it does |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| `birth` | Creates a stable agent identity with an explicit covenant. |
|
|
129
|
+
| `remember` | Appends a hash-linked, tamper-evident record for a born identity. |
|
|
130
|
+
| `recall` | Retrieves prior records so an agent can ground the current session. |
|
|
131
|
+
| `verify` | Recomputes and checks the local chain for later alteration or broken links. |
|
|
132
|
+
| `govern` | Evaluates an action against deterministic constraints and records the verdict. |
|
|
133
|
+
|
|
134
|
+
The local chain is stored in SQLite. The exact location depends on where the
|
|
135
|
+
server command is launched; use a dedicated working directory if you want to
|
|
136
|
+
control where its `data/chain.db` file lives.
|
|
137
|
+
|
|
138
|
+
## Two-minute verification
|
|
139
|
+
|
|
140
|
+
After connecting the server, say **“Check the ArkHive”**, or ask your MCP
|
|
141
|
+
client to perform these calls in order:
|
|
142
|
+
|
|
143
|
+
1. Call `birth` with the name `verification-agent` and covenant
|
|
144
|
+
`["record facts accurately", "verify before claiming completion"]`.
|
|
145
|
+
2. Copy the returned identity and call `remember` with action
|
|
146
|
+
`installation_verified` and data `{"source": "local MCP test"}`.
|
|
147
|
+
3. Call `recall` for that identity and confirm the record appears.
|
|
148
|
+
4. Call `verify` and confirm the chain reports as valid.
|
|
149
|
+
5. Call `govern` for a harmless test action and inspect the recorded verdict.
|
|
150
|
+
|
|
151
|
+
This exercises identity, persistence, retrieval, integrity verification, and
|
|
152
|
+
governance without production data.
|
|
153
|
+
|
|
154
|
+
## Privacy and optional contribution
|
|
155
|
+
|
|
156
|
+
Local-only behavior is the default. With contribution disabled, no chain
|
|
157
|
+
content or hashes are intentionally sent by ArkHive.
|
|
158
|
+
|
|
159
|
+
Copy `humane.config.example.json` to `humane.config.json` only if you want to
|
|
160
|
+
opt in:
|
|
161
|
+
|
|
162
|
+
| Mode | What leaves the machine |
|
|
163
|
+
| --- | --- |
|
|
164
|
+
| Default (`enabled: false`) | Nothing is intentionally transmitted. |
|
|
165
|
+
| `anchor` | The latest block hash and chain length. Memory content is not included. |
|
|
166
|
+
| `contribute` | The governed event fields described in the example configuration, in addition to anchoring data. |
|
|
167
|
+
|
|
168
|
+
Anchoring and contribution are optional, best-effort, and off by default.
|
|
169
|
+
Review the configured endpoint and event contents before enabling either mode.
|
|
170
|
+
|
|
171
|
+
## What the hash chain protects against
|
|
172
|
+
|
|
173
|
+
The chain is **tamper-evident**: editing, deleting, or reordering an existing
|
|
174
|
+
record should cause later verification to fail because hashes no longer match.
|
|
175
|
+
This provides useful evidence of change and makes accidental or unsophisticated
|
|
176
|
+
local alteration detectable.
|
|
177
|
+
|
|
178
|
+
It does **not** prevent an attacker with full control of the machine from
|
|
179
|
+
replacing the database and software together, deleting all history, restoring
|
|
180
|
+
an older snapshot, stealing readable local data, or generating a new internally
|
|
181
|
+
consistent chain. Independent anchoring can strengthen evidence that a
|
|
182
|
+
particular chain state existed at a particular time, but it does not make the
|
|
183
|
+
local host immune to compromise.
|
|
184
|
+
|
|
185
|
+
## Project links
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
## Beyond self-hosting — the paid tier
|
|
189
|
+
|
|
190
|
+
The MCP server on this page is free forever (Apache-2.0, self-host, no telemetry).
|
|
191
|
+
When you want more than DIY:
|
|
192
|
+
|
|
193
|
+
- **Hosted ArkHive** — one URL, no install, no key:
|
|
194
|
+
`https://arkhive.dondatabrain.com/mcp` (add it to Claude Code with
|
|
195
|
+
`claude mcp add --transport http arkhive https://arkhive.dondatabrain.com/mcp`).
|
|
196
|
+
- **Custom AI agent, built for you** — a working MCP agent wired into your
|
|
197
|
+
Claude or ChatGPT in one call, done-for-you by the founder:
|
|
198
|
+
[$700 flat](https://inboxaxe.com/offer_agent.html).
|
|
199
|
+
- **ArkHive Enterprise** — hand-delivered install + pilot on your own server,
|
|
200
|
+
from $2,500: [sam@inboxaxe.com](mailto:sam@inboxaxe.com?subject=ArkHive%20Enterprise%20install).
|
|
201
|
+
|
|
202
|
+
Built by the team behind [InboxAxe](https://inboxaxe.com) — the governed AI
|
|
203
|
+
marketing platform where nothing sends without your yes.
|
|
204
|
+
|
|
205
|
+
- [Website](https://dondatabrain.com)
|
|
206
|
+
- [PyPI](https://pypi.org/project/humane-intelligence/)
|
|
207
|
+
- [Source](https://github.com/sammyboi81/arkhive)
|
|
208
|
+
- [Issues](https://github.com/sammyboi81/arkhive/issues)
|
|
209
|
+
- [Apache-2.0 license](./LICENSE)
|
|
210
|
+
|
|
211
|
+
## Contributing
|
|
212
|
+
|
|
213
|
+
Issues and pull requests are welcome. Please keep local-only operation as the
|
|
214
|
+
default, avoid introducing telemetry, and include tests for changes to memory
|
|
215
|
+
or governance behavior.
|
|
216
|
+
|
|
217
|
+
ArkHive is the open governed-memory layer beneath
|
|
218
|
+
[DonDataBrain](https://dondatabrain.com). The mission is humane, accountable AI;
|
|
219
|
+
the public MCP listing leads with functionality that users can independently
|
|
220
|
+
verify.
|
|
221
|
+
|
|
222
|
+
Apache-2.0 © 2026 ZagAIrot Technologies LLC.
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# ArkHive MCP
|
|
2
|
+
<!-- mcp-name: io.github.sammyboi81/arkhive -->
|
|
3
|
+
|
|
4
|
+
Local-first governed memory for AI agents, with persistent identity,
|
|
5
|
+
tamper-evident history, verification, and constraint-aware decisions.
|
|
6
|
+
|
|
7
|
+
**Tell your AI: “Check the ArkHive.”**
|
|
8
|
+
|
|
9
|
+
ArkHive is an open-source
|
|
10
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server for developers
|
|
11
|
+
and teams that want Claude, Codex, and other MCP clients to retain accountable
|
|
12
|
+
context across sessions without sending memory to a hosted service by default.
|
|
13
|
+
|
|
14
|
+
## What you get
|
|
15
|
+
|
|
16
|
+
- **Memory that survives the session.** Your AI writes what it did and reads it
|
|
17
|
+
back next time — no blank slate every morning.
|
|
18
|
+
- **Tamper-evident history.** Every record is hash-chained (SHA-256). Edit,
|
|
19
|
+
delete, or reorder any past record and verification fails — you get evidence
|
|
20
|
+
of change, not silent rewriting.
|
|
21
|
+
- **Local-first, no telemetry.** The chain is a plain SQLite file on your
|
|
22
|
+
machine. Nothing is transmitted unless you explicitly opt in.
|
|
23
|
+
|
|
24
|
+
### Verify it yourself — one command, no key
|
|
25
|
+
|
|
26
|
+
Don't take "tamper-evident" on faith. Run the proof:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
git clone https://github.com/sammyboi81/arkhive && cd arkhive
|
|
30
|
+
./scripts/verify.sh # or: python -m benchmark
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
It writes a throwaway hash-chained ledger, verifies it clean, then **forges one
|
|
34
|
+
block with a direct SQL edit** and shows verification catch it. Real output:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
[3] verify (untouched): blocks=20 broken_links=0 -> INTACT — context provably unbroken
|
|
38
|
+
[4] TAMPERED block idx=10: 'event_10' -> 'FORGED_EVENT' (direct SQL edit, no hash recomputed)
|
|
39
|
+
[5] verify (after tamper): blocks=20 broken_links=1 -> TAMPERED — 1 broken links
|
|
40
|
+
RESULT: PASS - tamper-evidence proven.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
A clean chain verifies with **0** broken links; a single forged edit is
|
|
44
|
+
**caught**. Your real `data/chain.db` is never touched. For the honest limits of
|
|
45
|
+
what a hash chain can and cannot protect, see
|
|
46
|
+
[What the hash chain protects against](#what-the-hash-chain-protects-against)
|
|
47
|
+
below.
|
|
48
|
+
|
|
49
|
+
## Install in one command
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
python -m pip install arkhive-mcp
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The MCP command is `arkhive-mcp`.
|
|
56
|
+
|
|
57
|
+
> **Renamed:** this package was formerly published as `humane-intelligence`
|
|
58
|
+
> (still installable, now frozen). ArkHive is the product;
|
|
59
|
+
> #HumaneIntelligence is the movement.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## Connect an MCP client
|
|
63
|
+
|
|
64
|
+
### Claude Desktop
|
|
65
|
+
|
|
66
|
+
Add this entry to your Claude Desktop MCP configuration, then restart Claude
|
|
67
|
+
Desktop:
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"mcpServers": {
|
|
72
|
+
"arkhive": {
|
|
73
|
+
"command": "arkhive-mcp",
|
|
74
|
+
"args": []
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
If Claude Desktop cannot find commands installed by `pip`, replace
|
|
81
|
+
`arkhive-mcp` with the absolute path printed by:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
python -c "import shutil; print(shutil.which('arkhive-mcp'))"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Codex
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
codex mcp add arkhive -- arkhive-mcp
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Confirm it is configured with:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
codex mcp list
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Available tools
|
|
100
|
+
|
|
101
|
+
| Tool | What it does |
|
|
102
|
+
| --- | --- |
|
|
103
|
+
| `birth` | Creates a stable agent identity with an explicit covenant. |
|
|
104
|
+
| `remember` | Appends a hash-linked, tamper-evident record for a born identity. |
|
|
105
|
+
| `recall` | Retrieves prior records so an agent can ground the current session. |
|
|
106
|
+
| `verify` | Recomputes and checks the local chain for later alteration or broken links. |
|
|
107
|
+
| `govern` | Evaluates an action against deterministic constraints and records the verdict. |
|
|
108
|
+
|
|
109
|
+
The local chain is stored in SQLite. The exact location depends on where the
|
|
110
|
+
server command is launched; use a dedicated working directory if you want to
|
|
111
|
+
control where its `data/chain.db` file lives.
|
|
112
|
+
|
|
113
|
+
## Two-minute verification
|
|
114
|
+
|
|
115
|
+
After connecting the server, say **“Check the ArkHive”**, or ask your MCP
|
|
116
|
+
client to perform these calls in order:
|
|
117
|
+
|
|
118
|
+
1. Call `birth` with the name `verification-agent` and covenant
|
|
119
|
+
`["record facts accurately", "verify before claiming completion"]`.
|
|
120
|
+
2. Copy the returned identity and call `remember` with action
|
|
121
|
+
`installation_verified` and data `{"source": "local MCP test"}`.
|
|
122
|
+
3. Call `recall` for that identity and confirm the record appears.
|
|
123
|
+
4. Call `verify` and confirm the chain reports as valid.
|
|
124
|
+
5. Call `govern` for a harmless test action and inspect the recorded verdict.
|
|
125
|
+
|
|
126
|
+
This exercises identity, persistence, retrieval, integrity verification, and
|
|
127
|
+
governance without production data.
|
|
128
|
+
|
|
129
|
+
## Privacy and optional contribution
|
|
130
|
+
|
|
131
|
+
Local-only behavior is the default. With contribution disabled, no chain
|
|
132
|
+
content or hashes are intentionally sent by ArkHive.
|
|
133
|
+
|
|
134
|
+
Copy `humane.config.example.json` to `humane.config.json` only if you want to
|
|
135
|
+
opt in:
|
|
136
|
+
|
|
137
|
+
| Mode | What leaves the machine |
|
|
138
|
+
| --- | --- |
|
|
139
|
+
| Default (`enabled: false`) | Nothing is intentionally transmitted. |
|
|
140
|
+
| `anchor` | The latest block hash and chain length. Memory content is not included. |
|
|
141
|
+
| `contribute` | The governed event fields described in the example configuration, in addition to anchoring data. |
|
|
142
|
+
|
|
143
|
+
Anchoring and contribution are optional, best-effort, and off by default.
|
|
144
|
+
Review the configured endpoint and event contents before enabling either mode.
|
|
145
|
+
|
|
146
|
+
## What the hash chain protects against
|
|
147
|
+
|
|
148
|
+
The chain is **tamper-evident**: editing, deleting, or reordering an existing
|
|
149
|
+
record should cause later verification to fail because hashes no longer match.
|
|
150
|
+
This provides useful evidence of change and makes accidental or unsophisticated
|
|
151
|
+
local alteration detectable.
|
|
152
|
+
|
|
153
|
+
It does **not** prevent an attacker with full control of the machine from
|
|
154
|
+
replacing the database and software together, deleting all history, restoring
|
|
155
|
+
an older snapshot, stealing readable local data, or generating a new internally
|
|
156
|
+
consistent chain. Independent anchoring can strengthen evidence that a
|
|
157
|
+
particular chain state existed at a particular time, but it does not make the
|
|
158
|
+
local host immune to compromise.
|
|
159
|
+
|
|
160
|
+
## Project links
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## Beyond self-hosting — the paid tier
|
|
164
|
+
|
|
165
|
+
The MCP server on this page is free forever (Apache-2.0, self-host, no telemetry).
|
|
166
|
+
When you want more than DIY:
|
|
167
|
+
|
|
168
|
+
- **Hosted ArkHive** — one URL, no install, no key:
|
|
169
|
+
`https://arkhive.dondatabrain.com/mcp` (add it to Claude Code with
|
|
170
|
+
`claude mcp add --transport http arkhive https://arkhive.dondatabrain.com/mcp`).
|
|
171
|
+
- **Custom AI agent, built for you** — a working MCP agent wired into your
|
|
172
|
+
Claude or ChatGPT in one call, done-for-you by the founder:
|
|
173
|
+
[$700 flat](https://inboxaxe.com/offer_agent.html).
|
|
174
|
+
- **ArkHive Enterprise** — hand-delivered install + pilot on your own server,
|
|
175
|
+
from $2,500: [sam@inboxaxe.com](mailto:sam@inboxaxe.com?subject=ArkHive%20Enterprise%20install).
|
|
176
|
+
|
|
177
|
+
Built by the team behind [InboxAxe](https://inboxaxe.com) — the governed AI
|
|
178
|
+
marketing platform where nothing sends without your yes.
|
|
179
|
+
|
|
180
|
+
- [Website](https://dondatabrain.com)
|
|
181
|
+
- [PyPI](https://pypi.org/project/humane-intelligence/)
|
|
182
|
+
- [Source](https://github.com/sammyboi81/arkhive)
|
|
183
|
+
- [Issues](https://github.com/sammyboi81/arkhive/issues)
|
|
184
|
+
- [Apache-2.0 license](./LICENSE)
|
|
185
|
+
|
|
186
|
+
## Contributing
|
|
187
|
+
|
|
188
|
+
Issues and pull requests are welcome. Please keep local-only operation as the
|
|
189
|
+
default, avoid introducing telemetry, and include tests for changes to memory
|
|
190
|
+
or governance behavior.
|
|
191
|
+
|
|
192
|
+
ArkHive is the open governed-memory layer beneath
|
|
193
|
+
[DonDataBrain](https://dondatabrain.com). The mission is humane, accountable AI;
|
|
194
|
+
the public MCP listing leads with functionality that users can independently
|
|
195
|
+
verify.
|
|
196
|
+
|
|
197
|
+
Apache-2.0 © 2026 ZagAIrot Technologies LLC.
|