Short answer: Linear ships an official MCP server at https://mcp.linear.app/mcp. OpenAI's Codex connects to it with one command. That gives the agent context from your Linear issues and the ability to create new ones. The setup takes five minutes. The hard part is deciding whether an AI should have write access to your tracker at all. Default to read-only. Grant write only on a scoped project with a human reviewing every create.OpenAI’s Codex speaks MCP natively, while Linear ships a official MCP server. The two are connected by command. Within a minute, Codex can read through your issues, pull your description into context, and create new ones from the terminal or the IDE extension. The setup process is brief and the documentation is straightforward.
The actual question isn't how you wire it up. It’s a decision on whether or not to let an AI coding agent write to your issue tracker and under what rules. You won't find that in the documentation.
Initiate the setup. Then the governance decision is more important than the setup system.
The 60-second setup
Provided you have the CLI installed, that is the entire setup.
codex mcp add linear --url https://mcp.linear.app/mcp
When you execute the command, you’ll be prompted to log in to your Linear account in the browser. OAuth takes place, and we have the server wired up. The IDE Extension uses the same configuration, thus requiring only one setup.
When creating the MCP in Codex for the first time, you must flip the rmcp_client feature flag in ~/.codex/config.toml.
[features]
rmcp_client = true
[mcp_servers.linear]
url = "https://mcp.linear.app/mcp"
Simply run the code provided and you are done. The MCP server offers the familiar Linear tool interface, allowing tasks such as listing issues and creating and adding comments. The MCP spec itself is maintained by Anthropic, and Linear implements it against the common schema, so if a future Codex release adds broader MCP capabilities you don’t have to re-wire anything.
The Linear MCP server is limited to local Codex tasks such as CLI and IDE Extension. The hosted Codex web agent is incompatible with it. Before planning any activity around delegated remote work, please check OpenAI's current scope in the Codex concepts.
What Codex can actually do once connected
Three categories in the rough order of safe.
Pull context into a coding session. Codex can read an issue, pull its description and comments into the current task context, and generate code that references the acceptance criteria. This carries the least risk and exerts the greatest impact. Not attending The agent now possesses a greater amount of relevant context than before.
As you write code, ask Codex to draft new issues for you. It can file a new issue describing a bug it spotted, a refactor it wants to defer, or a question for a reviewer. The message is usually okay. The issue here is that the content is always fine. The model does not push back on itself. This means that an afternoon’s coding can yield a dozen issues. Each issue sounds a reasonable thing in isolation. But together, they bury the team’s inbox.
Codex has the ability to edit issue descriptions, change their status, assign owners, and add comments independently. At this junction, the question of governance becomes precise. The failure mode is subtle. It's a status change which quietly moves a card to done. The code technically works but only partially. It is a description edit which paraphrases a specific acceptance criterion to something softer. During the standup, a person asks a question about the card they didn't touch, and the team notices.
Usually, the first two are okay. The third requires a decision.
The failure modes nobody warns you about
There are three failures worth planning for.
Codex sometimes refers to the LIN-1234 user when that user does not exist, or when the code was meant to refer to user LIN-1324. The agent is not lying? They are fulfilling a schema. Prevent this from happening by not trusting anything the agent says about issue X. Always round-trip it to the actual MCP tool to verify the issue exists and matches.
Destructive additions through “quick fixes.” It is helpful by default. When given the task to tidy up authorisation stories, it will gladly merge three cards into one, rewriting the descriptions and losing the original acceptance criteria. Catches it after the fact in Linear’s log. The audit log is not very useful when sprints are invalidated by lost estimation criteria. Consider batch edits to be human activity.
Authentication drift across teams: the MCP login is developer specific. Six developers connect Codex; six sessions; six permission sets. Should one of those developers change teams or leave, their Codex-authored ‘writes’ no longer look like them. Just like keeping an inventory of API key holders, also keep an inventory of who is connected.
Much of this can be handled. The setup documentation does not address any of this. Documentation documents the positive outcome process. The second week teaches you about failure modes.
Read-only vs write is a governance decision, not a feature decision
Refrain from treating read only versus write calls as a feature design decision. It's a steering decision.
The definition of feature framing is: “write access means Codex gets to move the issue to closed at the end of the session, which is a win”. The definition of governance framing is: “write access means AI can change the state of record for the team work queue, which is a single point of truth we point at during planning.” These two framing create a different default.
My preset.
- Read-only by default, for every developer, on every project. Codex sees enough. Nobody needs to type Linear issue descriptions by hand to feed into context.
- Write access only on a scoped Linear project, usually a sandbox or an AI-work queue, with a human-in-the-loop review on every create. The sandbox project is where Codex drafts issues that a human then triages into the real backlog.
- Never grant write access to the project the team is actively sprinting on. The sprint board is the trust surface the team runs standup against. An autonomous agent writing to it burns that trust the first time something goes sideways.
To prompt the AI to update issues in real sprints, use the PR descriptions for this purpose and let the PR merge be the status update. The GitHub integration is already the load-bearing path for code-to-story linkage, and the human merging the PR is the gate.
LiteTracker believes that the tooling in general is simpler tools pay off more than feature-rich ones because, in our experience, the 20% of features that deliver 80% of results are rarely the dashboard ones. The same reasoning goes for agent write access. The writes that help, in the 20% case, are "draft a new issue from this bug I just found" 80% of subscribers will churn.
The MCP + agent + tracker pattern generalises
The early shipper of an MCP server is Linear. It Doesn't Only Apply to Linear. This type of MCP server enables connections with MCP Speaking Agents from other vendors. Jira is developing one. It’s a safe bet that smaller trackers will come next. The aforementioned decisions, namely the read-only default, scoped write project, and status update via PR-merge will be constant, irrespective of the tracker on the other end of the MCP line.
If you are reviewing several trackers at this time and MCP support is important, check two things: (1) does the tracker ship an official MCP server or wrap a third party, and (2) does the server support scoped tokens (per-project, per-permission) or just a single workspace-wide auth. Many servers today allow the agent access to all data or no data. That is why read-only by default is hard to enforce.
Composio, Aident Loadout and other 3rd party wrappers exist for cases where using the official server does not fit. These include when orchestration of multiple tools is required. When managed auth for a team of 12 agents is needed. Or when the official MCP endpoint does not have the required tool. They are beneficial. The additional audit layer is the trust layer which the model and the tracker have with each other. First check the official server by default.
When not to connect Codex to your tracker at all
In three scenarios, you should completely avoid setup.
Meaningful projects. If your team has to trace provenance for every change to the issue record healthcare, finance, defence a robot writing to that record is a problem you don’t need, or want. Although the audit log exists as a technical construct, it is not what the auditors want to see. Just ask them: “Who created this issue?”. This yields “codex-mcp-server-oauth-user-id-xyz”. Obviously, that is not an answer any auditor is interested in.
Pre-launch engineers evaluated by other customers. The integration is valuable as it reduces context-switching between the code and the tracker. When a team is small enough that one person codes and triages, the cost is already minimal. The set-up is more than the payback. Use the entire 20 minutes to write code.
If a team has not yet figured out its issue hygiene, that is, the way it writes stories, splits features, distinguishes bugs from chores, etc., then giving an AI the ability to write to the tracker enshrines the mess in code. First fix the hygiene; second wire the agent.
Still stuck
Linear's documentation explains the integration. The governance decisions mentioned earlier do not exist anywhere particularly official; they are what teams learn in their second month, often after a non-issue they did not write shows up in a sprint review.
If you are considering lightweight trackers because larger ones are overkill for your team, LiteTracker is built around iterations, velocity, and accepted stories, all on a free tier for unlimited users and no demo call to sit through. when the goal is less tool, not more.
References: Check out why fewer tools wins over more features, the GitHub integration story, and meta-collaboration tools to see how tracker-to-tool bridges were broken in the past.
Frequently asked
What is Linear MCP and how does Codex use it?
Linear MCP is the implementation of the Model Context Protocol by Linear which is described as an open specification from Anthropic. OpenAI’s Codex speaks MCP natively, which allows it to call Linear’s server (at https://mcp.linear.app/mcp) to read, write and update issues from CLI or IDE Extension.
How do I connect Codex to Linear?
In the Codex CLI, execute the command: codex mcp add linear --url https://mcp.linear.app/mcp A browser is launched for OAuth login, then server is wired. If this is your first MCP in Codex, also set rmcp_client = trueunder [features] in ~/.codex/config.toml and run codex mcp login linear to authenticate.
Does Linear's MCP server work with hosted Codex?
No. The only jobs in the current scope are those related to the CLI and the IDE Extension. The integration is not used by the hosted/remote Codex agent. Current scope is source of truth, check the concepts docs in codex.
Should I give Codex write access to Linear?
Assume read-only. Grant permissions to write only on a scoped sandbox project that a human reviews. Never give permission to write to the project that the team is sprinting on the sprint board is the trust surface that the team runs standup against.
What goes wrong when Codex writes to Linear?
Failure mode one: you rely on a unique identifier in the pull request description to find the relevant issue. Your developer is using hallucinated identifiers, identification is not possible, you must reject this PR.
Is Composio or Aident Loadout better than Linear's official MCP server?
In general, default to the official server. It has fewer layers of trust, lower latency, and no third party in the auth path. You might need Composio and Aident if you require multi-tool orchestration, managed authentication for a team of agents, or a tool that isn’t exposed by the official server.
How is this different from the Linear GitHub integration?
The GitHub integration connects branches and PRs to issues in a deterministic way - code-event → issue-state: nothing else. MCP enables AI models to access and utilize Linear's entire toolset for creating and editing documents. A wire and a general-purpose agent are Informed and Safe respectively
Will this pattern work with trackers other than Linear?
Once the tracker ships an MCP server, yes. The tracker-agnostic read-only-by-default and scoped-write-project rules A MCP server is currently being implemented LiteTracker is smaller than some other trackers, but it is likely not the last.