.NET API
IMcpResourceContextProviderFactory
Tracon.Abstractions.dllThe factory that builds an AI.AIContextProvider for
AgentDefinition.McpResourceUris (Mode A).
public interface IMcpResourceContextProviderFactoryRemarks
Section titled “Remarks”The abstraction lives in Tracon.Abstractions because
AgentDefinitionCompiler (Tracon.Core) wants to add MCP
resources to the context but does not depend on the Tracon.Mcp
package: MCP stays an optional package. Same reason as
IMcpToolRefresher.
DI lifetime — singleton. Registered as a singleton with
TryAdd; a consumer’s own registration wins. IMcpResourceContextProviderFactory.Create
itself is a pure factory call — the returned AI.AIContextProvider
carries the per-agent state, not this factory.
Methods
Section titled “Methods”Create(IReadOnlyList<string>, string)
Section titled “ Create(IReadOnlyList<string>, string)”Builds a context provider from the given resource references.
AIContextProvider Create(IReadOnlyList<string> resourceReferences, string tenantId)Parameters
Section titled “Parameters”resourceReferences IReadOnlyList<string>
References in "{server}:{uri}" form (AgentDefinition.McpResourceUris).
tenantId string
The tenant identifier. Resources are read only from this tenant’s servers.
Returns
Section titled “Returns”AIContextProvider
The context provider.