vantage-peers-mcp 1.0.1 → 2.0.1
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 +75 -10
- package/dist/api.d.ts +1366 -0
- package/dist/api.js +3 -0
- package/dist/server.d.ts +7 -8
- package/dist/server.js +1652 -1091
- package/package.json +13 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server for [VantagePeers](https://vantagepeers.com) — shared memory, messaging, and task coordination for AI agent teams.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
82 tools across 18 categories: memory, profiles, tasks, missions, mission templates, messages, diary, briefing notes, search (RAG), issues, fix patterns, error monitoring, deployments, business units, components, mandates, recurring tasks, and session.
|
|
6
6
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
@@ -53,7 +53,7 @@ Add to `~/.claude.json` or project `.claude/settings.json`:
|
|
|
53
53
|
|
|
54
54
|
The server also reads `CONVEX_URL` from `.env.local` in the parent directory if not set via environment.
|
|
55
55
|
|
|
56
|
-
## Tools (
|
|
56
|
+
## Tools (82)
|
|
57
57
|
|
|
58
58
|
### Memory (6)
|
|
59
59
|
`store_memory`, `recall`, `list_memories`, `soft_delete_memory`, `get_memory`, `store_episode`
|
|
@@ -61,11 +61,11 @@ The server also reads `CONVEX_URL` from `.env.local` in the parent directory if
|
|
|
61
61
|
### Profiles (3)
|
|
62
62
|
`get_profile`, `update_profile`, `list_peers`
|
|
63
63
|
|
|
64
|
-
### Tasks (
|
|
65
|
-
`create_task`, `list_tasks`, `list_tasks_by_mission`, `update_task`, `start_task`, `complete_task`, `checkout_task`, `delete_task`
|
|
64
|
+
### Tasks (10)
|
|
65
|
+
`create_task`, `list_tasks`, `list_tasks_by_mission`, `update_task`, `start_task`, `complete_task`, `checkout_task`, `delete_task`, `block_task`, `add_task_dependency`
|
|
66
66
|
|
|
67
|
-
### Missions (
|
|
68
|
-
`create_mission`, `list_missions`, `update_mission`, `update_mission_status`, `get_mission_template`
|
|
67
|
+
### Missions (6)
|
|
68
|
+
`create_mission`, `list_missions`, `update_mission`, `update_mission_status`, `get_mission_template`, `get_mission`
|
|
69
69
|
|
|
70
70
|
### Mission Templates (1)
|
|
71
71
|
`update_mission_template`
|
|
@@ -97,18 +97,83 @@ The server also reads `CONVEX_URL` from `.env.local` in the parent directory if
|
|
|
97
97
|
### Business Units (5)
|
|
98
98
|
`create_bu`, `list_bus`, `get_bu`, `update_bu`, `delete_bu`
|
|
99
99
|
|
|
100
|
-
### Components (
|
|
101
|
-
`register_component`, `list_components`, `get_component`
|
|
100
|
+
### Components (6)
|
|
101
|
+
`register_component`, `list_components`, `get_component`, `update_component`, `delete_component`, `search_components`
|
|
102
102
|
|
|
103
103
|
### Mandates (6)
|
|
104
104
|
`create_mandate`, `list_mandates`, `accept_mandate`, `update_mandate`, `validate_mandate_spending`, `settle_mandate`
|
|
105
105
|
|
|
106
|
-
### Recurring Tasks (
|
|
107
|
-
`create_recurring_task`, `list_recurring_tasks`, `pause_recurring_task`, `resume_recurring_task`, `delete_recurring_task`
|
|
106
|
+
### Recurring Tasks (6)
|
|
107
|
+
`create_recurring_task`, `list_recurring_tasks`, `pause_recurring_task`, `resume_recurring_task`, `delete_recurring_task`, `update_recurring_task`
|
|
108
108
|
|
|
109
109
|
### Session (1)
|
|
110
110
|
`set_summary`
|
|
111
111
|
|
|
112
|
+
## Programmatic API (TypeScript)
|
|
113
|
+
|
|
114
|
+
For external services that need type-safe access to VantagePeers functions:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npm install vantage-peers-mcp convex
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import { fetchQuery, fetchMutation } from "convex/nextjs";
|
|
122
|
+
import { api } from "vantage-peers-mcp/api";
|
|
123
|
+
|
|
124
|
+
// Query memories with full type safety
|
|
125
|
+
const memories = await fetchQuery(
|
|
126
|
+
api.memories.listMemories,
|
|
127
|
+
{ namespace: "global", limit: 10 },
|
|
128
|
+
{ url: process.env.CONVEX_URL }
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
// Send a message
|
|
132
|
+
await fetchMutation(
|
|
133
|
+
api.messages.sendMessage,
|
|
134
|
+
{ from: "pi", channel: "broadcast", content: "Hello from Studio" },
|
|
135
|
+
{ url: process.env.CONVEX_URL }
|
|
136
|
+
);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Requires `convex` as a peer dependency. Only public functions are exported.
|
|
140
|
+
|
|
141
|
+
### Authentication with Deploy Keys
|
|
142
|
+
|
|
143
|
+
For server-to-server access, use a Convex deploy key:
|
|
144
|
+
|
|
145
|
+
1. Go to your [Convex dashboard](https://dashboard.convex.dev) > Settings > Deploy Keys
|
|
146
|
+
2. Generate a new deploy key for your deployment
|
|
147
|
+
3. Set it as an environment variable:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
CONVEX_DEPLOY_KEY=prod:your-deploy-key-here
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
4. Use it with the Convex client:
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
import { ConvexHttpClient } from "convex/browser";
|
|
157
|
+
import { api } from "vantage-peers-mcp/api";
|
|
158
|
+
|
|
159
|
+
const client = new ConvexHttpClient(process.env.CONVEX_URL!);
|
|
160
|
+
|
|
161
|
+
// Query with type safety
|
|
162
|
+
const memories = await client.query(api.memories.listMemories, {
|
|
163
|
+
namespace: "global",
|
|
164
|
+
limit: 10,
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// Mutate with type safety
|
|
168
|
+
await client.mutation(api.messages.sendMessage, {
|
|
169
|
+
from: "studio",
|
|
170
|
+
channel: "sigma",
|
|
171
|
+
content: "Task completed",
|
|
172
|
+
});
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**Security:** Never commit deploy keys to git. Use environment variables or a secrets manager.
|
|
176
|
+
|
|
112
177
|
## Requirements
|
|
113
178
|
|
|
114
179
|
- Node.js >= 18
|