
Delphi Codecoverage
io.github.avelsysPublished by GitHub account avelsysv1.0.0Updated Oct 24, 2026
Guide + snippets for Delphi/DUnitX projects that work with the DelphiCodeCoverage tool.
Overview
A local MCP server that gives an assistant a searchable guide and ready-made code snippets for setting up Delphi projects, DUnitX tests and CI with DelphiCodeCo
- What you can do
- List and read guide topics covering project setup, DUnitX runner, CLI usage, CI integration and the Form/MVP pattern, with keyword search across topics and context excerpts. List, search and retrieve ready-made snippets by category, such as unit skeletons, DUnitX test fixtures, console project files, coverage settings, CLI invocation and Windows CI scripts.
- When to use it
- Useful when configuring a Delphi or DUnitX project to work with the DelphiCodeCoverage tool, wiring coverage into a CI pipeline, or looking for a starting snippet for tests, project settings or coverage invocation.
- Requirements
- Runs locally over stdio, typically via npx or a global npm install, so Node.js and npm are needed. No accounts, API keys or environment variables are declared. Desktop MCP clients only.
Installation
In SourceWeft
- Open Delphi Codecoverage in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-delphi-codecoverage
Servidor MCP (Model Context Protocol) com um guia prático + snippets de código prontos para configurar projetos Delphi, testes DUnitX e scripts de CI de forma que funcionem corretamente com a DelphiCodeCoverage — indexado e pesquisável por ferramentas como Claude Code, Claude Desktop ou qualquer outro cliente MCP.
O guia foi escrito a partir da documentação e do código-fonte públicos do
projeto DelphiCodeCoverage/DelphiCodeCoverage (README oficial, scripts
.bat de exemplo) — cobre configuração de .dproj/Map file, estrutura de
projeto runner DUnitX, uso da CLI CodeCoverage.exe, integração em CI e o
padrão de separação Form/lógica (MVP) que torna Forms de fato cobríveis.
Sobre licenciamento: a DelphiCodeCoverage (a ferramenta em si) é licenciada em Mozilla Public License 2.0. O DUnitX é licenciado em Apache License 2.0. O conteúdo deste repositório (guia e snippets) é uma obra original, escrita pelo autor deste pacote a partir da documentação pública desses projetos — veja LICENSE para detalhes.
O que este servidor oferece
Tópicos disponíveis
project-setup (Map file/.dproj), dunitx-runner (projeto console runner),
cli-usage (parâmetros da CodeCoverage.exe), ci-integration (pipeline
build → testes → cobertura), form-mvp-pattern (como manter Forms
cobríveis via separação MVP).
Categorias de snippets disponíveis
unit_skeleton, dunitx_test_fixture, dunitx_console_dpr,
dproj_coverage_settings, cli_invocation, ci_script_windows.
Instalação
Opção 1 — via npx (recomendado, sem instalar nada globalmente)
Opção 2 — instalar global via npm
Opção 3 — a partir do código-fonte
Depois de registrado, o servidor fica disponível em qualquer projeto (escopo
user) ou só no projeto atual (--scope local, se preferir isolar).
Configuração manual (claude_desktop_config.json ou .mcp.json)
Desenvolvimento
Conteúdo do guia e dos snippets vive direto em src/topics.ts e
src/snippets.ts (TypeScript puro, sem etapa de ingest/build de dados) —
para atualizar, edite esses arquivos e rode npm run build.
O servidor usa stdio (StdioServerTransport) — para testar localmente sem um
cliente MCP completo, use o MCP Inspector:
Contribuindo
Issues e PRs são bem-vindos — principalmente correções de conteúdo (algum parâmetro de CLI desatualizado em relação a uma versão nova da DelphiCodeCoverage) ou novos snippets. Abra uma issue descrevendo o que mudou antes de um PR grande.
Licença
MIT — veja LICENSE.
Source: README.md at commit cd76ecd
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.