Cedardiff
Edit files using CEDARScript, a SQL-like language for code manipulation.
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"topackage.json - Updated
tsconfig.jsonto 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
importinstead ofrequire()for module imports - Use
.jsextension when importing local files
Server Terkait
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
MCP Image Extractor
Extracts images from files, URLs, or base64 strings and converts them to base64 for LLM analysis.
FogBugz
A local MCP server for interacting with FogBugz issue tracker through LLM
MCP Neurolora
An intelligent server for code analysis, collection, and documentation generation using the OpenAI API.
shadow-cljs
Monitors shadow-cljs builds and provides real-time build status updates.
LangSmith MCP Server
An MCP server for fetching conversation history and prompts from the LangSmith observability platform.
Claude Project Coordinator
Manage and coordinate multiple Xcode/Swift projects with features like project tracking, smart search, and analytics.
SQLFluff Analyzer
Analyze, lint, and fix SQL queries using the SQLFluff linter.
Alchemy MCP Server
Interact with Alchemy's blockchain APIs to query data without writing code.
Glide API
Interact with the Glide API to build applications from data sources like Google Sheets.
Dive AI Agent
An open-source desktop application for hosting MCP servers that integrates with function-calling LLMs.