Skip to content

Add artifact relations tool and enrich fetch_artifacts with relation metadata#11

Merged
rodion-m merged 4 commits into
mainfrom
feature/mcp-relations-update
Apr 7, 2026
Merged

Add artifact relations tool and enrich fetch_artifacts with relation metadata#11
rodion-m merged 4 commits into
mainfrom
feature/mcp-relations-update

Conversation

@sciapanCA

Copy link
Copy Markdown
Contributor

Adds a new get_artifact_relations MCP tool and enriches fetch_artifacts with optional call relation metadata.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new get_artifact_relations tool to the CodeAlive MCP server, enabling exploration of call graphs, inheritance hierarchies, and symbol references. Additionally, the fetch_artifacts tool has been updated to include call relations in its XML output and wrap source code within a new <content> element. Review feedback focuses on enhancing the robustness of XML generation by ensuring that potential null values from API responses are handled safely before calling html.escape and that all XML attributes are consistently escaped to prevent malformed output.

Comment thread src/tools/artifact_relations.py Outdated
Comment thread src/tools/artifact_relations.py Outdated
Comment thread src/tools/fetch_artifacts.py Outdated
Comment thread src/tools/artifact_relations.py Outdated
@rodion-m rodion-m merged commit 9f1fbe2 into main Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants