IMcpResourceContextProviderFactory
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe factory that builds an AI.AIContextProvider for
AgentDefinition.McpResourceUris (Mode A).
public interface IMcpResourceContextProviderFactoryRemarks
Section titled “Remarks”The abstraction lives in AgentPrism.Abstractions because
AgentDefinitionCompiler (AgentPrism.Core) wants to add MCP
resources to the context but does not depend on the AgentPrism.Mcp
package: MCP stays an optional package. Same reason as
IMcpToolRefresher.
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.