Skip to content

[AI-204] Add centralized structured logging for MCP tool execution#299

Open
Kartikey-Malkani wants to merge 1 commit intoopenMF:mainfrom
Kartikey-Malkani:feat/mcp-tool-execution-logging
Open

[AI-204] Add centralized structured logging for MCP tool execution#299
Kartikey-Malkani wants to merge 1 commit intoopenMF:mainfrom
Kartikey-Malkani:feat/mcp-tool-execution-logging

Conversation

@Kartikey-Malkani
Copy link
Copy Markdown

@Kartikey-Malkani Kartikey-Malkani commented Mar 29, 2026

Jira: https://mifosforge.jira.com/browse/AI-204

Summary - Add centralized MCP tool execution logging wrapper in mcp_server.py - Log tool name, parameters, execution duration, and response status - Ensure safe serialization and no crashes from complex object types - Added example comments showing log output format ## Validation behavior - Logs all tool invocations (success and failure) - Captures execution timing for performance analysis - Provides audit trail for security and debugging ## Verification - Tests pass: 10 passed Closes AI-204

@gyanLM10
Copy link
Copy Markdown
Contributor

Good work @Kartikey-Malkani , lgtm for me - Let me know your thoughts @IOhacker

Copy link
Copy Markdown
Contributor

@IOhacker IOhacker left a comment

Choose a reason for hiding this comment

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

Add this jira ticket in the PR title https://mifosforge.jira.com/browse/AI-204

@Kartikey-Malkani Kartikey-Malkani changed the title Add centralized structured logging for MCP tool execution [AI-204] Add centralized structured logging for MCP tool execution Mar 30, 2026
@Kartikey-Malkani
Copy link
Copy Markdown
Author

Thanks for the feedback! I’ve incorporated the Jira ticket in both the PR title and description, and made the requested updates.

Also ensured consistency across validation, logging, and documentation changes.

Please let me know if any further refinements are needed.

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.

3 participants