feat: multi-language code parsing and XML support (v3.6.0) - #22
Merged
Merged
Conversation
Add language-aware code parsing for C, C++, JavaScript, TypeScript with per-language function/class/import extraction via regex profiles. Add XML parser with root element and namespace metadata extraction. All 8 new formats default enabled. Bump version to 3.6.0.
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.
Summary
.c), C++ (.cpp/.h), JavaScript (.js/.jsx), TypeScript (.ts/.tsx) with per-language regex extraction of functions, classes/structs/interfaces, imports/includes.xml) with root element and namespace metadata extractionlanguagemetadata per file type (was hardcoded to"python"for all code files including.mqh/.mq4)Changes
mcp_server/ingestion.pyLANGUAGE_PROFILESconstant, language-aware_parse_code, new_parse_xml, dispatch table updatedmcp_server/config.py_SUPPORTED_SUFFIXES+supported_formatsdefault + fallback listconfig.example.yamlpresets/developer.yamlpresets/cybersecurity.yamltests/conftest.pytests/test_ingestion.pytests/test_config.pyREADME.mdpyproject.tomlSafety
_parse_codeuses character-identical regex patterns viaLANGUAGE_PROFILES[".py"]test_python_parse_unchangedvalidates Python output is identicalTest plan