🐞 Bug Summary
Briefly describe the issue or unexpected behavior.
Intention was to invoke custom code for license check before actual MCP tool gets invoked. When we added tool_pre_invoke as plugin, tool calls are not getting blocked as it seems tool gets executed before plugin gets called.
🧩 Affected Component
Select the area of the project impacted:
🔁 Steps to Reproduce
- created a plugin with config.yaml and py file for plugin
- start gateway with plugin
- observe tool call execution
🤔 Expected Behavior
What should have happened instead?
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key |
Value |
| Version or commit |
e.g. v0.9.0 or main@a1b2c3d |
| Runtime |
e.g. Python 3.11, Gunicorn |
| Platform / OS |
e.g. Ubuntu 22.04, macOS |
| Container |
e.g. Docker, Podman, none |
🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.
🐞 Bug Summary
Briefly describe the issue or unexpected behavior.
Intention was to invoke custom code for license check before actual MCP tool gets invoked. When we added tool_pre_invoke as plugin, tool calls are not getting blocked as it seems tool gets executed before plugin gets called.
🧩 Affected Component
Select the area of the project impacted:
mcpgateway- APImcpgateway- UI (admin panel)mcpgateway.wrapper- stdio wrapperTool Call
🔁 Steps to Reproduce
🤔 Expected Behavior
What should have happened instead?
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.
🧠 Environment Info
You can retrieve most of this from the
/versionendpoint.e.g. v0.9.0 or main@a1b2c3de.g. Python 3.11, Gunicorne.g. Ubuntu 22.04, macOSe.g. Docker, Podman, none🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.