get_last_build_status
Check the status of your last ClojureScript build to verify if it succeeded or failed, including any warnings or errors.
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)The core handler function of the 'get_last_build_status' tool. It returns the last recorded build status (stored in this.lastBuildStatus) or a default 'unknown' status, augmented with the current WebSocket connection status.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 in the MCP ListTools response, providing its name, description, and input schema (empty object).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-288 (handler)The MCP CallTool request handler that executes the 'get_last_build_status' tool by invoking this.monitor.getLastBuildStatus() and returning the result as JSON text content.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)The input schema for the 'get_last_build_status' tool, which expects no parameters (empty object).inputSchema: { type: "object", properties: {}, required: [] }