walkeros-mcp-actions
Skill348 starsChanged 5 years agoMITView on GitHub
You are an AI agent running inside a code-execution host, not issuing tool calls one at a time through the model. Examples: The pattern: bind the MCP transport once, call only the tools you need from code, filter the verbose structuredContent payload in code, and return only the distilled answer to the model. This suppresses tokens that the model never needs to see (full catalogs, per-destination simulation dumps) and avoids a chain of one-by-one tool calls. This is the "Code…
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- walkeros-create-cmp-sourceSkill
- walkeros-create-destinationSkill
- walkeros-create-sourceSkill
- walkeros-create-transformerSkill
- walkeros-debuggingSkill
- walkeros-mapping-configurationSkill
- walkeros-testing-strategySkill
- walkeros-understanding-destinationsSkill
- walkeros-understanding-developmentSkill
- walkeros-understanding-eventsSkill
- walkeros-understanding-flowSkill
- walkeros-understanding-mappingSkill
- walkeros-understanding-sourcesSkill
- walkeros-understanding-storesSkill
- walkeros-understanding-transformersSkill
- walkeros-using-cliSkill
- walkeros-using-loggerSkill
- walkeros-using-step-examplesSkill
- walkeros-using-store-cacheSkill
- walkeros-using-transformer-ga4Skill
- walkeros-writing-documentationSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Always use the fully-qualified walkeros:<tool> name (Agent Skills best-practice) so the call is unambiguous when multiple MCP servers are …
- Distinctive: line 70
Call only the tools you need: Don't enumerate; pick the minimal set.
- Very specific: line 71
Read
structuredContent: Every tool returns an MCP envelope.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Calling walkerOS MCP Tools from Code
When to Use This Skill
You are an AI agent running inside a code-execution host, not issuing tool calls one at a time through the model. Examples:
- Claude Code in code-execution / "Code Mode"
- a Cloudflare Worker or other serverless sandbox
- an app's server-side sandbox that binds the walkerOS MCP transport
The pattern: bind the MCP transport once, call only the tools you need from
code, filter the verbose structuredContent payload in code, and return
only the distilled answer to the model. This suppresses tokens that the model
never needs to see (full catalogs, per-destination simulation dumps) and avoids
a chain of one-by-one tool calls.
This is the "Code Execution with MCP" / "Code Mode" pattern: treat MCP tools as functions you call in a sandbox, not as round-trips through the model context.
The Seven Pure Tools
These walkerOS MCP tools are pure and composable: same input, same output, no auth, no cloud side effects. Safe to call freely from code.
| Tool (fully-qualified) | Purpose | Verbose output worth filtering |
walkeros:flow_validate | Validate a flow or step config; return issues | small |
walkeros:flow_simulate | Run a flow against an event, mock destination calls | yes (per-destination calls) |
walkeros:flow_bundle | Bundle a flow config to a JS artifact | medium (bundle/meta) |
walkeros:flow_examples | Fetch canonical flow/step examples | yes (many examples) |
walkeros:package_search | Find packages by type/platform/keyword | yes (catalog) |
walkeros:package_get | Read a package's schemas, hints, examples | yes (full schemas) |
walkeros:diagnostics | Report MCP/CLI versions, app URL, reachability | small |
To test an event against a flow, use walkeros:flow_simulate: it runs the event
through the flow with destination calls mocked, so nothing leaves the
sandbox. Do not use walkeros:flow_push for this (see below).
Always use the fully-qualified walkeros:<tool> name (Agent Skills
best-practice) so the call is unambiguous when multiple MCP servers are bound.
Out of scope for this pattern
The twelve cloud/auth/side-effect tools (walkeros:auth,
walkeros:project_manage, walkeros:flow_manage, walkeros:deploy_manage,
walkeros:secret_manage, walkeros:observe_session,
walkeros:observe_journeys, walkeros:hub_manage, walkeros:frame_manage,
walkeros:feedback, walkeros:flow_load, walkeros:flow_push) carry
authentication, cloud state, or side effects. walkeros:flow_push in particular
sends a real event to real destinations (real API calls to live endpoints),
so calling it "freely" would produce real, duplicated sends; use
walkeros:flow_simulate to test without sending. Do not drive these tools
from this code-execution filtering pattern; they belong in an interactive,
authorized session.
The Recommended Pattern
- Bind the transport once. Connect to the walkerOS MCP server at the top of your script, reuse the client for every call.
- Call only the tools you need. Don't enumerate; pick the minimal set.
- Read
structuredContent. Every tool returns an MCP envelope; the typed payload lives instructuredContent(thecontenttext block is for humans). - Filter in code. Reduce verbose payloads to the few fields that answer the question.
- Return the distilled answer. Hand the model one line, not the full dump.
// Pseudo-code in a code-execution host. `mcp` is the bound walkerOS client.
// (Typed `@walkeros/mcp-actions` wrappers are planned/forthcoming; until then
// call the raw tools and read `structuredContent` yourself.)
const flow = await readFile('flow.json', 'utf8');
// 1. Validate first; bail with one line if the config is broken. Branch on
// `code`, never on `message`. `strict: true` turns warnings and skipped
// checks (`details.skipped`) into failures: `valid` is false, as CLI --strict.
const v = await mcp.call('walkeros:flow_validate', {
type: 'flow',
input: flow,
strict: true,
});
const { valid, errors, warnings, details } = v.structuredContent;
if (!valid) {
const codes = [...errors, ...warnings].map((issue) => issue.code);
const skipped = (details.skipped ?? []).map((skip) => skip.code);
return `invalid flow: ${[...codes, ...skipped].join(', ')}`;
}
// 2. Simulate one event through the flow; output is verbose (every destination).
const sim = await mcp.call('walkeros:flow_simulate', {
configPath: 'flow.json',
event: 'product add',
});
// 3. Filter in code: keep only destinations that failed. The model never sees
// the full per-destination call dump, only the distilled verdict.
const failed = Object.entries(sim.structuredContent.destinations)
.filter(([, d]) => !d.received)
.map(([name]) => name);
// 4. Return one line.
return failed.length
? `simulate failed for: ${failed.join(', ')}`
: 'simulate ok for all destinations';The same shape applies to walkeros:package_search / walkeros:package_get
(filter a catalog or a schema down to the one field the user asked about) and
walkeros:flow_examples (pick the one matching example).
Responsibility Boundary
PII handling, secret redaction, and sandbox isolation are the execution host's responsibility, not walkerOS's: walkerOS MCP tools are pure functions over the config and event you pass them.
Related Skills
- walkeros-using-cli - The validate / simulate / bundle verbs these tools wrap
- walkeros-understanding-flow - Flow architecture you are validating and simulating
- walkeros-mapping-configuration -
Mapping recipes for the configs you inspect with
package_get
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

