Skip to main content
Glama

Cedardiff MCP Server

by th3w1zard1

cedardiff MCP 服务器

使用 CEDARScript 语法规则编辑文件

这是一个基于 TypeScript 的 MCP 服务器,它实现了 CEDARScript(一种用于代码操作的类 SQL 语言)。它提供:

  • 代码操作命令的综合语法
  • 执行 CEDARScript 操作的工具
  • 支持复杂的模式匹配和转换

特征

语法

  • 代码操作(DDL、DML)的类似 SQL 的语法
  • 支持文件、函数、类和方法定位
  • 使用正则表达式、前缀/后缀和缩进规则进行模式匹配
  • 块级代码操作能力

工具

  • edit_file - 执行 CEDARScript 命令
    • 将脚本和工作目录作为参数
    • 支持文件创建、删除、移动、更新
    • 基于模式的代码转换

实施情况

目前的测试表明:

  • 命令解析正确
  • 语法支持复杂的操作
  • 文件写入机制需要改进
  • 返回成功消息但更改未持久化

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "cedardiff": { "command": "/path/to/cedardiff/build/index.js" } } }

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

ES 模块迁移

该项目已迁移至使用 ES 模块。主要变更包括:

  • package.json添加了"type": "module"
  • 更新了tsconfig.json以使用"module": "ESNext"
  • 将 import/export 语句转换为 ES 模块语法
  • 更新类型定义以与 ES 模块兼容

兼容性说明

  • 确保您使用的是 Node.js 版本 12 或更高版本
  • 使用import而不是require()来导入模块
  • 导入本地文件时使用.js扩展名
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

实现 CEDARScript,一种用于代码操作的类似 SQL 的语言。

  1. 特征
    1. 语法
    2. 工具
    3. 实施情况
  2. 发展
    1. 安装
      1. 调试
    2. ES 模块迁移
      1. 兼容性说明

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      Facilitates integration with the Cursor code editor by enabling real-time code indexing, analysis, and bi-directional communication with Claude, supporting concurrent sessions and automatic reconnection.
      Last updated 2 months ago
      2
      2
      38
      TypeScript
      MIT License
    • -
      security
      F
      license
      -
      quality
      A server that enables interaction with PostgreSQL, MySQL, MariaDB, or SQLite databases through Claude Desktop using natural language queries.
      Last updated 6 months ago
      Python
    • -
      security
      F
      license
      -
      quality
      A natural language interface that allows Claude to execute SQL queries on your local MySQL databases, enabling database interaction using natural language.
      Last updated 5 months ago
      2
      Python
      • Linux
      • Apple
    • -
      security
      F
      license
      -
      quality
      A tool that provides simple API to execute SQL queries and manage MySQL databases, designed to integrate with Cursor IDE for AI assistants to directly perform database operations.
      Last updated 4 months ago
      Python
      • Linux
      • Apple

    View all related MCP servers

    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/th3w1zard1/cedarscript-mcp'

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