CodeEffects.Rule.Mcp Namespace

Assembly: CodeEffects.Rule.Mcp.dll

Contains the types that add an embedded Model Context Protocol (MCP) server to an ASP.NET Core application, so AI clients can work with the Rule Repository and the Audit library under the permissions of the person they act for.

Contains the following types:

Remarks

The library targets .NET 8 and references ASP.NET Core, so the application that hosts the server is an ASP.NET Core application. The server runs inside your application: you register it with AddCodeEffectsMcp(..), choose what it offers with WithRepository(..) and WithAudit(..), and map its endpoint with MapCodeEffectsMcp(..).

You need the Rule Repository, the Audit library, or both. The server offers the tools of the libraries you add and nothing else. See Rule Storage in Rule Repository for the repository itself.

The server never signs anyone in and never stores a credential. Your application authenticates each request with its own scheme, and the delegate you set as CodeEffectsMcpOptions.MapCaller turns the verified caller into an McpCaller: who the user is, which AI agent acts for them, and what they are permitted to do. The list of tools a client sees follows that permission set.

Ask on Stack Overflow - Yes, it's still active
Ask in GitHub Discussions

p102

l097 --

l102

p101

×