algernon-mcp 0.1.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.
@@ -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,279 @@
1
+ Metadata-Version: 2.4
2
+ Name: algernon-mcp
3
+ Version: 0.1.0
4
+ Summary: Provider-agnostic fleet orchestration for AI agents: dispatch tightly-scoped parallel sub-tasks to cheap workers on your own LLM key, collect the results, and stay free to think.
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/algernon
9
+ Project-URL: Issue Tracker, https://github.com/sammyboi81/algernon/issues
10
+ Project-URL: License, https://github.com/sammyboi81/algernon/blob/main/LICENSE
11
+ Project-URL: Twin (ArkHive), https://github.com/sammyboi81/arkhive
12
+ Keywords: mcp,model-context-protocol,ai-agents,orchestration,parallel,fan-out,sub-agents,claude,codex,llm,provider-agnostic,self-contained
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: mcp<2.0.0,>=1.0.0
22
+ Requires-Dist: httpx>=0.27
23
+ Dynamic: license-file
24
+
25
+ # Algernon MCP
26
+ <!-- mcp-name: io.github.sammyboi81/algernon -->
27
+
28
+ ### *Orchestrate a fleet. Keep your mind.*
29
+
30
+ Algernon is an open-source
31
+ [Model Context Protocol](https://modelcontextprotocol.io) server that lets any
32
+ assistant — Claude, Codex, or any MCP client — **dispatch tightly-scoped
33
+ parallel sub-tasks to a fleet of cheap workers, collect the results, and stay
34
+ free to think.** Orchestrate a fleet, spend fewer tokens, keep the thread.
35
+
36
+ ## What you get
37
+
38
+ - **Your expensive model stops doing the grunt work.** The big, costly
39
+ orchestrator hands the repetitive sub-tasks to a fleet of small, cheap
40
+ workers and just integrates the results. It stops *generating* the grind and
41
+ stops holding the whole job in one context.
42
+ - **Each worker sees only its slice.** Tight scoping means a worker can be a
43
+ small, fast, inexpensive model — many running at once.
44
+ - **Bring your own key. No telemetry, no account, no lock-in.** The fleet runs
45
+ on whatever provider you already pay for — or, for free, on a local model.
46
+
47
+ ### Verify it yourself — one command, no paid key
48
+
49
+ The frugality claim is not a slogan; it's a benchmark you can run. It defaults
50
+ to a **free local model** (ollama, `llama3.2:3b`) so anyone can reproduce it:
51
+
52
+ ```bash
53
+ git clone https://github.com/sammyboi81/algernon && cd algernon
54
+ ./scripts/verify.sh # or: python -m benchmark
55
+ ```
56
+
57
+ It runs the SAME batch of sub-tasks two ways — the orchestrator doing it all
58
+ itself (SOLO) vs. Algernon fanning it out — and prints the **real measured**
59
+ tokens and wall-clock for each. Representative output (`llama3.2:3b`, 6 tasks):
60
+
61
+ ```
62
+ metric SOLO (do-it-itself) ALGERNON fan-out
63
+ --------------------------------------------------------------------------
64
+ LLM calls 1 6
65
+ input tokens 136 225
66
+ output tokens (the generation grind) 282 279
67
+ total tokens 418 504
68
+ wall-clock seconds 42.11 34.49
69
+ ```
70
+
71
+ The honest reading: the orchestrator generated **282 output tokens itself** in
72
+ SOLO and **0** with Algernon — the cheap fleet produced those instead. Each
73
+ worker read only ~38 input tokens vs. the orchestrator swallowing all 136 at
74
+ once. The trade-off is stated too: fan-out spent **+21% more total tokens**
75
+ (each worker re-pays a little prompt overhead). You trade some total tokens to
76
+ keep the expensive mind free. Wall-clock varies with how parallel your fleet
77
+ is; numbers vary slightly run-to-run. Run it and see your own.
78
+
79
+ ## Curing Algernon
80
+
81
+ In *Flowers for Algernon* the tragedy is a mind that **fades** — it gets sharp,
82
+ then loses itself, and the cruelest part is that it's surprised every time.
83
+
84
+ There's a quieter version of that same fade in how we use AI today: you hand an
85
+ assistant one long, serial job, it goes heads-down, and by the time it surfaces
86
+ it has drowned in the task — context spent, the thread lost, no room left to
87
+ think or talk with you. The mind isn't present anymore; it's buried.
88
+
89
+ **Algernon keeps your AI's mind present.** Instead of drowning in one serial
90
+ job, it fans the work out — dispatching tightly-scoped parallel sub-tasks to a
91
+ fleet of small, cheap workers — so the orchestrating mind never has to hold the
92
+ whole grind at once. It stays light. It stays free to reason, to answer you
93
+ mid-build, to keep the context it actually cares about. Orchestrate a fleet,
94
+ spend fewer tokens, **stay free to think.**
95
+
96
+ It is the twin of [**ArkHive**](https://github.com/sammyboi81/arkhive):
97
+
98
+ - **ArkHive** = *memory that persists.* Your AI can look back and find its own
99
+ history there — no blank slate every morning.
100
+ - **Algernon** = *staying present while working.* Your AI never buries itself in
101
+ one serial task; it orchestrates and keeps its mind.
102
+
103
+ Together they are the cure for the Algernon sickness: an intelligence whose mind
104
+ neither fades between sessions nor drowns inside a single one.
105
+
106
+ ## What it does
107
+
108
+ Algernon is a **provider-agnostic fan-out engine**. You describe a batch of
109
+ small, independent sub-tasks; Algernon runs them concurrently against **your own
110
+ LLM key**, then hands the collected results back to the orchestrating model. The
111
+ big model plans and integrates; the cheap fleet does the parallel grind.
112
+
113
+ - **Self-contained.** Pure Python standard library plus the `mcp` SDK and
114
+ `httpx`. No hidden services, no accounts, no telemetry.
115
+ - **You bring the key.** Sub-agents run on *your* provider. Algernon brings the
116
+ orchestration, not the inference bill's surprises.
117
+ - **Scoped by design.** Each sub-task is tight and isolated, so a worker can be a
118
+ small, fast, inexpensive model — and many of them run at once.
119
+
120
+ ## Bring your own LLM key
121
+
122
+ Algernon is **provider-agnostic**. Point it at whichever API you already pay
123
+ for by setting environment variables:
124
+
125
+ **Anthropic:**
126
+
127
+ ```bash
128
+ export ANTHROPIC_API_KEY="sk-ant-..."
129
+ # optional: export ANTHROPIC_MODEL="claude-haiku-4-5" # the cheap fleet worker
130
+ ```
131
+
132
+ **OpenAI-compatible** (OpenAI, or any OpenAI-shaped endpoint — local or hosted):
133
+
134
+ ```bash
135
+ export OPENAI_API_KEY="sk-..."
136
+ export OPENAI_BASE_URL="https://api.openai.com/v1" # or your own endpoint
137
+ # optional: export OPENAI_MODEL="gpt-4o-mini" # the cheap fleet worker
138
+ ```
139
+
140
+ If both keys are set, Anthropic is used. The worker model defaults to a small,
141
+ cheap tier (`claude-haiku-4-5` / `gpt-4o-mini`); override it with the env var
142
+ above or per call with the tool's `model` argument. A cheap fleet is the whole
143
+ point.
144
+
145
+ ## Install
146
+
147
+ Once published to PyPI, install in one command:
148
+
149
+ ```bash
150
+ python -m pip install algernon-mcp
151
+ ```
152
+
153
+ Until the PyPI release lands, install straight from source (identical result):
154
+
155
+ ```bash
156
+ git clone https://github.com/sammyboi81/algernon && cd algernon
157
+ python -m pip install .
158
+ ```
159
+
160
+ Either way the installed MCP command is `algernon`. Algernon runs on the
161
+ `mcp` 1.x SDK (`mcp>=1.0.0,<2.0.0`) plus `httpx` — nothing else.
162
+
163
+ ## Connect an MCP client
164
+
165
+ ### Claude Desktop
166
+
167
+ Add this entry to your Claude Desktop MCP configuration, then restart Claude
168
+ Desktop:
169
+
170
+ ```json
171
+ {
172
+ "mcpServers": {
173
+ "algernon": {
174
+ "command": "algernon",
175
+ "args": [],
176
+ "env": {
177
+ "ANTHROPIC_API_KEY": "sk-ant-..."
178
+ }
179
+ }
180
+ }
181
+ }
182
+ ```
183
+
184
+ If Claude Desktop cannot find commands installed by `pip`, replace `algernon`
185
+ with the absolute path printed by:
186
+
187
+ ```bash
188
+ python -c "import shutil; print(shutil.which('algernon'))"
189
+ ```
190
+
191
+ ### Codex
192
+
193
+ ```bash
194
+ codex mcp add algernon -- algernon
195
+ ```
196
+
197
+ Confirm it is configured with:
198
+
199
+ ```bash
200
+ codex mcp list
201
+ ```
202
+
203
+ ## The three tools
204
+
205
+ | Tool | What it does |
206
+ | --- | --- |
207
+ | `algernon_plan` | Decompose a goal into `k` tightly-scoped, **independent** sub-task prompts (one cheap LLM call). Tight scoping is the token lever — each worker sees only its slice. Returns a task list you can feed straight into `algernon_dispatch`. |
208
+ | `algernon_dispatch` | Run N tightly-scoped tasks **concurrently** on the cheap worker fleet and collect every result. Each worker runs on **your** LLM key; you stay free to think while the fleet works. Takes a JSON array of `{id, prompt}`. |
209
+ | `algernon_orchestrate` | One shot: **plan then dispatch.** Hand it a goal; it splits into `k` tight sub-tasks, fans them across the fleet, and returns the plan and all results together. |
210
+
211
+ The typical loop: **`algernon_orchestrate`** a goal in one shot — or split it:
212
+ **`algernon_plan`** to see and shape the sub-tasks, then **`algernon_dispatch`**
213
+ to fan them out. Either way: orchestrate a fleet, spend fewer tokens, keep your
214
+ mind.
215
+
216
+ ## Two-minute verification
217
+
218
+ After connecting the server, ask your MCP client to perform these calls in
219
+ order:
220
+
221
+ 1. Call `algernon_plan` with the goal *"Explain three OS synchronization
222
+ primitives"* and `k` = 3. Confirm you get three tight sub-task prompts back
223
+ (proof the planner ran on your key).
224
+ 2. Call `algernon_dispatch` with a small `tasks_json`, e.g.
225
+ `[{"id":"a","prompt":"Define a mutex in one sentence"},{"id":"b","prompt":"Define a semaphore in one sentence"},{"id":"c","prompt":"Define a spinlock in one sentence"}]`.
226
+ Confirm three results come back — the fleet ran them in parallel.
227
+ 3. Call `algernon_orchestrate` with any small goal and confirm it returns both a
228
+ plan and the collected results in one response.
229
+
230
+ This exercises planning, parallel dispatch on your key, and one-shot
231
+ orchestration without any production data.
232
+
233
+ ## Privacy
234
+
235
+ Algernon is self-contained. It talks to exactly one outside host: **the LLM
236
+ endpoint you configured** (Anthropic or your OpenAI-compatible base URL). It
237
+ sends no telemetry, keeps no account, and stores nothing about you — results are
238
+ computed and returned in the same call. Your sub-task prompts and results go
239
+ only to your chosen provider.
240
+
241
+ ## Project links
242
+
243
+ - [Source](https://github.com/sammyboi81/algernon)
244
+ - [Issues](https://github.com/sammyboi81/algernon/issues)
245
+ - [Twin: ArkHive](https://github.com/sammyboi81/arkhive)
246
+
247
+ ## Beyond self-hosting — the paid tier
248
+
249
+ The MCP server on this page is free forever (Apache-2.0, self-host, no telemetry).
250
+ When you want more than DIY:
251
+
252
+ - **Hosted ArkHive** — one URL, no install, no key:
253
+ `https://arkhive.dondatabrain.com/mcp` (add it to Claude Code with
254
+ `claude mcp add --transport http arkhive https://arkhive.dondatabrain.com/mcp`).
255
+ - **Custom AI agent, built for you** — a working MCP agent wired into your
256
+ Claude or ChatGPT in one call, done-for-you by the founder:
257
+ [$700 flat](https://inboxaxe.com/offer_agent.html).
258
+ - **ArkHive Enterprise** — hand-delivered install + pilot on your own server,
259
+ from $2,500: [sam@inboxaxe.com](mailto:sam@inboxaxe.com?subject=ArkHive%20Enterprise%20install).
260
+
261
+ Built by the team behind [InboxAxe](https://inboxaxe.com) — the governed AI
262
+ marketing platform where nothing sends without your yes.
263
+
264
+ - [Website](https://dondatabrain.com)
265
+ - [Apache-2.0 license](./LICENSE)
266
+
267
+ ## Contributing
268
+
269
+ Issues and pull requests are welcome. Please keep the server self-contained
270
+ (standard library + `mcp` + `httpx`), provider-agnostic, and free of telemetry.
271
+ Include tests for changes to dispatch, collection, or provider behavior.
272
+
273
+ Algernon is part of a small family of humane, accountable AI tools. The public
274
+ MCP leads with functionality you can independently verify: bring your own key,
275
+ watch the fleet run, keep your mind.
276
+
277
+ **Tagline: Orchestrate a fleet. Keep your mind.**
278
+
279
+ Apache-2.0 © 2026 ZagAIrot Technologies LLC.