@walkeros/mcp 2.0.1 → 3.0.0

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 DELETED
@@ -1,221 +0,0 @@
1
- # @walkeros/mcp
2
-
3
- MCP server for walkerOS — validate, bundle, and simulate analytics events
4
- locally, plus manage projects and flows via the walkerOS API.
5
-
6
- ## Installation
7
-
8
- ```bash
9
- npm install @walkeros/mcp
10
- ```
11
-
12
- ## Environment Variables
13
-
14
- | Variable | Required | Default | Purpose |
15
- | --------------------- | -------------------------- | ------------------------- | -------------------------------- |
16
- | `WALKEROS_TOKEN` | Yes (API tools) | — | Bearer token (`sk-walkeros-...`) |
17
- | `WALKEROS_PROJECT_ID` | Yes (project-scoped tools) | — | Active project ID (`proj_...`) |
18
- | `WALKEROS_APP_URL` | No | `https://app.walkeros.io` | Base URL override |
19
-
20
- API tools require `WALKEROS_TOKEN`. Project-scoped tools (flows) also need
21
- `WALKEROS_PROJECT_ID`, or you can pass `projectId` as a parameter.
22
-
23
- ## Usage with Claude Desktop
24
-
25
- ```json
26
- {
27
- "mcpServers": {
28
- "walkeros": {
29
- "command": "npx",
30
- "args": ["@walkeros/mcp"],
31
- "env": {
32
- "WALKEROS_TOKEN": "sk-walkeros-...",
33
- "WALKEROS_PROJECT_ID": "proj_..."
34
- }
35
- }
36
- }
37
- }
38
- ```
39
-
40
- ## Usage with Claude Code
41
-
42
- ```json
43
- {
44
- "mcpServers": {
45
- "walkeros": {
46
- "command": "npx",
47
- "args": ["@walkeros/mcp"],
48
- "env": {
49
- "WALKEROS_TOKEN": "sk-walkeros-...",
50
- "WALKEROS_PROJECT_ID": "proj_..."
51
- }
52
- }
53
- }
54
- }
55
- ```
56
-
57
- ## Available Tools (17)
58
-
59
- ### Local CLI Tools
60
-
61
- #### `validate`
62
-
63
- Validate walkerOS events, flow configurations, or mapping rules.
64
-
65
- - `type` (required): `"event"` | `"flow"` | `"mapping"`
66
- - `input` (required): JSON string or file path to validate
67
- - `flow` (optional): Flow name to validate against
68
-
69
- #### `bundle`
70
-
71
- Bundle a walkerOS flow configuration into deployable JavaScript. Supports both
72
- local bundling (via CLI) and remote cloud bundling (via API).
73
-
74
- - `configPath` (optional): Path to the flow configuration file (local mode)
75
- - `flow` (optional): Specific flow name to bundle
76
- - `stats` (optional): Include bundle statistics in output
77
- - `output` (optional): Output file path for the bundle
78
- - `remote` (optional): Use remote cloud bundling (requires `WALKEROS_TOKEN`)
79
- - `content` (optional): Flow.Setup JSON content (required when `remote: true`)
80
-
81
- #### `simulate`
82
-
83
- Simulate events through a walkerOS flow without making real API calls.
84
-
85
- - `configPath` (required): Path to the flow configuration file
86
- - `event` (required): JSON string representing the event to simulate
87
- - `flow` (optional): Flow name to simulate through
88
- - `platform` (optional): `"web"` | `"server"` (default: `"web"`)
89
-
90
- #### `push`
91
-
92
- Push a real event through a walkerOS flow to actual destinations. WARNING: This
93
- makes real API calls to real endpoints.
94
-
95
- - `configPath` (required): Path to the flow configuration file
96
- - `event` (required): JSON string representing the event to push
97
- - `flow` (optional): Flow name for multi-flow configs
98
- - `platform` (optional): `"web"` | `"server"` (default: `"web"`)
99
-
100
- ### Auth
101
-
102
- #### `whoami`
103
-
104
- Verify your API token and see your identity. Returns user ID, email, and project
105
- ID.
106
-
107
- ### Projects
108
-
109
- #### `list-projects`
110
-
111
- List all projects you have access to.
112
-
113
- #### `get-project`
114
-
115
- Get details for a project. Uses `WALKEROS_PROJECT_ID` if `projectId` is omitted.
116
-
117
- - `projectId` (optional): Project ID
118
-
119
- #### `create-project`
120
-
121
- Create a new project.
122
-
123
- - `name` (required): Project name
124
-
125
- #### `update-project`
126
-
127
- Update a project name.
128
-
129
- - `projectId` (optional): Project ID
130
- - `name` (required): New project name
131
-
132
- #### `delete-project`
133
-
134
- Soft-delete a project and all its flows.
135
-
136
- - `projectId` (optional): Project ID
137
-
138
- ### Flows
139
-
140
- #### `list-flows`
141
-
142
- List all flow configurations in a project.
143
-
144
- - `projectId` (optional): Project ID
145
- - `sort` (optional): `"name"` | `"updated_at"` | `"created_at"`
146
- - `order` (optional): `"asc"` | `"desc"`
147
- - `includeDeleted` (optional): Include soft-deleted flows
148
-
149
- #### `get-flow`
150
-
151
- Get a flow configuration with its full content.
152
-
153
- - `flowId` (required): Flow ID (`cfg_...`)
154
- - `projectId` (optional): Project ID
155
-
156
- #### `create-flow`
157
-
158
- Create a new flow configuration.
159
-
160
- - `name` (required): Flow name
161
- - `content` (required): Flow.Setup JSON content
162
- - `projectId` (optional): Project ID
163
-
164
- #### `update-flow`
165
-
166
- Update a flow name and/or content.
167
-
168
- - `flowId` (required): Flow ID (`cfg_...`)
169
- - `name` (optional): New flow name
170
- - `content` (optional): New Flow.Setup JSON content
171
- - `projectId` (optional): Project ID
172
-
173
- #### `delete-flow`
174
-
175
- Soft-delete a flow configuration.
176
-
177
- - `flowId` (required): Flow ID (`cfg_...`)
178
- - `projectId` (optional): Project ID
179
-
180
- #### `duplicate-flow`
181
-
182
- Create a copy of an existing flow configuration.
183
-
184
- - `flowId` (required): Flow ID to duplicate (`cfg_...`)
185
- - `name` (optional): Name for the copy
186
- - `projectId` (optional): Project ID
187
-
188
- ## Local Development
189
-
190
- ### Smoke Test
191
-
192
- A script exercises all API endpoints against a running app instance:
193
-
194
- ```bash
195
- WALKEROS_TOKEN='<your-token>' \
196
- WALKEROS_APP_URL=http://localhost:3000 \
197
- WALKEROS_PROJECT_ID='<your-project-id>' \
198
- npx tsx packages/mcp/scripts/smoke-test.ts
199
- ```
200
-
201
- ### Updating the OpenAPI Baseline
202
-
203
- The contract test (`npm test`) checks that all MCP endpoints exist in a snapshot
204
- of the app's OpenAPI spec. After API changes:
205
-
206
- ```bash
207
- curl $WALKEROS_APP_URL/api/openapi.json | python3 -m json.tool \
208
- > packages/mcp/src/__tests__/fixtures/openapi-baseline.json
209
- ```
210
-
211
- ## Dependencies
212
-
213
- This package depends on:
214
-
215
- - `@walkeros/cli` — walkerOS command-line interface (validate, bundle, simulate,
216
- push)
217
- - `@modelcontextprotocol/sdk` — Model Context Protocol server framework
218
-
219
- ## License
220
-
221
- MIT