Add Common OCI Client Library and Update user-agent#143
Open
cboffa13 wants to merge 2 commits intooracle:mainfrom
Open
Add Common OCI Client Library and Update user-agent#143cboffa13 wants to merge 2 commits intooracle:mainfrom
cboffa13 wants to merge 2 commits intooracle:mainfrom
Conversation
7937e73 to
6a6af50
Compare
1260bf9 to
0e19860
Compare
0e19860 to
8905ee2
Compare
Member
Author
|
Things still need to be done
|
8905ee2 to
588043d
Compare
588043d to
9f35f21
Compare
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.
Description
These changes add a common library which can be shared across many mcp servers. Notably this library exports a decorator called
@with_oci_clientwhich automatically configures a client based on the SDK client class given so we dont need theget_identity_client,get_compute_clientetc... functions. Additionally it adds the mcp server tool's name to the user_agent header for tracking in the format ofserver/version (tool_name)Fixes # (issue) - TBD
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
server/version (tool_name)Checklist: