IBeam.Ai.Services 2.9.44

dotnet add package IBeam.Ai.Services --version 2.9.44
                    
NuGet\Install-Package IBeam.Ai.Services -Version 2.9.44
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IBeam.Ai.Services" Version="2.9.44" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IBeam.Ai.Services" Version="2.9.44" />
                    
Directory.Packages.props
<PackageReference Include="IBeam.Ai.Services" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add IBeam.Ai.Services --version 2.9.44
                    
#r "nuget: IBeam.Ai.Services, 2.9.44"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package IBeam.Ai.Services@2.9.44
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=IBeam.Ai.Services&version=2.9.44
                    
Install as a Cake Addin
#tool nuget:?package=IBeam.Ai.Services&version=2.9.44
                    
Install as a Cake Tool

IBeam.Ai.Services

IBeam.Ai.Services provides MCP protocol orchestration, tool registration, and default role/scope filtering for IBeam-backed applications.

dotnet add package IBeam.Ai.Services

When To Use This

  • You want to register agent tools without wiring HTTP endpoints.
  • You need IAgentMcpService to process MCP JSON-RPC requests.
  • You want default tool access checks based on authenticated claims.
  • You want AI tool calls to align with IBeam service policies and audit patterns.

What This Package Contains

Area Type(s) Purpose
Tool registration AgentToolRegistryBuilder Builds a catalog of agent tools.
Catalog IAgentToolCatalog implementation Serves the registered tool list.
MCP orchestration AgentMcpService Handles tool list/call requests.
Access policy DefaultAgentToolAccessPolicy Checks required scopes/roles/permissions against claims.
DI AddIBeamAiServices(...) Registers AI services, IBeam service policies, and service auditing.

Architecture Fit

API <-- DTO/model object --> Service <-- Entity --> Repository

MCP tool handlers should behave like controller actions: bind tool arguments, call a service, and return the result. Business logic, permissions, licensing checks, logging, and validation should remain in services.

Quick Start

using IBeam.Ai;

builder.Services.AddIBeamAiServices(tools =>
{
    tools.AddTool(
        name: "app.work.list_cards",
        description: "List work cards visible to the current agent.",
        inputSchema: AgentToolSchemas.EmptyObject(),
        moduleKey: "work",
        requiredScopes: [ "api-scope:work" ],
        handler: async (context, arguments, ct) =>
        {
            var service = context.Services.GetRequiredService<IWorkItemService>();
            return await service.ListAsync(ct);
        });
});

For ASP.NET Core endpoint wiring, use IBeam.Ai.Api.

Default Tool Access

DefaultAgentToolAccessPolicy allows authenticated callers when a tool has no required scopes. When RequiredScopes are present, it checks common claim types:

role, roles, scope, scopes, scp, permission, permissions

Values may be comma- or space-separated.

Custom Access Policy

Replace IAgentToolAccessPolicy when module access needs app-specific rules:

builder.Services.AddScoped<IAgentToolAccessPolicy, AppAgentToolAccessPolicy>();

Example custom policy shape:

public sealed class AppAgentToolAccessPolicy : IAgentToolAccessPolicy
{
    private readonly ILicenseAuthorizer _licenses;

    public AppAgentToolAccessPolicy(ILicenseAuthorizer licenses)
    {
        _licenses = licenses;
    }

    public async ValueTask<AgentToolAccessResult> CanAccessAsync(
        AgentToolContext context,
        AgentToolDefinition tool,
        CancellationToken cancellationToken = default)
    {
        if (context.TenantId is null || context.AgentKey is null)
        {
            return AgentToolAccessResult.Deny("Tenant and agent context are required.");
        }

        await _licenses.RequireEntitlementAsync(
            context.TenantId.Value,
            new LicenseSubject(LicenseSubjectTypes.Agent, context.AgentKey),
            $"mcp:{tool.ModuleKey}",
            cancellationToken);

        return AgentToolAccessResult.Allow();
    }
}

Service Operations, Auditing, And Permissions

The AI services package registers IBeam service policies and service auditing. Tool handlers should call service methods tagged with [IBeamOperation], such as work.cards.list or pricing.save, so the same audit and permission model applies to agent-driven work.

Data Storage

This package does not create tables or storage. Any persistence comes from the services called by tool handlers.

Extended Docs And Agent Guidance

Agents should avoid putting durable business rules in tool handlers.

Troubleshooting

Problem Likely Cause Fix
Tool call denied Missing required scope/role/permission claim Verify API credential claims and requiredScopes.
Tool handler cannot resolve a service Service not registered in DI Register the domain service in the host application.
Tool bypasses audit Handler calls repository directly Route work through an operation-tagged service.

Version Notes

  • Targets net10.0.
  • Package version is assigned by the repository release workflow.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on IBeam.Ai.Services:

Package Downloads
IBeam.Ai.Api

ASP.NET Core endpoint wiring for IBeam AI agent and MCP tooling.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.9.44 85 8/3/2026
2.9.43 101 7/29/2026
2.9.1 112 7/23/2026
2.9.0 108 7/21/2026
2.8.2 101 7/21/2026
2.8.1 99 7/21/2026
2.8.0 108 7/21/2026
2.7.0 104 7/21/2026
2.6.0 103 7/20/2026
2.5.0 107 7/17/2026
2.4.2 112 7/16/2026
2.4.1 105 7/14/2026
2.4.0 117 6/24/2026
2.3.0 112 6/24/2026
2.2.0 128 6/23/2026
2.1.0 129 6/23/2026