learning-it by example

Back to the video

Inside an MCP Server: How entity-intel-mcp Works

Ten tools, seven sources, and a gap is never reported as a no.

Video #331 ยท AI agents and MCP

Steps in the video

  1. 0:00 Ten tools, seven sources, and a gap is never reported as a no
  2. 0:26 The idea
  3. 0:50 Setup
  4. 1:07 A client in forty lines
  5. 1:24 Connect
  6. 2:01 The server assembly
  7. 2:18 One envelope for every answer
  8. 2:36 An adapter is one register
  9. 2:56 Failure is never a fact
  10. 3:17 Merging with provenance
  11. 4:39 Use it from a client
  12. 5:04 The order of calls
  13. 5:26 What this does not show
  14. 5:41 Mistakes to avoid
  15. 6:06 My take and next steps
  16. 6:23 Recap

Files

  • adapter.ts (70 lines)
  • availability.ts (15 lines)
  • claude_config.json (13 lines)
  • client.py (55 lines)
  • envelope.ts (66 lines)
  • pick.ts (29 lines)
  • rec_entity.json (283 lines)
  • rec_norway.json (25 lines)
  • rec_ownership.json (187 lines)
  • server.ts (42 lines)
  • show.py (49 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

Lookups are answers recorded from one live run on 14 November 2026 (public data, one UK group and one Norwegian company); officer lookups and sanctions screening are not shown; the newest MCP spec read has dropped the initialize handshake this server still uses.

Sources

Learning IT by Example.