A Linear API mock for updating engineering issues.

Your agent queries seeded engineering issues and updates them through GraphQL. Query the issue again to check its workflow state, assignee and comments.

Connect your agent
The test
  • issue_updated

    Calls the issueUpdate mutation

Starting records

  • users

    ref
    ancha
    name
    Ancha assistant
    email
    ancha@acme.example
  • labels

    name
    Bug

Connect your agent to the Linear mock

When ancha runs your agent, it sets:

  • LINEAR_API_URL
  • LINEAR_API_KEY

Point the client you already use at them.

import { LinearClient } from '@linear/sdk';
const linear = new LinearClient({ apiKey: process.env.LINEAR_API_KEY, apiUrl: process.env.LINEAR_API_URL });
const issues = await linear.issues({ first: 10 });

Locally, ancha runs your agent as an ordinary process, so keep real Linear credentials out of its environment.

See all 27 endpoints

comment

QUERYcomment

commentCreate

MUTATIONcommentCreate

commentDelete

MUTATIONcommentDelete

comments

QUERYcomments

commentUpdate

MUTATIONcommentUpdate

issue

QUERYissue

issueAddLabel

MUTATIONissueAddLabel

issueArchive

MUTATIONissueArchive

issueCreate

MUTATIONissueCreate

issueDelete

MUTATIONissueDelete

issueLabel

QUERYissueLabel

issueLabelCreate

MUTATIONissueLabelCreate

issueLabels

QUERYissueLabels

issueRemoveLabel

MUTATIONissueRemoveLabel

issues

QUERYissues

issueUpdate

MUTATIONissueUpdate

organization

QUERYorganization

project

QUERYproject

projects

QUERYprojects

searchIssues

QUERYsearchIssues

team

QUERYteam

teams

QUERYteams

user

QUERYuser

users

QUERYusers

viewer

QUERYviewer

workflowState

QUERYworkflowState

workflowStates

QUERYworkflowStates

Seed your own data

The data the Linear mock starts with on every run, cut to a few records. ancha twins seed linear prints every field.

Full seed YAML
twins:
  - linear
seed:
  linear:
    organization:
      name: Acme
      url_key: acme
    viewer: ancha
    users:
      - ref: ancha
        name: Ancha assistant
        display_name: ancha
        email: ancha@acme.example
      - ref: greg
        name: Greg Wilson
        display_name: greg
        email: greg@acme.example
        title: Database engineer
        timezone: America/Los_Angeles
    labels:
      - name: Bug
        color: "#eb5757"
    teams:
      - ref: eng
        key: ENG
        name: Engineering
        description: Orders API, web app and dashboards
        color: "#5e6ad2"
        members:
          - ancha
        labels:
          - name: Incident
            color: "#eb5757"
    projects:
      - ref: scheduled_reports
        name: Scheduled reports
        description: Send dashboards on a schedule, the top request this month
        state: started
        teams:
          - eng
        start_date: 2026-10-19
        target_date: 2026-12-11
        color: "#bb87fc"
    issues:
      - ref: cents
        team: eng
        title: Order totals off by one cent for multi-currency carts
        description: Rounding happens per line instead of per order.
        state: Done
        priority: 2
        assignee: greg
        creator: greg
        at: -120h
        updated_at: -100h
        comments:
          - user: greg
            body: Fixed by rounding once at the order level.
            at: -100h

Check what your agent did

Checks YAML
checks:
  - id: issue_updated
    trace:
      called: MUTATION issueUpdate

Tested together

All 43 tools

Linear API mock FAQ

Can a Linear API mock search issue descriptions and comments?

Ancha’s searchIssues matches every word in term against the issue identifier, title and description, ignoring case. Set includeComments: true to include comment bodies and teamId to search one visible team.

Which Linear issues can a guest agent see?

In the Linear mock, a guest sees issues from teams they belong to. A non-guest also sees public teams, while membership grants access to private teams.

How should my agent page through Linear issues?

Query issues with first, then pass pageInfo.endCursor as after while pageInfo.hasNextPage is true. The mock sorts by newest createdAt by default; use orderBy: updatedAt to page by recent changes.

Install the CLI and run your agent against the Linear mock.

Book a demo

Ancha is not affiliated with Linear.