Skip to content

IMcpResourceContextProviderFactory

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The factory that builds an AI.AIContextProvider for AgentDefinition.McpResourceUris (Mode A).

public interface IMcpResourceContextProviderFactory

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.

Builds a context provider from the given resource references.

AIContextProvider Create(IReadOnlyList<string> resourceReferences, string tenantId)

resourceReferences IReadOnlyList<string>

References in "{server}:{uri}" form (AgentDefinition.McpResourceUris).

tenantId string

The tenant identifier. Resources are read only from this tenant’s servers.

AIContextProvider

The context provider.