Definition
Assembly: Microsoft.OData.Mcp.Tools.dll Namespace: Microsoft.OData.Mcp.Tools.Services Inheritance: System.ObjectSyntax
Summary
Background service that generates dynamic MCP tools based on OData metadata.Constructors
.ctor
Initializes a new instance of the DynamicToolGeneratorService class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
logger | Microsoft.Extensions.Logging.ILogger<Microsoft.OData.Mcp.Tools.Services.DynamicToolGeneratorService> | The logger. |
toolFactory | Microsoft.OData.Mcp.Core.Tools.IMcpToolFactory | The tool factory for generating dynamic tools. |
metadataParser | Microsoft.OData.Mcp.Core.Parsing.ICsdlMetadataParser | The CSDL metadata parser. |
configuration | Microsoft.Extensions.Options.IOptions<Microsoft.OData.Mcp.Core.Configuration.McpServerConfiguration> | The server configuration. |
dynamicTools | Microsoft.OData.Mcp.Core.Server.DynamicODataMcpTools | The dynamic OData tools instance. |
serviceProvider | System.IServiceProvider | The service provider for DI. |
.ctor Inherited
Inherited from
objectSyntax
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
StartAsync
Starts the service and generates dynamic tools.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken | System.Threading.CancellationToken | The cancellation token. |
Returns
Type:System.Threading.Tasks.Task
A task representing the asynchronous operation.
StopAsync
Stops the service.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken | System.Threading.CancellationToken | The cancellation token. |
Returns
Type:System.Threading.Tasks.Task
A task representing the asynchronous operation.
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- Microsoft.Extensions.Hosting.IHostedService