Skip to content

Reduce Oracle Database MCP Toolkit Tool Count by Consolidating Log Analyzer Tools#168

Open
Youssef-Erradi wants to merge 7 commits intooracle:mainfrom
Youssef-Erradi:main
Open

Reduce Oracle Database MCP Toolkit Tool Count by Consolidating Log Analyzer Tools#168
Youssef-Erradi wants to merge 7 commits intooracle:mainfrom
Youssef-Erradi:main

Conversation

@Youssef-Erradi
Copy link
Copy Markdown
Member

@Youssef-Erradi Youssef-Erradi commented Mar 25, 2026

Description

Due to the large number of the tools offered by the Oracle Database MCP Toolkit, this PR aims to consolidate the 8 log analyzer into 2: jdbc-analyzer and rdbms-analyzer.
Summary of the code changes:

  • Changed the tools Schemas in ToolSchemas.java by adding action enum:
    • For jdbc-analyzer:
      • stats: aggregated statistics such as errors, packets, bytes.
      • queries: executed SQL queries with timestamp/execution info.
      • errors: reported errors with stack trace/context.
      • connection-events: opened/closed connection events.
      • list-files: list visible files in a directory.
      • compare: compare two JDBC logs.
    • For rdbms-analyzer:
      • rdbms-errors: extract all reported errors from an RDBMS/SQLNet trace.
      • packet-dumps: extract packet dump records that match a specified connectionId.
  • In ServerConfig.java: Change log-analyzer toolset to include only jdbc-analyzer and rdbms-analyzer.
  • In LogAnalyzerTools.java: Replace all JDBC tools by getJDBCAnalyzerTool() and RDBMS tools by getRDBMSAnalyzerTool().
  • Update README.md to reflect the changes.

Type of change

  • Enhancement (non-breaking change which improves the product)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants