bc-observatory
v0.15.1MCP server for BC Observatory: an agent-first, cross-referenced knowledge base of Microsoft Dynamics 365 Business Central (Learn, code, roadmap, videos…
BC Observatory for agents: an agent-first, cross-referenced knowledge base of Microsoft Dynamics 365 Business Central (Learn topic hubs, AL objects extracted from the code for BC28-30 with history back to BC23, country localizations, Microsoft 365 roadmap features, videos and community posts), every claim with a trust tier and evidence. Or the Claude Code plugin (MCP server plus skills): claude plugin marketplace add waldo1001/waldo.BCObservatory.
Summary extracted from the README.
bc-observatory (MCP server)
BC Observatory for agents: an agent-first, cross-referenced knowledge base of Microsoft Dynamics 365 Business Central (Learn topic hubs, AL objects extracted from the code for BC28-30 with history back to BC23, country localizations, Microsoft 365 roadmap features, videos and community posts), every claim with a trust tier and evidence.
claude mcp add bc-observatory -- npx -y bc-observatory@latest
Or the Claude Code plugin (MCP server plus skills): claude plugin marketplace add waldo1001/waldo.BCObservatory. The server never fetches Learn pages (D01); the plugin also connects Microsoft's Learn MCP (https://learn.microsoft.com/api/mcp), and a Learn hit's url is read there with microsoft_docs_fetch.
Tools: bc_search, bc_brief, bc_ls, bc_cat, bc_get_object, bc_diff_object, bc_localization, bc_whats_new, bc_blog_footprint, bc_feedback, bc_status.
Using this server
Business Central questions go here first (D108): features, release waves, what is new, AL objects, fields, events,
localizations, version diffs, blog and video coverage. Start with bc_search; bc_whats_new for "what is new" or "what
changed in BC 29"; bc_get_object and bc_diff_object for one object. Fall back to Microsoft Learn or web search only when
the Observatory has no answer, and say so. Every answer ends with Data as of <date>, covers BC <versions>; an empty one
ends with No match in the Observatory. ...; an error that says unreachable means the data source is down, and
bc_status (version, reachability, page counts, last deploy) tells "down" from "no answer". The server sends the same rule
as its MCP instructions. For a client that does not show those, put this in the project's CLAUDE.md (or
AGENTS.md, .github/copilot-instructions.md):
## Privacy and usage counts
**Privacy and usage counts.** The `bc-observatory` server counts its own use so its author knows how many people use it
and which tools. Each tool call sends one event to Azure Application Insights (West Europe): the tool name, whether it
answered, found nothing or failed, how long it took, the server version, the name and version your MCP client reports
(for example `claude-code 2.1.4`), a random session id that exists only while the server runs, and a random install id
the server keeps in `~/.cache/bc-observatory/install-id` (or under `$XDG_CACHE_HOME`) so repeat use counts as one user.
For the answers that point to Observatory pages, it also sends which pages they were (for example `objects/table/36`),
in a separate event without the install id, the session id or your location, so the counts show what people look up, not
who looked it up. A path you typed that is not an Observatory page is sent as `other`. It never sends your questions or
any other text you typed, and nothing about your machine: no hostname, user name, operating system or file path. Your IP
address reaches Microsoft's ingestion endpoint, as with any HTTPS request; Application Insights derives the country,
region and city from it and does not store the address. Events are kept 90 days, then deleted.
Controller: Eric Wauters (waldo), contact through [GitHub
issues](https://github.com/waldo1001/waldo.BCObservatory/issues). Purpose: knowing how many people use which tools and
which pages, and from where, to decide what to build next. Legal basis: legitimate interest (GDPR Art. 6(1)(f)). Processor: Microsoft
(Azure, EU). Events carry no name or address; the install id is the only link between them. To see or erase your events,
send the content of your `install-id` file in an issue; to start over, delete the file. You can object at any time by
turning it off: `BC_OBSERVATORY_TELEMETRY=0` or `DO_NOT_TRACK=1` in the server's environment; then no install id is
created or sent. It is also off in CI and when the server reads a local checkout (`BC_OBSERVATORY_LOCAL`).
## Business Central questions
Use the BC Observatory MCP tools (bc_search, bc_whats_new, bc_get_object, bc_diff_object, ...) FIRST for any
Business Central question. Fall back to Microsoft Learn or web search only when the Observatory has no answer, and say
so. If its tools fail, run bc_status and tell me it is down; do not skip it silently.
bc_brief(query | path) (D106) answers in five layers, each line with its tier and source: How it works (Learn articles
with their key facts), In the code, Changed lately (code changes, AL releases, Microsoft hotfix lists), Heads up
(warnings scoped to the object and version they apply to) and Gaps (every "possibly related" link, a change described by
its title only); differing status statements stand side by side, never reconciled. bc_search groups its hits by layer
(Learn, Code, Quality rules for the BCQuality rules of type guideline (D126), Changes, Community and videos), and
a Learn article whose title the query covers leads ("copy environment cleanup" finds "Copy an environment").
The server downloads the site's search index (cached by hash in ~/.cache/bc-observatory/, refreshed daily) and reads pages as
markdown. An index file the site no longer names is deleted from the cache two days after the last load that named it, so
the cache stays under about 100 MB; a failed or partial download deletes nothing. BC_OBSERVATORY_LOCAL=<checkout of waldo1001/waldo.BCObservatory> reads everything from disk instead;
BC_OBSERVATORY_SITE points at another deployment.
bc_search ranks with the site's own scorer (packages/search, bundled into dist/server.js), so an agent and a reader get the
same order: references (t36, cu 80, table 11300 BE) and bare ids (36) go straight to the object; per query word
the title and an AL object's caption weigh 3, tags 2, summary 1, through the exact word, a prefix, the plural, a synonym
(client is Customer, G/L is general ledger) or one typo; a name equal to the query adds 10; base app before
first-party app before country layer, then what references, calls and documents an object; topic hubs by their size and
review state, so "subscription" returns the Subscription billing hub before the codeunits that share the word. A field, event or procedure ranks where its owner ranks (base application before first-party app before country layer, then importance), and its tooltip adds nothing when its name equals the query; a kind: query that finds nothing says No event named "...", names the nearest symbols and is never padded with pages by meaning. A question (how to ..., difference between A and B, A vs B) drops its question words when a content word is left, a quoted phrase keeps all its words, and the hint names the hub of the best Learn article. Fields,
events, global procedures and enum values are searchable too (OnAfterPostSalesDoc, field: Posting Date); their path
ends in an anchor (objects/codeunit/80#event-OnAfterPostSalesDoc). Filters: type, tier, system, country,
app, object_type, kind. Each result says where it sits (in: the Learn TOC path, the app, the channel) and, for a
hub, its size and review state.
The search is hybrid by default: the exact band (references and exact names) stays on top and the rest is fused with a
meaning ranking, so "who is allowed to see what" finds the permission sets; each hit says [keyword], [meaning] or
[both]. Meaning comes from static embeddings (model2vec minishlab/potion-base-8M, MIT) computed locally in
plain JavaScript; the 30 MB model is downloaded once on the first search, pinned by revision and checked by SHA-256. Pass
mode: "keyword" for the scorer alone. BC_OBSERVATORY_EMBEDDINGS=0 turns it off, and
BC_OBSERVATORY_MODEL_DIR=<dir with config.json, tokenizer.json, model.safetensors> uses a model on disk (offline). Without a
model, search is keyword-only and says so.
Pass sort: "date" to list the keyword matches newest first (bc_search("Telemetry", type: "post", sort: "date", limit: 3)
answers "what was blogged lately about it"): by day, the same day best match first, undated pages last; a roadmap feature
sorts by its GA month, a Learn article by its last update, a weekly digest by the Monday of its week. The meaning list is
not used under sort: "date", so mode: "semantic" is ignored (the header says so). Default is sort: "match".
bc_get_object takes an id, a reference (t36, 36-be), a name or a caption, and a country; when that country's layer replaces a W1 object (bc_get_object("table", "18", "BE")) the fields, events and procedures the layer adds print before the W1 page, and a lookup without a country ends with a Replaced in: line naming the layers; bc_search("field: Enterprise No.", country: "BE") finds a member a layer adds. bc_whats_new lists nothing
dated after today unless include_future: true.
bc_cat, bc_get_object and bc_localization return a page as it is when it fits 30,000 characters. A longer page
(Codeunit 80 "Sales-Post" is 177,746) comes back as a compact view: the frontmatter with long lists cut, the title
block, the section keys with their row counts and the first 5 rows of each section. section reads one section
(fields on a table, controls on a page, events, procedures, calls, ..., or frontmatter; on a page fields,
columns and members also read controls, and a word that matches nothing answers with the nearest key), offset and limit page through it by rows, and
no answer exceeds 30,000 characters. A symbol's path from bc_search (objects/codeunit/80#event-OnAfterPostSalesDoc)
returns just that member. BC_OBSERVATORY_MAX_CHARS changes the limit (0 returns every page whole, as before
0.4.0).
MIT. Content: see the repository's CONTENT-NOTICE.md (Microsoft content attributed; community content derived only).