Skip to main content
Glama

Cedardiff MCP Server

by th3w1zard1

cedardiff MCP Server

Edit files with CEDARScript grammar rules

This is a TypeScript-based MCP server that implements CEDARScript, a SQL-like language for code manipulation. It provides:

  • A comprehensive grammar for code manipulation commands
  • Tools for executing CEDARScript operations
  • Support for complex pattern matching and transformations

Features

Grammar

  • SQL-like syntax for code operations (DDL, DML)
  • Support for file, function, class, and method targeting
  • Pattern matching with regex, prefix/suffix, and indentation rules
  • Block-level code manipulation capabilities

Tools

  • edit_file - Execute CEDARScript commands
    • Takes script and working directory as parameters
    • Supports file creation, deletion, moving, and updating
    • Pattern-based code transformations

Implementation Status

Current testing has revealed:

  • Command parsing works correctly
  • Grammar supports complex operations
  • File writing mechanism needs improvement
  • Success messages returned but changes not persisted

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

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

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

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

ES Module Migration

The project has been migrated to use ES modules. Key changes include:

  • Added "type": "module" to package.json
  • Updated tsconfig.json to use "module": "ESNext"
  • Converted import/export statements to ES module syntax
  • Updated type definitions to be compatible with ES modules

Compatibility Notes

  • Ensure you are using Node.js version 12 or higher
  • Use import instead of require() for module imports
  • Use .js extension when importing local files

You must be authenticated.

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.

Implements CEDARScript, a SQL-like language for code manipulation.

  1. Features
    1. Grammar
    2. Tools
    3. Implementation Status
  2. Development
    1. Installation
      1. Debugging
    2. ES Module Migration
      1. Compatibility Notes

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      Enables interaction with the Metal Framework by providing documentation search and code generation capabilities using natural language queries.
      Last updated -
      2
      2
      TypeScript
    • -
      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 -
      2
      Python
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      A fully featured coding agent that uses symbolic operations (enabled by language servers) and works well even in large code bases. Essentially a free to use alternative to Cursor and Windsurf Agents, Cline, Roo Code and others.
      Last updated -
      945
      Python
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      An MCP server that allows integration with Nia's codebase understanding capabilities through function calling in tools like Cursor and Claude Desktop, enabling users to analyze project structure and search codebases via natural language queries.
      Last updated -
      1
      86
      3
      JavaScript
      MIT License

    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