Class DatabaseToolsMcpServer
Allows the creation, configuration and management of an MCP server.
Inherited Members
Namespace: Oci.DatabasetoolsService.Models
Assembly: OCI.DotNetSDK.Databasetools.dll
Syntax
[JsonConverter(typeof(DatabaseToolsMcpServerModelConverter))]
public class DatabaseToolsMcpServer
Properties
AccessTokenExpiryInSeconds
Declaration
[JsonProperty(PropertyName = "accessTokenExpiryInSeconds")]
public int? AccessTokenExpiryInSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Access token expiry in seconds |
BuiltInRoles
Declaration
[JsonProperty(PropertyName = "builtInRoles")]
public List<DatabaseToolsMcpServerBuiltInRole> BuiltInRoles { get; set; }
Property Value
| Type | Description |
|---|---|
| List<DatabaseToolsMcpServerBuiltInRole> | Built-in roles associated with the MCP Server. |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compartment containing the Database Tools MCP server. |
Remarks
Required
CustomRoles
Declaration
[JsonProperty(PropertyName = "customRoles")]
public List<DatabaseToolsMcpServerCustomRole> CustomRoles { get; set; }
Property Value
| Type | Description |
|---|---|
| List<DatabaseToolsMcpServerCustomRole> | Custom roles associated with the MCP Server. |
DatabaseToolsConnectionId
Declaration
[Required(ErrorMessage = "DatabaseToolsConnectionId is required.")]
[JsonProperty(PropertyName = "databaseToolsConnectionId")]
public string DatabaseToolsConnectionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the related Database Tools connection. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A human-readable description of the Database Tools MCP server. |
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A meaningful, human-readable label displayed to end users. Not required to be unique and can be changed after creation. Do not include confidential information. |
Remarks
Required
Endpoints
Declaration
[JsonProperty(PropertyName = "endpoints")]
public List<DatabaseToolsMcpServerEndpoint> Endpoints { get; set; }
Property Value
| Type | Description |
|---|---|
| List<DatabaseToolsMcpServerEndpoint> | Invoke endpoints for the MCP server. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the Database Tools MCP server. |
Remarks
Required
LifecycleDetails
Declaration
[JsonProperty(PropertyName = "lifecycleDetails")]
public string LifecycleDetails { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state. |
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DatabaseToolsMcpServerLifecycleState? LifecycleState { get; set; }
Property Value
| Type | Description |
|---|---|
| DatabaseToolsMcpServerLifecycleState? | The current state of the Database Tools MCP server. |
Remarks
Required
Locks
Declaration
[JsonProperty(PropertyName = "locks")]
public List<ResourceLock> Locks { get; set; }
Property Value
| Type | Description |
|---|---|
| List<ResourceLock> | Locks associated with this resource. |
RefreshTokenExpiryInSeconds
Declaration
[JsonProperty(PropertyName = "refreshTokenExpiryInSeconds")]
public int? RefreshTokenExpiryInSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Refresh token expiry in seconds |
RelatedResource
Declaration
[Required(ErrorMessage = "RelatedResource is required.")]
[JsonProperty(PropertyName = "relatedResource")]
public DatabaseToolsMcpServerRelatedResource RelatedResource { get; set; }
Property Value
| Type | Description |
|---|---|
| DatabaseToolsMcpServerRelatedResource |
Remarks
Required
RuntimeIdentity
Declaration
[Required(ErrorMessage = "RuntimeIdentity is required.")]
[JsonProperty(PropertyName = "runtimeIdentity")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DatabaseToolsMcpServerRuntimeIdentity? RuntimeIdentity { get; set; }
Property Value
| Type | Description |
|---|---|
| DatabaseToolsMcpServerRuntimeIdentity? | Specifies the identity used when accessing OCI resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller\u2019s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the MCP Server\u2019s resource principal (RPST). |
Remarks
Required
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, Dictionary<string, object>> | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The time the Database Tools MCP server was created. An RFC3339 formatted datetime string. |
Remarks
Required
TimeUpdated
Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The time the Database Tools MCP server was updated. An RFC3339 formatted datetime string. |
Remarks
Required