Skip to main content
Glama
shadow-cljs-mcp
by Bigsy

shadow-cljs-mcp

npm 版本

监控 shadow-cljs 构建并提供实时构建状态更新的模型上下文协议 (MCP) 服务器。

安装

将以下内容添加到您的 Cline/Cursor/Claude 的任何设置中:

{
  "mcpServers": {
    "shadow-cljs-mcp": {
      "command": "npx",
      "args": [
        "shadow-cljs-mcp"
      ],
      "disabled": false,
      "autoApprove": [],
      "timeout": 60
    }
  }
}

具有可选的服务器位置

{
  "mcpServers": {
    "shadow-cljs-mcp": {
      "command": "npx",
      "args": [
        "shadow-cljs-mcp",
        "--host",
        "localhost",
        "--port",
        "9630"
      ],
      "disabled": false,
      "autoApprove": [],
      "timeout": 60
    }
  }
}

--host和--port参数是可选的。如果不提供,服务器将默认连接到localhost:9630 。

Related MCP server: clj-kondo MCP Server

概述

此 MCP 服务器连接到正在运行的 shadow-cljs 实例,并跟踪构建进度、失败和完成情况。它提供了一个 MCP 工具,LLM 可以使用它来在更改 ClojureScript 文件后验证构建状态。

LLM 整合

添加到你的法学硕士笔记

将以下内容添加到你的 LLM 的注释文件(例如,CLAUDE.md、cursorrules.md)中:

After any edits to ClojureScript files, use the shadow-cljs-mcp server's get_last_build_status tool to verify the build succeeded:

<use_mcp_tool>
<server_name>shadow-cljs-mcp</server_name>
<tool_name>get_last_build_status</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>

This will show:
- Build status (completed/failed)
- Which files were compiled
- Any errors or warnings
- Build duration and metrics

工具响应示例

成功构建:

{
  "status": "completed",
  "resources": 317,
  "compiled": 1,
  "warnings": 0,
  "duration": 0.609,
  "compiledFiles": [
    "path/to/your/file.cljs (505ms)"
  ]
}

构建失败:

{
  "status": "failed",
  "message": "Build failed",
  "details": {
    // Error information
  }
}

使用说明

  • LLM 应该在每次编辑 ClojureScript 文件后调用 get_last_build_status

  • 编译错误将详细显示,以便于调试

  • 成功的构建显示哪些文件被编译以及花费了多长时间

  • 启动此服务器之前,请确保 shadow-cljs 正在运行

要求

  • 运行 shadow-cljs 实例(若未另行配置,则默认为 localhost:9630)

Available Tools

1 tool
get_last_build_statusA

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.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    The single tool name 'get_last_build_status' follows a clear verb_noun pattern, and there are no other tools to create inconsistency. The naming is straightforward and predictable.

    Tool Count2/5

    A single tool is too few for a server's purpose, as it severely limits functionality and suggests an incomplete or overly narrow scope. This makes the server feel thin and underdeveloped.

    Completeness2/5

    The server is severely incomplete for a build tool domain. It only provides status checking, with no tools for initiating builds, managing configurations, handling dependencies, or other essential operations, creating significant gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to build and test Xcode projects directly through a standardized interface, with capabilities for running tests, monitoring progress, and accessing logs in real-time.
      18
      53
      ISC
    • A
      license
      A
      quality
      C
      maintenance
      A Model Context Protocol server that provides clj-kondo linting capabilities for Clojure/ClojureScript/EDN files, useful for environments like Claude code and desktop that lack built-in linting.
      1
      16 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI coding assistants like Claude Code to manage long-running development processes, solving the problem where Claude Code cannot see output from processes like 'npm run dev' that don't exit immediately.
      8 npm
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that analyzes application codebases with real-time file watching, providing AI assistants like Claude with deep insights into project structure, code patterns, and architecture.
      MIT