Adding resource principal and instance principal auth methods for OCI Database MCP Server#181
Open
shyam2511 wants to merge 1 commit intooracle:mainfrom
Open
Adding resource principal and instance principal auth methods for OCI Database MCP Server#181shyam2511 wants to merge 1 commit intooracle:mainfrom
shyam2511 wants to merge 1 commit intooracle:mainfrom
Conversation
0e5b6ab to
db761e7
Compare
… Database MCP server
db761e7 to
b8a37e6
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.
Database MCP server
Description
This change adds multiple authentication methods to the OCI Database MCP server:
--auth-method instance_principal)--auth-method resource_principal) with RPST flowIt introduces CLI arguments for selecting auth mode and passing RP-specific values, updates client initialization logic to branch by auth method, and documents local vs SSH-remote usage patterns (including required RP parameters).
Version was bumped from
1.0.3to1.1.0.Motivation and context
Previously, the server was effectively tied to security-token config-file auth. This limited deployability for OCI-native runtime environments (compute instances / OCI resources) where instance principal or resource principal auth is preferred and more secure for automation.
This update enables those deployment patterns and clarifies how to pass auth configuration correctly in remote SSH MCP setups.
Dependencies required for this change
pyproject.toml.fastmcp,oci,mcp,pytest-cov).requests,cryptography) via current environment/dependency resolution.Fixes #
Type of change
How Has This Been Tested?
Tested the changes locally, as well as on a DB System (to test RP based auth) and Compute Instance (to test IP auth)