In short.
This guide shows Python developers how to let Pydantic AI agents read and change Linear issues, projects, teams and comments through Linear's hosted MCP server, and the default connection includes tools that can change Linear data. It documents the Linear capability's hosted MCP connection, per-run authentication, read-only mode, approval wrappers and custom clients. Its most consequential upgrade warning concerns renamed tools: rules using old names can stop applying, and durable runs can fail to replay. Costs, licence terms, exact package compatibility and runtime results are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://pydantic.dev/docs/ai/harness/linear/index.md], including installation, credentials, multiple connections, permissions, tool naming, upgrade warnings, custom clients and telemetry. The 0.x API notice and durable-run migration cautions are included. Linked documentation, source files, provider setup, licence terms and release history are excluded. No code execution, live connection, approval workflow, durable replay or performance result is established.
The overview
Identity
The resource is the Linear integration documentation for Pydantic AI Harness at [https://pydantic.dev/docs/ai/harness/linear/index.md]. It teaches developers to attach the Linear capability to a Python agent, giving the model tools from Linear's hosted MCP server.
The documented scope includes issues, projects, teams and comments. This is integration guidance; the page does not provide a standalone application.
Assessment
The guide is useful for developers adding Linear access to an existing agent. It goes beyond a minimal connection example by explaining account isolation, permission controls, custom connections and migration failures.
Its practical limits are significant: the page provides no observed task results, reliability measurements or performance data. A documented configuration does not establish successful end-to-end operation.
Users
The main audience is Python developers building agents that retrieve or change Linear work items. Local scripts can use one account, while applications serving multiple users can choose credentials separately for each run.
Beginners get a short read-only example. Application developers also need to implement token acquisition, storage and refresh, and any approval-request handling their application requires.
Capabilities
The capability exposes the tools offered by Linear's server, including write tools, within the connected account's access. It supports read-only operation, configurable tool prefixes, multiple account connections and fixed or per-run credentials. OAuth scopes can restrict access further.
Existing toolset wrappers can filter tools or request approval. Custom FastMCP clients or transports can supply connection behavior. Linear emits no spans itself; core instrumentation can record each Linear tool call as a tool span.
Using it
Requirements
The documented installation uses pydantic-ai-harness[linear] and, for the OpenAI example, pydantic-ai-slim[openai]. Linear tool access requires a Linear API key, OAuth access token or a custom client that supplies authentication.
The browser-based auth='oauth' option is described as local-machine only. The page does not establish supported Python versions, exact dependency versions, required Linear plans, model credential setup or deployment capacity.
Mechanism
The standard connection uses [https://mcp.linear.app/mcp]. Setting read_only=True selects [https://mcp.linear.app/mcp/readonly]. Tools normally receive the linear_ prefix, so list_issues becomes linear_list_issues. Read-only eligibility follows the server's tool markings, not tool names.
When auth is a function, each run opens its own connection, while a custom client is one connection shared by every run. The page does not say how fixed-token connections are managed. An auth function runs at the start of each run and returns that user's token. Returning None or an empty string gives that run no Linear tools; a function never falls back to LINEAR_ACCESS_TOKEN. For durable execution, the page directs applications to obtain the token from run dependencies rather than a global variable.
Setup
The page gives pip install "pydantic-ai-harness[linear]" "pydantic-ai-slim[openai]" and an equivalent uv add command. Set LINEAR_ACCESS_TOKEN, pass a token through auth, or use auth='oauth' locally. With no explicit credentials and no environment token, agent creation raises an error.
Attach Linear(read_only=True) through the agent's capabilities for the documented read-only configuration. For multiple accounts, assign distinct id and tool_prefix values to each connection. Two instances sharing an id but using different settings cause agent construction to fail.
Example
The basic example constructs Agent('openai:gpt-6.1-sol', capabilities=[Linear(read_only=True)]), asks 'List my open issues, highest priority first' through run_sync, and prints result.output. It illustrates a retrieval task without granting write tools.
A separate example obtains linear_token from a Deps object through RunContext and passes the function as auth. An approval example wraps capability.get_toolset() with approval_required() and allows DeferredToolRequests as output. No actual responses, sorting accuracy or approval execution results are supplied.
Assessment & evidence
Limitations
Issue descriptions and comments can contain text from teammates, guests and integrations, which reaches the model through tool output. The page recommends read-only access or approval requirements when the agent should not freely change Linear data. The approval example requires additional application handling described on a linked page.
A custom client owns authentication and cannot be combined with auth. It is shared across runs. With such a client, read_only=True filters by server markings; if no tools are marked read-only, no Linear tools are exposed and MCPReadOnlyNoToolsWarning is emitted. Server instructions are included in the agent's instructions unless include_instructions=False is set.
Changed tool prefixes can invalidate name-based filters, approvals and guardrails. The page warns that unmatched approval or guardrail rules can let calls through unchecked. Recorded calls using old names can also prevent Temporal or DBOS runs from replaying.
Suitability rationale
Read-only mode is a reasonable starting point for issue summaries and reporting because it restricts the available tools. Editing workflows need deliberate decisions about account permissions, exposed tools and approval handling. These suitability judgments follow from the documented controls; they are not measured outcomes.
Per-run authentication makes the guide particularly relevant to applications where users connect separate Linear accounts. The application still owns token management, so the capability does not complete the account-connection feature by itself.
Alternatives
The page presents configuration choices within this integration: environment or fixed tokens for one account, a token-returning function for per-user access, and a custom client for connection control. Read-only access and approval wrappers address different permission needs.
It does not compare other Linear agent integrations, direct API approaches or competing frameworks. Relative cost, coverage, performance and implementation effort are not assessed.
Evidence
The evidence is the complete captured documentation page at [https://pydantic.dev/docs/ai/harness/linear/index.md].
This supports statements about documented behavior and examples. Linked documentation, implementation code, provider terms and release history are outside the evidence. Runtime behavior, security effectiveness and task success were not assessed.
Access & freshness
Costs
The page gives no pricing, subscription requirements, usage allowances or operating-cost estimates. Package costs, Linear access costs, model-provider costs and total operating cost are unknown from this evidence.
Rights
The selected page contains no licence text or explicit redistribution grant for the documentation, examples or implementation. It links to source at [https://github.com/pydantic/pydantic-ai/tree/main/src/pydantic_ai_harness/pydantic_ai_harness/linear/], but that repository and its licence were not assessed. Reuse and redistribution permissions remain unknown.
Freshness
The page was captured on 15 November 2026 at 11:33:54.560 UTC. It warns that Pydantic AI Harness APIs may change between minor releases while on 0.x releases. No exact package release or page publication date is established.
Its upgrade guidance documents the move from unprefixed to linear_-prefixed tools. For durable runs using old names, it describes letting those runs finish, retaining tool_prefix=None temporarily, or using deployment versioning. Current installed-version compatibility remains unknown.
Practical next steps
Choose whether the agent needs retrieval or editing, then configure read_only=True or the required approval handling. For a multi-user application, supply each user's token through run dependencies or an async auth function and implement token storage and refresh.
Before upgrading an existing integration, update tool names in filters, approval rules and guardrails, and account for durable runs recorded with old names. Confirm package compatibility, provider access, costs and licence terms separately. A subsequent integration test should verify account isolation, available tools, approval handling and the intended Linear task.
