Cedardiff MCP Server
Servidor MCP cedardiff
Editar archivos con reglas gramaticales de CEDARScript
Este es un servidor MCP basado en TypeScript que implementa CEDARScript, un lenguaje similar a SQL para la manipulación de código. Ofrece:
Una gramática completa para comandos de manipulación de código
Herramientas para ejecutar operaciones CEDARScript
Soporte para transformaciones y coincidencias de patrones complejos
Características
Gramática
Sintaxis similar a SQL para operaciones de código (DDL, DML)
Soporte para segmentación de archivos, funciones, clases y métodos
Coincidencia de patrones con expresiones regulares, prefijos/sufijos y reglas de sangría
Capacidades de manipulación de código a nivel de bloque
Herramientas
edit_file- Ejecutar comandos CEDARScriptToma el script y el directorio de trabajo como parámetros
Admite la creación, eliminación, movimiento y actualización de archivos.
Transformaciones de código basadas en patrones
Estado de implementación
Las pruebas actuales han revelado:
El análisis de comandos funciona correctamente
La gramática admite operaciones complejas
El mecanismo de escritura de archivos necesita mejoras
Los mensajes de éxito regresaron pero los cambios no persistieron
Related MCP server: ast-editor
Desarrollo
Instalar dependencias:
npm installConstruir el servidor:
npm run buildPara desarrollo con reconstrucción automática:
npm run watchInstalación
Para utilizar con Claude Desktop, agregue la configuración del servidor:
En MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json En Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"cedardiff": {
"command": "/path/to/cedardiff/build/index.js"
}
}
}Depuración
Dado que los servidores MCP se comunican a través de stdio, la depuración puede ser complicada. Recomendamos usar el Inspector MCP , disponible como script de paquete:
npm run inspectorEl Inspector proporcionará una URL para acceder a las herramientas de depuración en su navegador.
Migración del módulo ES
El proyecto se ha migrado para usar módulos ES. Los cambios clave incluyen:
Se agregó
"type": "module"apackage.jsonSe actualizó
tsconfig.jsonpara usar"module": "ESNext"Declaraciones de importación/exportación convertidas a la sintaxis del módulo ES
Definiciones de tipos actualizadas para que sean compatibles con los módulos ES
Notas de compatibilidad
Asegúrese de estar utilizando Node.js versión 12 o superior
Utilice
importen lugar derequire()para las importaciones de módulosUtilice la extensión
.jsal importar archivos locales
Available Tools
1 tooledit_fileC
Edit a file using CEDARScript syntax
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | CEDARScript commands to execute | |
| workingDir | Yes | Working directory for resolving file paths |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'Edit a file' which implies mutation, but fails to describe critical behaviors like permissions required, whether edits are reversible, error handling, or side effects. This leaves significant gaps for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It is appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary elaboration, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that this is a mutation tool with no annotations and no output schema, the description is insufficiently complete. It lacks details on behavioral traits, error conditions, return values, or practical usage context, which are critical for safe and effective tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the schema already fully documents both parameters ('script' and 'workingDir'). The description adds no additional parameter semantics beyond what's in the schema, such as examples of CEDARScript commands or working directory conventions, meeting the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Edit a file') and specifies the method ('using CEDARScript syntax'), providing a specific verb+resource combination. However, without sibling tools for comparison, it cannot demonstrate differentiation from alternatives, so it doesn't reach the highest score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus other file editing methods or alternatives. It lacks context about prerequisites, constraints, or typical use cases, offering only the basic functionality without usage context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v1.0.0- First observed
edit_file
TDQS
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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
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.
Query Allen-Bradley and Siemens PLC projects, live tag values, and analyses in plain English.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA runtime-free MCP server that converts source code into AST🌲, regardless of language.86MIT
- AlicenseAqualityCmaintenanceAST-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.28MIT
- AlicenseNot gradedqualityCmaintenanceTransforms TypeScript and JavaScript codebases into a persistent code knowledge graph in SQLite, enabling structural codebase navigation via deterministic graph queries without reading source files.11MIT
- AlicenseNot gradedqualityDmaintenanceEnables parsing, indexing, and querying source code as structured knowledge, providing code exploration, spec generation, and migration tools via 20 MCP tools.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/oldrepublicwizard/cedarscript-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server