cedardiff MCP サーバー
CEDARScript 文法ルールを使用してファイルを編集する
これは、コード操作のためのSQL風言語であるCEDARScriptを実装した、TypeScriptベースのMCPサーバーです。以下の機能を提供します。
- コード操作コマンドの包括的な文法
- CEDARScript操作を実行するためのツール
- 複雑なパターンマッチングと変換のサポート
特徴
文法
- コード操作用の SQL のような構文 (DDL、DML)
- ファイル、関数、クラス、メソッドのターゲット設定のサポート
- 正規表現、接頭辞/接尾辞、インデントルールによるパターンマッチング
- ブロックレベルのコード操作機能
ツール
edit_file
- CEDARScriptコマンドを実行する- スクリプトと作業ディレクトリをパラメータとして受け取ります
- ファイルの作成、削除、移動、更新をサポート
- パターンベースのコード変換
実施状況
現在のテストで明らかになったこと:
- コマンド解析は正しく動作します
- 文法は複雑な演算をサポートする
- ファイル書き込みメカニズムの改善が必要
- 成功メッセージが返されましたが、変更は保存されませんでした
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
Claude Desktop で使用するには、サーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
ESモジュールの移行
プロジェクトはESモジュールを使用するように移行されました。主な変更点は次のとおりです。
package.json
に"type": "module"
を追加しました"module": "ESNext"
を使用するようにtsconfig.json
更新しました- インポート/エクスポート文をESモジュール構文に変換しました
- ESモジュールと互換性があるように型定義を更新しました
互換性に関する注意事項
- Node.jsバージョン12以上を使用していることを確認してください
- モジュールのインポートには
require()
の代わりにimport
を使用する - ローカルファイルをインポートするときに
.js
拡張子を使用する
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
コード操作用の SQL のような言語である CEDARScript を実装します。
Related MCP Servers
- -securityAlicense-qualityFacilitates 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 -2638TypeScriptMIT License
- -securityFlicense-qualityA server that enables interaction with PostgreSQL, MySQL, MariaDB, or SQLite databases through Claude Desktop using natural language queries.Last updated -Python
- -securityFlicense-qualityA natural language interface that allows Claude to execute SQL queries on your local MySQL databases, enabling database interaction using natural language.Last updated -2Python
- -securityFlicense-qualityA 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 -Python