Repository navigation
[transforms] Add a transform pipeline for the tool catalog : Issue #61 - #86
Open
Shreyavemana wants to merge 5 commits into
Open
Shreyavemana wants to merge 5 commits into
Shreyavemana wants to merge 5 commits into
Conversation
This branch has not been deployed
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
Adds a transform pipeline for the tool catalog, allowing
tools/listandtools/callto be rewritten through an ordered chain of transforms. Closes #61.Changes
nitrostack/transforms/package withMcpTransform,McpTransformBase,CatalogTransform,TransformPipeline, andTransformContext.@mcp_app(transforms=[...])support. List transforms execute in declared order, andresolve_toolsupports chaining throughnext.ctx.call_tool(..., caller=name). The issuing transform is skipped, while guards and argument validation are applied to the real tool.validate_tool_argumentsfor normal and re-entrant calls.dispose()during shutdown.Tests
nextchaining, unknown tools, error mapping, disposal order, and duplicate names.tools/listbyte-for-byte parity against a pre-change baseline acrosslegacy,auto, andmodernprotocol eras; transform composition; failing transforms; and shutdown behavior.test_transforms_pipeline.py,test_transforms_reentrancy.py, andtest_transformsapp.py.tests/test_readme_examples.py::test_building_blocks_run. TheAuditLogreceivesA1twice instead of once. This appears to be a duplicate event/listener invocation and still needs investigation. Full-suite parity withmainhas not yet been established.Dependency
Depends on #22.