get_last_build_status
Check the status of the most recent shadow-cljs build, including warnings or errors, to verify if changes to ClojureScript files were successfully processed.
Instructions
Get the status of the last shadow-cljs build including any warnings or errors. Call this after making edits to ClojureScript files to verify if the build succeeded or failed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:36-47 (handler)Core handler function in ShadowCLJSMonitor class that returns the last build status, falling back to a default 'unknown' status if no build has occurred, and includes websocket connection state.getLastBuildStatus() { const status = this.lastBuildStatus || { status: 'unknown', message: 'No build status available yet', timestamp: new Date().toISOString() }; return { ...status, websocket_connected: this.connected }; }
- index.js:260-272 (registration)Registers the 'get_last_build_status' tool by defining it in the ListToolsRequestSchema handler, including name, description, and input schema.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ { name: "get_last_build_status", description: "Get the status of the last shadow-cljs build including any warnings or errors. Call this after making edits to ClojureScript files to verify if the build succeeded or failed.", inputSchema: { type: "object", properties: {}, required: [] } } ] }));
- index.js:274-287 (handler)MCP CallToolRequest handler that dispatches to 'get_last_build_status' tool by validating the tool name and returning the JSON-formatted result from getLastBuildStatus().this.server.setRequestHandler(CallToolRequestSchema, async (request) => { if (!request.params || request.params.name !== "get_last_build_status") { throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${request.params?.name || 'undefined'}`); } return { content: [ { type: "text", text: JSON.stringify(this.monitor.getLastBuildStatus(), null, 2) } ] }; });
- index.js:265-269 (schema)Input schema for the 'get_last_build_status' tool, defining an empty object (no parameters required).inputSchema: { type: "object", properties: {}, required: [] }