universal-agent-memory 1.0.21 → 1.0.22
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/package.json +1 -1
- package/templates/CLAUDE.template.md +52 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-agent-memory",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Universal AI agent memory system - CLAUDE.md templates, memory, worktrees for Claude Code, Factory.AI, VSCode, OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -1086,6 +1086,58 @@ Task(subagent_type: "performance-optimizer", prompt: "Find hotspots in src/cache
|
|
|
1086
1086
|
|
|
1087
1087
|
---
|
|
1088
1088
|
|
|
1089
|
+
## 🔌 MCP ROUTER - TOKEN-EFFICIENT TOOL ACCESS
|
|
1090
|
+
|
|
1091
|
+
**When you have access to many MCP tools (50+), use the MCP Router to reduce context usage by 98%.**
|
|
1092
|
+
|
|
1093
|
+
Instead of loading 150+ tool definitions (~75,000 tokens), the router exposes just 2 meta-tools (~700 tokens):
|
|
1094
|
+
|
|
1095
|
+
### discover_tools
|
|
1096
|
+
Find tools matching a natural language query.
|
|
1097
|
+
|
|
1098
|
+
```
|
|
1099
|
+
discover_tools({ query: "github issues" })
|
|
1100
|
+
→ Returns: [{ path: "github.create_issue", description: "..." }, ...]
|
|
1101
|
+
|
|
1102
|
+
discover_tools({ query: "file operations", server: "filesystem" })
|
|
1103
|
+
→ Returns tools filtered to specific server
|
|
1104
|
+
```
|
|
1105
|
+
|
|
1106
|
+
### execute_tool
|
|
1107
|
+
Execute a tool by its path (from discover_tools results).
|
|
1108
|
+
|
|
1109
|
+
```
|
|
1110
|
+
execute_tool({
|
|
1111
|
+
path: "github.create_issue",
|
|
1112
|
+
args: { title: "Bug report", body: "Description..." }
|
|
1113
|
+
})
|
|
1114
|
+
```
|
|
1115
|
+
|
|
1116
|
+
### Workflow
|
|
1117
|
+
|
|
1118
|
+
1. **First**: Use `discover_tools` to find relevant tools
|
|
1119
|
+
2. **Then**: Use `execute_tool` with the returned path
|
|
1120
|
+
|
|
1121
|
+
### When to Use
|
|
1122
|
+
|
|
1123
|
+
- Many MCP servers configured (5+ servers, 50+ tools)
|
|
1124
|
+
- Token budget is constrained
|
|
1125
|
+
- Need to dynamically discover available tools
|
|
1126
|
+
|
|
1127
|
+
### CLI Commands
|
|
1128
|
+
|
|
1129
|
+
```bash
|
|
1130
|
+
uam mcp-router stats # Show token savings (traditional vs router)
|
|
1131
|
+
uam mcp-router discover --query "search" # Find tools from CLI
|
|
1132
|
+
uam mcp-router list # Show configured MCP servers
|
|
1133
|
+
```
|
|
1134
|
+
|
|
1135
|
+
### Configuration
|
|
1136
|
+
|
|
1137
|
+
The router auto-loads from: Claude Desktop, Cursor, VS Code, Claude Code (`~/.claude/settings.json`), Factory.AI (`~/.factory/mcp.json`), and local `mcp.json`.
|
|
1138
|
+
|
|
1139
|
+
---
|
|
1140
|
+
|
|
1089
1141
|
## 📋 MANDATORY DECISION LOOP
|
|
1090
1142
|
|
|
1091
1143
|
```
|