MCP client infrastructure for OAuth‑authenticated servers, enabling session, discovery, and tool registration.
# Source: https://github.com/mindsdb/anton | License: MIT | Copyright 2026 MindsDB # Provided via justclaw.it.com; keep this notice with the code. """MCP (Model Context Protocol) client support for anton. General infrastructure, not HubSpot-specific: the transport/session/discovery core here works against any remote, OAuth-authenticated MCP server — HubSpot is the first caller, but Linear and PostHog also run their own MCP servers, so this is built to be reused rather than a one-off (ENG-1816). Today, every other connector's "tool calling" is the LLM writing ad hoc REST/GraphQL scratchpad code against env-var-injected bearer tokens. That doesn't fit MCP's stateful, schema-negotiated protocol: a real session has to be opened (``initialize`` + capability negotiation) and its tools discover ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key