@scottymade/mana 1.2.1 → 1.2.2
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.
- package/README.md +25 -105
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://devmana.ai">
|
|
3
|
-
<img src="docs/mana-promo.png" alt="Mana - Boss-Tier AI. Minion-Tier Costs. Save 50-70% on AI Coding API Costs" width="800">
|
|
3
|
+
<img src="docs/mana-promo-api-spend.png" alt="Mana - Boss-Tier AI. Minion-Tier Costs. Save 50-70% on AI Coding API Costs" width="800">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -62,14 +62,14 @@ Your AI agent casts Locate Object to find a file. Miss. Recasts with new keyword
|
|
|
62
62
|
|
|
63
63
|
You don't need a bigger mana pool. You need to stop the drain on the one you have.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
<a href="https://devmana.ai">MANA</a> saves 50-70% of your budget from going to bloated tool responses, unfiltered MCP calls, and brute-force file searches — routing the low-level work to optimized models so you stop paying boss rates for minion work.
|
|
66
66
|
|
|
67
67
|
- Your AI agent's full intelligence on architecture & code
|
|
68
68
|
- Minion work routed to minion-tier models
|
|
69
69
|
- Your existing workflow, unchanged
|
|
70
70
|
- Same firepower, at a fraction of the mana cost
|
|
71
71
|
|
|
72
|
-
Your AI coding agent keeps its full power for architecture, debugging, and code generation — the actual boss fights.
|
|
72
|
+
Your AI coding agent keeps its full power for architecture, debugging, and code generation — the actual boss fights. <a href="https://devmana.ai">MANA</a> just stops it from burning spell slots on everything else.
|
|
73
73
|
|
|
74
74
|
**Smart Routing** — Every tool action routes to a lightweight model benchmarked as the most accurate for that specific job.
|
|
75
75
|
|
|
@@ -79,7 +79,7 @@ Your AI coding agent keeps its full power for architecture, debugging, and code
|
|
|
79
79
|
|
|
80
80
|
### Your API Budget, Stretched 2-3x Further
|
|
81
81
|
|
|
82
|
-
| Monthly API Spend | Estimated Waste | With
|
|
82
|
+
| Monthly API Spend | Estimated Waste | With <a href="https://devmana.ai">MANA</a> |
|
|
83
83
|
|-------------------|-----------------|-----------|
|
|
84
84
|
| $600/mo | ~$420 goes to bloat | **Save $300-420/mo** |
|
|
85
85
|
| $1,500/mo | ~$1,050 goes to bloat | **Save $750-1,050/mo** |
|
|
@@ -135,18 +135,7 @@ You should see output like:
|
|
|
135
135
|
read_optimized [EXTRACT] -> 1,247 tokens saved (72% reduction) [1,732 -> 485]
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
If you see token savings in the output, MANA is working.
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## What `mana setup` Does
|
|
143
|
-
|
|
144
|
-
For each detected platform, `mana setup` handles two things automatically:
|
|
145
|
-
|
|
146
|
-
1. **Prompt initialization** — Installs instructions that teach the AI to use MANA's optimized tools (`read_optimized`, `bash_optimized`, `search_optimized`, etc.) instead of native tools
|
|
147
|
-
2. **MCP registration** — Registers the MANA MCP server so your platform can call MANA MCP sub-servers and their tools
|
|
148
|
-
|
|
149
|
-
Each platform has its own config format and file paths — `mana setup` handles all of it. Run `mana setup --uninstall` to cleanly remove everything.
|
|
138
|
+
If you see token savings in the output, <a href="https://devmana.ai">MANA</a> is working.
|
|
150
139
|
|
|
151
140
|
---
|
|
152
141
|
|
|
@@ -156,7 +145,7 @@ Each platform has its own config format and file paths — `mana setup` handles
|
|
|
156
145
|
npm update -g @scottymade/mana
|
|
157
146
|
```
|
|
158
147
|
|
|
159
|
-
The update automatically refreshes the MANA prompt across all configured platforms. Restart your editor to use the new version.
|
|
148
|
+
The update automatically refreshes the <a href="https://devmana.ai">MANA</a> prompt across all configured platforms. Restart your editor to use the new version.
|
|
160
149
|
|
|
161
150
|
**Check your current version:**
|
|
162
151
|
|
|
@@ -166,40 +155,30 @@ npm list -g @scottymade/mana
|
|
|
166
155
|
|
|
167
156
|
---
|
|
168
157
|
|
|
169
|
-
## Your Spellbook — Optimized Versions of Internal Tools
|
|
158
|
+
## Mana Optimization Core: Your Spellbook — Optimized Versions of Internal Tools
|
|
170
159
|
|
|
171
|
-
*
|
|
160
|
+
*Your spellbook just got enchanted. Same incantations, at a fraction of the casting cost.*
|
|
172
161
|
|
|
173
|
-
MANA swaps out your AI's clunky default tools for lean, optimized versions. Same
|
|
162
|
+
<a href="https://devmana.ai">MANA</a> swaps out your AI's clunky default tools for lean, optimized versions. Same AI tool call power, at fraction of the API cost.
|
|
174
163
|
|
|
175
164
|
### The Arsenal
|
|
176
165
|
|
|
177
166
|
| Spell | Replaces | What It Actually Does |
|
|
178
167
|
|-------|----------|----------------------|
|
|
179
168
|
| `read_optimized` | Native file read | Reads a 3,000-line file, returns only the 40 lines you needed |
|
|
180
|
-
| `read_optimized_batch` | Multiple file reads | Raids multiple files in one cast. Efficient looting. |
|
|
169
|
+
| `read_optimized_batch` | Multiple file reads | Raids multiple files in one cast. Efficient looting at scale. |
|
|
181
170
|
| `bash_optimized` | Native shell execution | Runs a command, strips the noise from the output |
|
|
182
|
-
| `search_optimized` | Native grep/glob |
|
|
171
|
+
| `search_optimized` | Native grep/glob | Locally indexed semantic code searches without burning API costs on fails lookups |
|
|
183
172
|
| `list_directory_optimized` | Native directory listing | Maps the dungeon without drawing every brick |
|
|
184
173
|
| `git_optimized` | Native git commands | Git log, diff, status — compressed to what matters |
|
|
185
174
|
|
|
186
|
-
### Spell Modifiers (Action Types)
|
|
187
|
-
|
|
188
|
-
Each tool call carries an `action_type` — think of it as choosing between a cantrip and a full spell slot:
|
|
189
|
-
|
|
190
|
-
| Modifier | When To Use | Mana Cost |
|
|
191
|
-
|----------|------------|-----------|
|
|
192
|
-
| `EXTRACT` | "Find the database config in this file" | Low — surgical extraction, returns only the hit |
|
|
193
|
-
| `SUMMARIZE` | "What does this 500-line file do?" | Low — heavy compression, key points only |
|
|
194
|
-
| `CHECK` | "Does this file import React?" | Minimal — yes/no, costs almost nothing |
|
|
195
|
-
| `DEBUG_LOGS` | "Why is this test failing?" | Low — zeroes in on errors and stack traces |
|
|
196
|
-
| `READ_FULL` | "I need every single line" | Full price — no optimization. The Wish spell of reads. Used sparingly. |
|
|
197
|
-
|
|
198
175
|
---
|
|
199
176
|
|
|
200
|
-
###
|
|
177
|
+
### Mana MCP Call Optimization: Rally Your Familiars
|
|
178
|
+
|
|
179
|
+
*Every wizard knows — a loyal familiar doesn't just follow orders. It filters the noise so you can focus on the completing your cast at full power.*
|
|
201
180
|
|
|
202
|
-
Wizard plan users can setup MCP sub-servers that live behind our Mana optization. MCPs you already use — GitLab, Brave Search, database tools, custom scripts, whatever's in your party. Instead of each agent spawning and managing them separately, MANA runs them all behind a single daemon. Your AI talks to MANA
|
|
181
|
+
Wizard & Archmage plan users can setup MCP sub-servers that live behind our Mana optization. MCPs you already use — GitLab, Brave Search, database tools, custom scripts, whatever's in your party. Instead of each agent spawning and managing them separately, <a href="https://devmana.ai">MANA</a> runs them all behind a single daemon. Your AI talks to <a href="https://devmana.ai">MANA</a>, <a href="https://devmana.ai">MANA</a> talks to your sub-servers, and every response that flows back gets the same token optimization treatment. One connection. All your tools. Leaner output on everything.
|
|
203
182
|
|
|
204
183
|
Create a config file at `~/.mana/mcp-servers.json` (global) or `.mana-mcp.json` (per-project):
|
|
205
184
|
|
|
@@ -224,44 +203,11 @@ Create a config file at `~/.mana/mcp-servers.json` (global) or `.mana-mcp.json`
|
|
|
224
203
|
}
|
|
225
204
|
```
|
|
226
205
|
|
|
227
|
-
Each
|
|
228
|
-
|
|
229
|
-
| Field | Type | Description |
|
|
230
|
-
|-------|------|-------------|
|
|
231
|
-
| `command` | string | The incantation to summon it (e.g., `npx`, `python`, `node`) |
|
|
232
|
-
| `args` | string[] | Spell components |
|
|
233
|
-
| `env` | object | Environment variables passed to the sub-server |
|
|
234
|
-
| `cwd` | string | Working directory for the sub-server |
|
|
235
|
-
| `transport` | `"stdio"` \| `"streamable-http"` | Transport type (default: `stdio`) |
|
|
236
|
-
| `url` | string | URL for `streamable-http` transport (remote familiars) |
|
|
237
|
-
| `enabled` | boolean | Set to `false` to bench a familiar without unbinding it |
|
|
238
|
-
|
|
239
|
-
### Remote Familiars (Streamable HTTP)
|
|
240
|
-
|
|
241
|
-
For remote/hosted MCP servers — summon from across the planes:
|
|
242
|
-
|
|
243
|
-
```json
|
|
244
|
-
{
|
|
245
|
-
"mcpServers": {
|
|
246
|
-
"my-remote-server": {
|
|
247
|
-
"transport": "streamable-http",
|
|
248
|
-
"url": "https://my-mcp-server.example.com/mcp"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
### Config Priority
|
|
255
|
-
|
|
256
|
-
Configs load in priority order (highest first). Think of it as spell slot override rules:
|
|
257
|
-
|
|
258
|
-
1. `--mcp-config=<path>` — CLI flag (DM override)
|
|
259
|
-
2. `.mana-mcp.json` — Project directory (dungeon-specific)
|
|
260
|
-
3. `~/.mana/mcp-servers.json` — Home directory (character sheet)
|
|
206
|
+
### Context Savings for Each MCP Server Added
|
|
261
207
|
|
|
262
|
-
|
|
208
|
+
Similar to how Claude Code only reveals the tool definitions and schemas as they're needed, we also only show the names and descriptions of the subservers to the AI so your session saves a ton of context.
|
|
263
209
|
|
|
264
|
-
|
|
210
|
+
Your AI has the ability to look into the details of the tools as needed, and can load schemas to invoke the correct tool calls and use as it normally would:
|
|
265
211
|
|
|
266
212
|
| Meta-Spell | What It Does |
|
|
267
213
|
|------------|-------------|
|
|
@@ -269,45 +215,20 @@ Sub-server tools are discoverable through three meta-spells:
|
|
|
269
215
|
| `mana_describe_tool` | Inspect a specific ability's full schema |
|
|
270
216
|
| `mana_call_tool` | Command a familiar to act |
|
|
271
217
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
### Hot-Swapping Mid-Combat
|
|
275
|
-
|
|
276
|
-
Edit your config file and changes are picked up automatically. Or run `mana reload` manually. Either way:
|
|
277
|
-
|
|
278
|
-
- **Summoned** — New familiars connect and their abilities become available
|
|
279
|
-
- **Dismissed** — Removed familiars disconnect cleanly
|
|
280
|
-
- **Rebound** — Changed familiars reconnect with the new config
|
|
281
|
-
- **Unbothered** — Unchanged familiars keep their existing connections
|
|
282
|
-
|
|
283
|
-
No daemon restart. No editor restart. Swap your loadout without leaving the dungeon.
|
|
218
|
+
No bloat upfront. Full power on demand. The more MCP servers you add, the more context you save — and the more room your AI has to focus on the boss fights.
|
|
284
219
|
|
|
285
220
|
---
|
|
286
221
|
|
|
287
222
|
## The Archmage's Summon Circle — MCP Multiplexer
|
|
288
223
|
|
|
289
|
-
*Archmage Tier only. For those who command
|
|
224
|
+
*Archmage Tier only. For those who command an army of AI Agents ready to serve.*
|
|
290
225
|
|
|
291
|
-
|
|
226
|
+
Every agent you spin up spawns its own instance of every MCP server available to it. Run five agents in parallel with six MCP servers each, and that's thirty separate processes eating RAM and grinding your system to a crawl. Task performance tanks. Completion times balloon. Your army of agents becomes a bottleneck instead of a force multiplier.
|
|
292
227
|
|
|
293
|
-
|
|
228
|
+
Mana's multiplexer lets you summon all your MCP servers through a single daemon. Configure once, use everywhere. Every agent shares the same server instances — slashing RAM usage while still getting the full Mana token optimization treatment on every response that flows through.
|
|
294
229
|
|
|
295
|
-
|
|
230
|
+
More agents. Less overhead. If you're running the kind of parallel workflows that bring most systems to their knees, this is how you scale without sacrifice.
|
|
296
231
|
|
|
297
|
-
- **One config, all platforms** — Define your familiars once, summon them from any editor
|
|
298
|
-
- **Token optimization on everything** — Sub-server responses get compressed too. No wasted mana.
|
|
299
|
-
- **Auto-resurrect** — If a sub-server dies mid-fight, MANA raises it automatically
|
|
300
|
-
- **Hot-swap** — Add or remove sub-servers without restarting anything. Swap gear mid-dungeon.
|
|
301
|
-
- **Shared connections** — Multiple editors tap the same sub-server pool. Party-wide buffs.
|
|
302
|
-
|
|
303
|
-
### Summoning the Daemon
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
mana start # Summon the daemon (checks Archmage attunement)
|
|
307
|
-
mana status # Scry daemon status, PID, uptime
|
|
308
|
-
mana reload # Hot-reload sub-server config without restart
|
|
309
|
-
mana stop # Dismiss the daemon
|
|
310
|
-
```
|
|
311
232
|
---
|
|
312
233
|
|
|
313
234
|
## Troubleshooting
|
|
@@ -327,7 +248,7 @@ which mana
|
|
|
327
248
|
|
|
328
249
|
1. Run `mana setup` again to verify configuration
|
|
329
250
|
2. Restart your editor after setup
|
|
330
|
-
3. Check that MANA tools appear in your platform's MCP/tool list
|
|
251
|
+
3. Check that <a href="https://devmana.ai">MANA</a> tools appear in your platform's MCP/tool list
|
|
331
252
|
|
|
332
253
|
### "Invalid API key" error
|
|
333
254
|
|
|
@@ -345,10 +266,9 @@ Check your API usage on your [Mana Dashboard](https://app.devmana.ai/)
|
|
|
345
266
|
|
|
346
267
|
- **Documentation**: [GitHub](https://github.com/scottymade/mana/)
|
|
347
268
|
- **Issues**: [GitHub Issues](https://github.com/scottymade/mana/issues)
|
|
348
|
-
- **Bugs, Feedback and Feature Requests** can be sent via the chat feature in your [Mana Dashboard](https://app.devmana.ai/)
|
|
349
269
|
|
|
350
270
|
---
|
|
351
271
|
|
|
352
272
|
## License
|
|
353
273
|
|
|
354
|
-
|
|
274
|
+
Proprietary / EULA - See [LICENSE](LICENSE) for details.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scottymade/mana",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "MANA - LLM Token
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "MANA - LLM Token Optimization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
7
7
|
"claude-code",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"llm"
|
|
11
11
|
],
|
|
12
12
|
"author": "ScottyMade <hi@scottymadellc.com>",
|
|
13
|
-
"license": "
|
|
13
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
14
14
|
"homepage": "https://devmana.ai",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|