test(mcp): add edge case coverage for MCP registry serialization#218
Merged
2-Coatl merged 2 commits intofeature/implement-mcp-server-installation-and-configuration-05-50-55from Nov 18, 2025
Conversation
Co-authored-by: 2-Coatl <121911012+2-Coatl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] WIP address feedback on MCP registry builder
test(mcp): add edge case coverage for MCP registry serialization
Nov 16, 2025
2-Coatl
approved these changes
Nov 18, 2025
93b30c3
into
feature/implement-mcp-server-installation-and-configuration-05-50-55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Este PR añade cobertura de pruebas para casos extremos en el builder de registro MCP, respondiendo al feedback de revisión de código en PR #216.
Cambios principales
1. Tests de casos extremos (7 nuevos tests)
Registros vacíos
test_empty_registry_serializes_correctly: Valida serialización correcta cuando no hay servidores remotos ni localesServidores remotos con headers
test_remote_server_with_custom_headers: Verifica inclusión de headers personalizados (Authorization, X-Custom-Header)test_remote_server_without_custom_headers: Confirma que headers no se incluyen cuando no están definidosServidores locales con variables de entorno
test_local_server_with_custom_env_variables: Valida serialización de env vars (NODE_ENV, DEBUG)test_local_server_without_custom_env_variables: Confirma que env no se incluye cuando no está definidoColecciones mixtas vacías
test_registry_with_mixed_empty_collections: Registry con solo servidores remotostest_registry_with_only_local_servers: Registry con solo servidores locales2. Ejemplo de uso
Estadísticas
Archivos modificados
Testing realizado
Integración con procesos existentes
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.