Packages
Beacon is published to nuget.org as Moberg.Beacon.* packages. Package IDs carry the Moberg. prefix; assemblies and namespaces stay Beacon.* (using Beacon.Core;). Every package targets net10.0.
Which packages you need
Section titled “Which packages you need”| Package | Contains | Needed when |
|---|---|---|
Moberg.Beacon.Core | Domain, MediatR handlers, EF model, project access, SQL execution gate, notifications, scheduling contracts | Always (every other package depends on it) |
Moberg.Beacon.Core.PostgreSql | Beacon’s metadata database on PostgreSQL: UsePostgreSql(...), migrations, pgvector support | Beacon’s own data lives in PostgreSQL |
Moberg.Beacon.Core.SqlServer | Beacon’s metadata database on SQL Server: UseSqlServer(...), migrations | Beacon’s own data lives in SQL Server |
Moberg.Beacon.Api | REST endpoints under /beacon/api, the SignalR hub, cookie/OIDC/JWT/API-key authentication, login and first-run setup endpoints, antiforgery, Data Protection helpers | You serve the UI or the REST API (in practice always) |
Moberg.Beacon.UI | The built React app as a Razor Class Library, served at /beacon | You want the UI |
Moberg.Beacon.AI | LLM providers (OpenAI, Azure OpenAI and Claude over plain HTTP, no vendor SDK), the request queue, documentation generation, grounding, learning loop, AI actors | AI features, and always with MCP (MCP depends on it) |
Moberg.Beacon.AI.Bedrock | The Amazon Bedrock LLM provider (AddBeaconBedrock()) | You use Bedrock as the LLM provider |
Moberg.Beacon.AI.Embeddings.Onnx | Local in-process ONNX embeddings (AddBeaconOnnxEmbeddings()) | You want semantic retrieval; without it retrieval stays keyword-based |
Moberg.Beacon.MCP | The MCP server at /beacon/mcp, its tools, filters, discovery documents, host endpoint tools | You expose Beacon to AI clients |
Moberg.Beacon.Gateway | AddBeaconMcpGateway: Beacon as the MCP gateway of your own application — its users as callers, its endpoints as tools, its documents as grounding, no data sources | You want an MCP server for your application rather than Beacon’s data product |
Moberg.Beacon.Testing | Test helpers for a gateway host: Entra-shaped test tokens, an in-memory user resolver, an MCP client over your test server | You test a gateway host’s MCP tools |
Moberg.Beacon.Doctor | The beacon-doctor .NET tool: checks a deployed MCP endpoint the way an MCP client sees it | You deploy an MCP endpoint (a tool, not a library reference) |
Moberg.Beacon.Connector.PostgreSql | PostgreSQL connector, and the PostgreSQL migration writer | You monitor PostgreSQL, or migrate data into it |
Moberg.Beacon.Connector.SqlServer | SQL Server connector, and the SQL Server migration writer | You monitor SQL Server, or migrate data into it |
Moberg.Beacon.Connector.MySql | MySQL connector, and the MySQL migration writer | You monitor MySQL, or migrate data into it |
Moberg.Beacon.Connector.AzureSynapse | Azure Synapse connector | You monitor Synapse |
Moberg.Beacon.Connector.Snowflake | Snowflake connector | You monitor Snowflake |
Moberg.Beacon.Connector.BigQuery | Google BigQuery connector | You monitor BigQuery |
Moberg.Beacon.Connector.Databricks | Databricks SQL connector | You monitor Databricks |
Moberg.Beacon.Connector.CloudWatch | AWS CloudWatch Logs Insights connector | You monitor CloudWatch |
Moberg.Beacon.Connector.Api | REST API connector (OpenAPI import, JSON to rows) | You monitor HTTP APIs |
Typical sets
Section titled “Typical sets”PostgreSQL metadata, monitoring PostgreSQL, with UI and MCP:
dotnet add package Moberg.Beacon.Coredotnet add package Moberg.Beacon.Core.PostgreSqldotnet add package Moberg.Beacon.Apidotnet add package Moberg.Beacon.UIdotnet add package Moberg.Beacon.AIdotnet add package Moberg.Beacon.MCPdotnet add package Moberg.Beacon.Connector.PostgreSqlSQL Server shop, no AI, no MCP:
dotnet add package Moberg.Beacon.Coredotnet add package Moberg.Beacon.Core.SqlServerdotnet add package Moberg.Beacon.Apidotnet add package Moberg.Beacon.UIdotnet add package Moberg.Beacon.Connector.SqlServerAdd your job runner too. For the reference implementation, use the Moberg.Warp.* packages (see Background jobs).
Dependency direction
Section titled “Dependency direction”Moberg.Beacon.Api → CoreMoberg.Beacon.AI → CoreMoberg.Beacon.AI.Bedrock → AIMoberg.Beacon.AI.Embeddings.Onnx → AIMoberg.Beacon.MCP → Core, AIMoberg.Beacon.Gateway → Core, Api, AI, MCP, UIMoberg.Beacon.Testing → GatewayMoberg.Beacon.Core.* → CoreMoberg.Beacon.Connector.* → CoreMoberg.Beacon.UI → (nothing; static web assets)Moberg.Beacon.Core itself references no server database driver or EF Core provider (it carries Microsoft.Data.Sqlite for the in-memory joins of cross-source queries). The SQL Server EF provider comes only with Moberg.Beacon.Core.SqlServer; Npgsql and pgvector only with Moberg.Beacon.Core.PostgreSql or the PostgreSQL connector; each connector brings its own driver. Data-migration writes go through the destination’s connector (IMigrationBulkWriter, registered by Add<Engine>Connector()), so Core carries no bulk-copy library either.
For scale: a PostgreSQL host with Core, Core.PostgreSql, Api, UI, AI, MCP and Connector.PostgreSql restores 45 third-party packages. The ONNX runtime’s native binaries and the AWS SDK arrive only with their optional packages.
Versions
Section titled “Versions”- There is no version in the source code. The git release tag is the package version: publishing a GitHub release packs every packable project with that tag and pushes it to nuget.org. Four-part tags are normalised by NuGet (a tag
4.5.0.0publishes4.5.0). - Keep every
Moberg.Beacon.*package on the same version. They are built and released together. - These docs track the
mainbranch. Check the release notes of the version you install for what it includes.
If you use central package management, pin one version for all of them:
<!-- Directory.Packages.props --><ItemGroup> <PackageVersion Include="Moberg.Beacon.Core" Version="$(BeaconVersion)" /> <PackageVersion Include="Moberg.Beacon.Core.PostgreSql" Version="$(BeaconVersion)" /> <PackageVersion Include="Moberg.Beacon.Api" Version="$(BeaconVersion)" /> <PackageVersion Include="Moberg.Beacon.UI" Version="$(BeaconVersion)" /> <!-- … --></ItemGroup>Build-time notes
Section titled “Build-time notes”Microsoft.AspNetCore.OpenApi. If your host callsAddOpenApi()/MapOpenApi(), referenceMicrosoft.AspNetCore.OpenApidirectly; relying on the copy that comes withMoberg.Beacon.Apifails the build withCS9137(interceptors).- Package downgrade (
NU1109). Under central package management, restore fails with “Detected package downgrade” when yourDirectory.Packages.propspins a package lower than a Beacon package needs (for example EF Core orMicrosoft.Extensions.*one patch behind, or an olderClosedXML). Raise each pin to the version the message names. - Transitive package advisories. If restore reports
NU1902/NU1903for a transitive dependency and you treat warnings as errors, add a directPackageReferenceto the patched version of that package in your project. - The UI package contains the production React build. You do not need Node.js to consume it. The host must call
app.UseStaticFiles()so the assets are served. - Building from source (project references instead of packages):
Beacon.UIbuilds the React app only inRelease, or inDebugwith-p:BuildReactInDebug=true. Node.js 22 and npm 11 match the CI build.
Licence
Section titled “Licence”Beacon is dual-licensed: GNU AGPL v3.0, or a commercial licence without copyleft obligations. Moberg partners use it under a licence exception. Embedding Beacon in a network service under the AGPL triggers its source-disclosure terms (§13). See LICENSING.md.