Skip to main content
Glama

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
NameRequiredDescriptionDefault

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: [] } } ] }));
  • 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) } ] }; }); }
  • The input schema for the 'get_last_build_status' tool, which expects no parameters (empty object).
    inputSchema: { type: "object", properties: {}, required: [] }
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bigsy/shadow-cljs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server