Cedardiff MCP Server
시더디프 MCP 서버
CEDARScript 문법 규칙으로 파일 편집
이는 코드 조작을 위한 SQL 유사 언어인 CEDARScript를 구현한 TypeScript 기반 MCP 서버입니다. 다음과 같은 기능을 제공합니다.
코드 조작 명령에 대한 포괄적인 문법
CEDARScript 작업 실행을 위한 도구
복잡한 패턴 매칭 및 변환 지원
특징
문법
코드 작업(DDL, DML)을 위한 SQL 유사 구문
파일, 함수, 클래스 및 메서드 타겟팅 지원
정규식, 접두사/접미사 및 들여쓰기 규칙을 사용한 패턴 매칭
블록 수준 코드 조작 기능
도구
edit_file- CEDARScript 명령 실행스크립트와 작업 디렉토리를 매개변수로 사용합니다.
파일 생성, 삭제, 이동 및 업데이트를 지원합니다.
패턴 기반 코드 변환
구현 상태
현재 테스트 결과 다음 사항이 밝혀졌습니다.
명령어 구문 분석이 정상적으로 작동합니다.
문법은 복잡한 연산을 지원합니다
파일 쓰기 메커니즘이 개선되어야 합니다.
성공 메시지가 반환되었지만 변경 사항이 유지되지 않았습니다.
Related MCP server: ast-editor
개발
종속성 설치:
지엑스피1
서버를 빌드하세요:
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"추가했습니다."module": "ESNext"사용하도록tsconfig.json업데이트했습니다.가져오기/내보내기 명령문을 ES 모듈 구문으로 변환했습니다.
ES 모듈과 호환되도록 업데이트된 유형 정의
호환성 참고 사항
Node.js 버전 12 이상을 사용하고 있는지 확인하세요.
모듈 가져오기의 경우
require()대신import사용하세요.로컬 파일을 가져올 때
.js확장자를 사용하세요.
Available Tools
1 tooledit_fileC
Edit a file using CEDARScript syntax
Inputs: script (required), workingDir (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'edit_file' has a clearly distinct purpose that cannot be confused with any other tool in this set.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'edit_file' follows a clear verb_noun pattern, and there are no other tools to cause inconsistency.
A single tool is generally too few for most server purposes, as it limits functionality and suggests an incomplete or narrow scope. For a server named 'Cedardiff MCP Server' which implies CEDAR-related operations, one tool feels insufficient to cover typical needs like validation, querying, or other file operations.
The server is severely incomplete for its apparent domain of CEDAR operations. With only an 'edit_file' tool, there are obvious gaps such as creating, reading, validating, or deleting files, and no coverage of other CEDAR-related tasks like policy management or analysis.
Related MCP Connectors
SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Ask who calls a route, what a change breaks or who reads a field, across a system's repos.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA runtime-free MCP server that converts source code into AST🌲, regardless of language.89MIT
- AlicenseAqualityBmaintenanceAST-targeted code editing MCP server with 28 surgical tools for structural edits across 11 languages. Built on tree-sitter, replaces brittle search/replace with byte-correct edits keyed by symbol names.228MIT
- AlicenseNot gradedqualityDmaintenanceTransforms TypeScript and JavaScript codebases into a persistent code knowledge graph in SQLite, enabling structural codebase navigation via deterministic graph queries without reading source files.26 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables parsing, indexing, and querying source code as structured knowledge, providing code exploration, spec generation, and migration tools via 20 MCP tools.MIT