@registrum/mcp 2.0.6 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,8 +28,15 @@ https://registrum.co.uk/api/mcp
28
28
  }
29
29
  ```
30
30
 
31
- That is the whole setup. Ask it *"Who ultimately owns Rolls-Royce Holdings?"* and
32
- it will trace the ownership chain.
31
+ That is the whole setup. Ask it *"Who ultimately owns BrewDog?"* and it will trace
32
+ the ownership chain to the named individuals who hold control.
33
+
34
+ One thing worth knowing before you test it on a household name: companies listed
35
+ on a regulated market — Tesco, Rolls-Royce, most of the FTSE — are **exempt from
36
+ the PSC regime**, so their ownership chain is legitimately empty and
37
+ `get_psc_chain` says so rather than inventing a tree. Ownership questions are
38
+ interesting on private companies, which is where the register actually records
39
+ who is behind them.
33
40
 
34
41
  The free anonymous tier is generous on the everyday tools and deliberately
35
42
  small on the expensive ones — a couple of ownership-chain traces and financial
@@ -88,6 +95,7 @@ the server locally than call ours.
88
95
  | Tool | What you get |
89
96
  |---|---|
90
97
  | `search_company` | Find a company by name → company number |
98
+ | `get_bundle` | **Profile, compliance, financials, PSCs and directors in one call** - start here |
91
99
  | `get_company` | Profile: status, age, SIC descriptions, overdue flags |
92
100
  | `get_financials` | Turnover, net assets, profit/loss, employees — parsed from iXBRL, in GBP |
93
101
  | `get_directors` | Current board with appointment history across all their companies |
@@ -96,6 +104,22 @@ the server locally than call ours.
96
104
  | `get_compliance` | **ECCTA identity-verification status** — who has verified, who is pending, who is overdue |
97
105
  | `get_network` | Companies connected by shared directors, to depth 2 |
98
106
 
107
+ ### On `get_bundle`
108
+
109
+ Most questions about a company need several of these views at once. `get_bundle`
110
+ returns them in a single request: **one call and one credit instead of five**,
111
+ and one round trip instead of five. Pass `include` to fetch a subset, or omit it
112
+ for all five sections.
113
+
114
+ Each section carries exactly what its own endpoint returns, because the bundle
115
+ is composed from those same handlers rather than reimplemented - so plan gates,
116
+ caching and the ECCTA rules behave identically either way.
117
+
118
+ **A null section is not an error.** Financials come back null for a company that
119
+ has filed no machine-readable accounts, and compliance requires a Pro plan. Only
120
+ a missing company is an error, and that is a 404. Report a null section as "not
121
+ available", never as an absence of the underlying fact.
122
+
99
123
  ### On `get_compliance`
100
124
 
101
125
  The Economic Crime and Corporate Transparency Act requires every UK director
@@ -116,7 +140,7 @@ as non-compliant.
116
140
 
117
141
  > "Pull the last filed financials for 00445790 and tell me if turnover grew."
118
142
 
119
- > "Who ultimately owns Rolls-Royce Holdings? Trace the ownership chain."
143
+ > "Who ultimately owns BrewDog? Trace the ownership chain to the individuals."
120
144
 
121
145
  > "Which companies share directors with Barratt Developments?"
122
146
 
package/dist/server.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare function callApi(path: string, apiKey: string, baseUrl?: string):
10
10
  * five months - a list nobody could enumerate programmatically is a list that
11
11
  * goes stale.
12
12
  */
13
- export declare const TOOL_NAMES: readonly ["search_company", "get_company", "get_financials", "get_directors", "get_compliance", "get_psc", "get_psc_chain", "get_network"];
13
+ export declare const TOOL_NAMES: readonly ["search_company", "get_company", "get_financials", "get_directors", "get_compliance", "get_psc", "get_psc_chain", "get_network", "get_bundle"];
14
14
  export type ToolName = (typeof TOOL_NAMES)[number];
15
15
  /**
16
16
  * Called before a tool touches the API. Return a string to refuse the call with
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAIzD,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AAEzD,wBAAsB,OAAO,CAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,MAAiB,GACzB,OAAO,CAAC,OAAO,CAAC,CAclB;AAeD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,4IASb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU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CACpB;AAED,eAAO,MAAM,mBAAmB,QAOsE,CAAC;AAUvG;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAwRzF;AAED,4DAA4D;AAC5D,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,MAAiB,GAAG,SAAS,CAMlF"}
package/dist/server.js CHANGED
@@ -44,6 +44,7 @@ export const TOOL_NAMES = [
44
44
  "get_psc",
45
45
  "get_psc_chain",
46
46
  "get_network",
47
+ "get_bundle",
47
48
  ];
48
49
  export const SERVER_INSTRUCTIONS = "Use these tools to look up UK companies registered at Companies House. " +
49
50
  "Company numbers are zero-padded 8-digit strings (e.g. '00445790' for Tesco PLC). " +
@@ -116,8 +117,16 @@ export function registerTools(server, options) {
116
117
  "filed at Companies House. Returns revenue, cost of sales, gross profit, operating " +
117
118
  "profit, net profit, fixed assets, current assets, total equity, net assets, " +
118
119
  "creditors, and average employees for the current and prior reporting year. " +
119
- "Also includes accounts type (full/abbreviated/micro/dormant) and a data_quality " +
120
- "block indicating which fields were extracted and which were absent from the filing. " +
120
+ "Also includes accounts_type (full, abbreviated, micro, dormant or unknown) and a " +
121
+ "data_quality block indicating which fields were extracted and which were absent. " +
122
+ "period_end is the end of the accounting period the figures cover (the year the accounts end), " +
123
+ "NOT the date the accounts were filed; the filing date is data_quality.filed_on. " +
124
+ "Other data_quality fields: filing_type (Companies House form code: AA, AAMD or AC(NI)), " +
125
+ "period_end_source and accounts_type_source (how those two values were determined), and " +
126
+ "accounts_description_code (the verbatim Companies House code, e.g. unaudited-abridged, " +
127
+ "micro-entity). Unaudited-abridged, small and audit-exemption-subsidiary filings are " +
128
+ "abbreviated, not full, and carry no profit and loss (check has_profit_loss). " +
129
+ "accounts_type is unknown when it could not be determined; do not assume full. " +
121
130
  "Cached for 7 days.",
122
131
  inputSchema: z.object({ company_number: companyNumber }),
123
132
  }, async ({ company_number }) => run("get_financials", `/company/${company_number}/financials`));
@@ -162,12 +171,51 @@ export function registerTools(server, options) {
162
171
  "has not yet passed and is not a compliance failure; unknown means Companies House " +
163
172
  "publishes no record for them, an absence of data rather than a breach. Only overdue " +
164
173
  "means a deadline was missed. " +
165
- "Corporate entity PSCs include their company number for " +
166
- "ownership chain traversal, and carry none of the verification fields. " +
174
+ "Corporate entity PSCs carry none of the verification fields. Their company_number " +
175
+ "is set only for a confirmed Companies House registration and is otherwise null, " +
176
+ "so never treat a null as a missing value to look up. What they filed is in " +
177
+ "registry_number and registry_name, and registry_is_companies_house says how to read it: " +
178
+ "true is a Companies House registration, null means a number was filed but cannot be " +
179
+ "tied to the UK register (e.g. a foreign registry), false means no number was filed. " +
180
+ "kind can be unknown for a PSC type we do not classify, with Companies House's " +
181
+ "verbatim string in kind_raw. " +
167
182
  "Also detects PSC exemptions for listed PLCs. " +
168
183
  "Cached for 24 hours.",
169
184
  inputSchema: z.object({ company_number: companyNumber }),
170
185
  }, async ({ company_number }) => run("get_psc", `/company/${company_number}/psc`));
186
+ /** The sections /v1/company/{n}/bundle can assemble, in the API's own order.
187
+ *
188
+ * A closed enum rather than a free string: the API answers an unknown
189
+ * section with a 400, and a model that guesses "accounts" should be told the
190
+ * valid names by the schema instead of spending a call to find out.
191
+ */
192
+ const BUNDLE_SECTIONS = ["profile", "compliance", "financials", "psc", "directors"];
193
+ server.registerTool("get_bundle", {
194
+ title: "Get a whole company in one request",
195
+ description: "Get several views of one UK company in a single request: profile, ECCTA compliance, " +
196
+ "financials, PSCs and directors. Prefer this over calling get_company, get_compliance, " +
197
+ "get_financials, get_psc and get_directors separately - it returns the same data for " +
198
+ "one API call and one credit instead of five, and in a single round trip. " +
199
+ "Pass include to fetch only the sections you need; omit it to get all five. " +
200
+ "The profile is always returned. " +
201
+ "Partial results are normal and are not errors: any section can come back null when it " +
202
+ "is unavailable for that company or not included in the caller's plan - financials are " +
203
+ "null for a company that has filed no machine-readable accounts, and compliance requires " +
204
+ "a Pro plan. Report a null section as 'not available', never as a failed lookup or as an " +
205
+ "absence of the underlying fact. Only a missing company is an error, and that is a 404. " +
206
+ "Each section carries exactly what its own endpoint returns, including ECCTA " +
207
+ "verification_status on individuals, so the pending-versus-overdue rules apply here too.",
208
+ inputSchema: z.object({
209
+ company_number: companyNumber,
210
+ include: z
211
+ .array(z.enum(BUNDLE_SECTIONS))
212
+ .min(1)
213
+ .optional()
214
+ .describe("Sections to fetch. Omit for all five. Valid values: " +
215
+ BUNDLE_SECTIONS.join(", ") +
216
+ ". The profile is always included regardless."),
217
+ }),
218
+ }, async ({ company_number, include }) => run("get_bundle", `/company/${company_number}/bundle${include?.length ? `?include=${encodeURIComponent(include.join(","))}` : ""}`));
171
219
  server.registerTool("get_psc_chain", {
172
220
  title: "Resolve PSC ownership chain to find ultimate beneficial owners",
173
221
  description: "Trace the full ownership chain for a UK company by recursively following corporate " +
@@ -179,7 +227,12 @@ export function registerTools(server, options) {
179
227
  "means a registration number was filed but cannot be tied to the Companies House " +
180
228
  "register (a foreign registry, or one we do not recognise), which is a finding about " +
181
229
  "the ownership structure and not an error or an outage; unknown_kind means Companies " +
182
- "House returned a PSC type we do not classify, with the raw value in kind_raw. " +
230
+ "House returned a PSC type we do not classify (kind is then unknown), with the raw " +
231
+ "value in kind_raw. Both are findings, not errors. A corporate node's company_number " +
232
+ "is set only for a confirmed Companies House registration, otherwise null; the number " +
233
+ "it filed is in registry_number with registry_name, and registry_is_companies_house is " +
234
+ "true (Companies House), null (a number was filed but cannot be tied to the UK register) " +
235
+ "or false (no number filed). " +
183
236
  "ECCTA identity verification: every individual node, at any depth including the " +
184
237
  "ultimate beneficial owners this chain exists to find, carries verification_status " +
185
238
  "(verified, pending, overdue or unknown), identity_verified (true, false for overdue " +
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OA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cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,CAClC,GAAG,CAAC,aAAa,EAAE,YAAY,cAAc,WAAW,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC5F,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,4DAA4D;AAC5D,MAAM,UAAU,YAAY,CAAC,MAAc,EAAE,UAAkB,QAAQ;IACrE,MAAM,MAAM,GAAG,IAAI,SAAS,CAC1B,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,EACvC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,mBAAmB,EAAE,CACnE,CAAC;IACF,OAAO,aAAa,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AACpD,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@registrum/mcp",
3
3
  "mcpName": "io.github.vdmeu/registrum-mcp",
4
- "version": "2.0.6",
4
+ "version": "2.0.9",
5
5
  "description": "MCP server for the Registrum Companies House API — search UK companies, get financials, directors, beneficial ownership (PSC), and director networks",
6
6
  "keywords": [
7
7
  "mcp",