DEV · Platform 01 SDK v0.6.0
Loco, beyond
the terminal.
Connect your app. Give your agent a clear view. Build on real Meteora DLMM observations with a typed SDK, public API and read-only MCP.
The Depot is a separate authenticated app workflow for Scout reports, wallet-proven passports and optional DBC launches. Its private reports and financial actions are not exposed through the public SDK or MCP.
01 · SDK
Typed. Bounded. Portable.
Runtime-checked ESM client + local helpers.
02 · API v1
Provenance with every read.
Index metrics or confirmed chain snapshots.
03 · MCP
Agents with a view.
Seven hosted tools. No signing or write paths.
01 · Quick start
A small package. A real connection.
Install the versioned package directly. Node 20+ or a browser with fetch. This release is distributed from Loco, with TypeScript declarations and examples included.
npm install https://studioloco.cfd/api/public/loco/v1/sdk/0.6.0.tgzDownloadable npm package · ESM · v0.6.0 · not published to the npm registry.
Download package ↓LIVE MAINNET · NO FIXTURE FALLBACK
import { LocoClient } from '@studio-loco/sdk';
const loco = new LocoClient();
const { data, meta } = await loco.listPools({ perPage: 5 });
console.log(meta.source, data.pools);
// meteora-index · real mainnet pools15-second deadline, cancellation, bounded responses and typed errors. Missing metrics stay null. No keys or wallet connection required.
02 · Live API explorer
Read the line yourself.
These buttons call the deployed API. Pool metrics come from Meteora’s index. Position bounds and the active bin share one confirmed chain snapshot; mints are validated at or after its slot.
Run a request to inspect the actual response and its source.
The Conductor · SDK v0.6.0
Give liquidity a measurable mission.
Share one typed policy contract with Loco’s mission workbench. Evaluate independent quote probes, separate fee-exclusive price deviation from LP and protocol fees, preview declared action limits and inspect exported mission history. Missing or stale evidence cannot pass.
import { analyzeMissionExport, evaluateMission, previewMissionAction } from '@studio-loco/sdk';
const report = await analyzeMissionExport(exportedMission);
console.log(report.sampledOutcomes);
console.log(report.independentlyVerified); // false: supplied evidence
const health = evaluateMission(policy, snapshot);
const preview = previewMissionAction(policy, snapshot, declaredIntent);
console.log(preview.executable); // always falseOpt-in local stdio adds loco_analyze_mission_export with --local-evidence. It validates policy hashes and recomputes outcomes at their recorded times. It does not authenticate supplied chain observations. Hosted MCP remains seven public read-only tools. SDK 0.6 also adds cumulative budget/operation evidence analysis. The app supports explicit local budgets and supported wallet-approved native actions; supplied exports never authorize execution.
Open The ConductorThe Switchyard · SDK v0.6.0
Compare decisions before outcomes.
Inspect prospective range-policy exports: sealed rules, independently read account inputs, hypothetical decisions and observation gaps. Recompute retained sample coverage and explicit fee-budget assumptions. Supplied files grant no chain authentication or execution permission.
import { analyzeSwitchyardExport } from '@studio-loco/sdk';
const report = analyzeSwitchyardExport(exportedSwitchyard);
console.log(report.experiments[0]?.scorecards);
console.log(report.chainVerified, report.executable); // false, falseOpt-in local stdio: loco_analyze_switchyard_export with --local-evidence. Coverage is sampled observation coverage, not time in range. Token inventory, earned fees, swaps and PnL are not modeled. Hosted MCP remains seven public read-only tools.
Open The SwitchyardJourney Continuity · SDK v0.6.0
A strategy keeps its memory.
Export a connected lifecycle from Journey: its original blueprint, account ancestry, staged moves, observation comparisons and receipt references. Validate the strict bundle and inspect reported history locally through the SDK. Supplied files remain evidence claims; the analyzer grants no execution permission.
import { analyzeContinuityExport } from '@studio-loco/sdk';
const history = analyzeContinuityExport(exportedContinuity);
console.log(history.chaptersRecorded, history.moveStatesRecorded);
console.log(history.chainVerified, history.executable); // false, falseOpt-in local stdio also offers loco_analyze_continuity_export. Private device history is not exposed through public API or HTTP MCP.
Open Journey ContinuityStrategy Foundry · SDK v0.6.0
A strategy other tools can understand.
Export a versioned blueprint from the Foundry. Inspect its strict schema, SHA-256 digest, nominal bin allocations and order ladders through the SDK or read-only MCP. The app performs fresh native simulation and wallet review; an imported blueprint grants no execution permission.
import { inspectBlueprint, protocolAdapters } from '@studio-loco/sdk';
const inspection = await inspectBlueprint(exportedBlueprint);
console.log(inspection.digest, inspection.executable); // false
console.log(protocolAdapters()); // DLMM supported; Pro unverified03 · Connect an agent
Read-only, by construction.
Add this URL as a remote Streamable HTTP MCP connection. No authentication required. The same seven tools are also available over local stdio.
https://studioloco.cfd/api/public/loco/v1/mcpOfficial MCP server v2.3.1 · modern 2026 protocol + stateless 2025 compatibility. Private cloud records, signing and execution are outside this connection.
STDIO CONFIG · NODE 20+
{
"mcpServers": {
"studio-loco": {
"command": "npx",
"args": [
"--yes",
"--package",
"https://studioloco.cfd/api/public/loco/v1/sdk/0.6.0.tgz",
"loco-mcp"
]
}
}
}04 · Local evidence
Inspect a Recorder export.
Choose an explicitly exported Flight Recorder JSON. Analysis runs on your device and reports consistency counts. It does not upload the file or verify its claims on chain.
SDK: analyzeRecorderExport(bundle). Opt-in local stdio: --local-evidence. This tool is excluded from hosted MCP.
05 · Local range geometry
Preserve every bin.
Try exact-width recentering, including even ranges. This is geometry; native builds, simulation and cost checks remain in the app’s Rebalance Planner.
Build details and source: SDK documentation ↗ · Read contracts