Table of contents

Linear issues contain the actual requirements: the acceptance criteria, the edge cases the product team debated, the linked issues that establish dependencies, and the comments where scope decisions got made.
When developers create a Codex task, they describe the issue from memory. That description loses the specifics.
Codex writes against what the developer typed, not against what the issue actually says. The result is implementations that address a general interpretation of the requirements rather than the exact scope and conditions the issue documents.
To give Codex direct access to Linear as it works through your coding tasks, we'll show you how to connect Linear with Merge Agent Handler's Linear MCP server.
Merge Agent Handler connects Codex to the Linear API through the Merge CLI. You install the CLI, authenticate once, and run a single setup command from your project root.
That command writes a Merge CLI section to your project's AGENTS.md file, which tells Codex when to call merge search-tools and merge execute-tool to reach Linear.
Once authenticated, Merge handles OAuth credential storage and token rotation on your behalf, so you never embed credentials in your repo or manage refresh cycles yourself.
Related: How to use the Linear MCP in Claude Code
Before getting started, you'll need the following:
pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Linear MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install the CLI with pipx: pipx install merge-api
Verify it installed correctly: merge --version
Authenticate the CLI with your Merge Agent Handler account: merge login
This links the CLI to your Merge account and stores your session credentials locally.
From the root of the project where you want Codex to have access to Linear, run:
This writes a Merge CLI section to your project's AGENTS.md file so Codex knows to use the CLI when a task requires Linear data. The command is idempotent, safe to re-run if you need to reset the configuration.
Commit the updated AGENTS.md so every developer and CI environment that runs Codex gets the same tool configuration.
Related: A guide to integrating the Linear MCP with Cursor
Create a Codex task that requires live Linear data. This can be something like: "Read the acceptance criteria and linked issues for LIN-412 and scaffold the implementation, including unit tests that cover each acceptance criterion."
The first time Codex invokes a Linear tool, a Magic Link will appear to complete connector authentication.

Once authenticated, Codex has access to your Linear workspace through Merge for all subsequent tasks in this project.
{{this-blog-only-cta}}
In case you have more questions on setting up and using the Linear MCP with Codex, we've addressed several more commonly-asked questions below.
With Linear connected, Codex can:
You can build a self-hosted Linear MCP server that calls Linear's API directly. For a single developer authenticating with their own API key, that setup is straightforward: generate a token, define the tool schemas you need, and point Codex at the server.
The self-hosted path breaks down at team scale. Linear API keys are per-user, so every developer manages their own. There's no central place to scope which projects or issue data a given Codex task is allowed to reach, no audit trail of what the agent read, and no clean revocation path when someone leaves the team.
Merge Agent Handler adds a managed layer: Merge handles OAuth credential storage and refresh, each developer authenticates with their own identity, and every tool call is logged with the timestamp, tool name, and inputs.
For teams running Codex on a shared Linear workspace where issues contain sprint plans, roadmap decisions, or product specs, that audit trail matters.
Most engineering teams use Linear as the canonical record of what needs to be built: the requirements, the acceptance criteria, the dependencies, and the decisions made during planning.
Codex doesn't have access to any of that unless a developer manually copies it into the task description.
That copy step is the source of problems. Developers paraphrase, omit edge cases, and leave out the linked issues where scope was clarified. Codex writes against the paraphrase, not the source.
Connecting Linear gives Codex the ability to pull the source issue directly when a task requires it. The acceptance criteria for the feature being implemented, the bug report that documents the failure conditions, the cycle's issue list that defines what a release covers: Codex reads the original rather than the developer's interpretation of it.
The output reflects what the issues actually specify. That closes the gap between what the team planned and what gets built.
Yes, Merge for Workforce is built to help engineering organizations provision, secure, and govern how employees connect AI tools like Codex to project management systems like Linear.
Common patterns include:
In practice, employees can use the Linear MCP to generate implementations grounded in real issue requirements, produce release notes from live cycle data, and scaffold features against the actual acceptance criteria the product team wrote, while IT keeps centralized control over which teams and projects each developer's agent can reach.
Use Merge Agent Handler’s 150+ connectors (including Linear) to power reliable, secure, and powerful agents.