signalk-mcp-server

v1.0.8
signalk-mcp-server Checked 1 day ago Published 1 year ago

MCP 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 }); })()

ParameterTypeDescription
code *stringJavaScript code to execute. Must be wrapped in async IIFE and return JSON.stringify() of result.