signalk-mcp-server
v1.0.8MCP server for SignalK marine data integration
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute_code
Execute JavaScript code in a secure V8 isolate with access to SignalK SDK functions. IMPORTANT: ALL SDK functions are async and MUST be awaited, including getConnectionStatus(). Available functions: await getVesselState(), await getAisTargets(options), await getActiveAlarms(), await listAvailablePaths(), await getPathValue(path), await getConnectionStatus(). Code MUST: (1) be wrapped in async IIFE, (2) await all SDK calls, (3) return JSON.stringify() of result. Example: (async () => { const vessel = await getVesselState(); return JSON.stringify({ name: vessel.data.name?.value }); })()
| Parameter | Type | Description |
|---|---|---|
code * | string | JavaScript code to execute. Must be wrapped in async IIFE and return JSON.stringify() of result. |