Skip to main content
Glama

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
NameRequiredDescriptionDefault

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: [] } } ] }));
  • 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) } ] }; });
  • Input schema for the 'get_last_build_status' tool, defining an empty object (no parameters required).
    inputSchema: { type: "object", properties: {}, required: [] }

Other Tools

Related 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