Skip to content

Comments

Add Common OCI Client Library and Update user-agent#143

Open
cboffa13 wants to merge 2 commits intooracle:mainfrom
cboffa13:cboffa/feature/common-client
Open

Add Common OCI Client Library and Update user-agent#143
cboffa13 wants to merge 2 commits intooracle:mainfrom
cboffa13:cboffa/feature/common-client

Conversation

@cboffa13
Copy link
Member

@cboffa13 cboffa13 commented Feb 12, 2026

Description

These changes add a common library which can be shared across many mcp servers. Notably this library exports a decorator called @with_oci_client which automatically configures a client based on the SDK client class given so we dont need the get_identity_client, get_compute_client etc... functions. Additionally it adds the mcp server tool's name to the user_agent header for tracking in the format of server/version (tool_name)

Fixes # (issue) - TBD

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • You should be able to use the all of the existing features of any oci-specific server without any loss of functionality
  • The mcp tool name should be included in the request header: server/version (tool_name)

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 Feb 12, 2026
@cboffa13 cboffa13 force-pushed the cboffa/feature/common-client branch 7 times, most recently from 7937e73 to 6a6af50 Compare February 13, 2026 01:44
@cboffa13 cboffa13 force-pushed the cboffa/feature/common-client branch 10 times, most recently from 1260bf9 to 0e19860 Compare February 13, 2026 21:43
@cboffa13 cboffa13 changed the title Add Common OCI Client Library Add Common OCI Client Library and Update user-agent Feb 13, 2026
@cboffa13 cboffa13 force-pushed the cboffa/feature/common-client branch from 0e19860 to 8905ee2 Compare February 13, 2026 22:15
@cboffa13
Copy link
Member Author

Things still need to be done

  • Test all the servers
  • Add change to oci-cloud-mcp
  • Add change to oci-api-mcp
  • add change to oci-database-mcp-server

@cboffa13 cboffa13 force-pushed the cboffa/feature/common-client branch from 8905ee2 to 588043d Compare February 13, 2026 22:37
@cboffa13 cboffa13 force-pushed the cboffa/feature/common-client branch from 588043d to 9f35f21 Compare February 13, 2026 22:46
@cboffa13 cboffa13 marked this pull request as ready for review February 13, 2026 22:48
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.

1 participant