Automate Linear Tickets with AI: MCP + Cursor Tutorial
Connect Linear to Cursor and carry a text-overlap bug from an issue into a verified fix and pull request.
Watch on YouTube ↗Follow the walkthrough
1. Connect the issue tracker
Choose Linear in the MCP setup shown in the recording and add the connection to Cursor. Confirm the agent can read the relevant issue before asking it to edit code.
Watch at 00:00:352. Start with one ticket
Reference the specific overlap issue. Give the agent the repository’s technical overview so it can narrow the search for the affected component.
Watch at 00:02:353. Reproduce the layout problem
Inspect the split-testing interface and identify the text that overlaps. If the first edit misses the problem, show the agent the remaining error.
Watch at 00:05:054. Verify before the PR
Confirm that the text wraps on the affected page. Then ask for the issue update and a pull request tied to that ticket.
Watch at 00:11:30
The visual reproduction and the verified fix give the ticket a clear completion condition.
Read the transcript
so this hack has been able to save me about 20 hours a week on ticket management and you can essentially fix bugs using AI without writing a single line of code with mcps now you probably heard all the hype with mcps they're essentially model context protocols that was uh released by anthropic and what it really is is an interface between your AI assistants and your existing tools Dev environments or repositories think of it as a two-way connection between
your AI agent and your data now how you can use mcps specifically is with Cur is you can use it to integrate with your existing tools like linear where we manage our tickets so what I want to show you is is essentially um different mcps that are available and how you can actually get it set up in cursor and get it working to retrieve information from your tickets so uh you have different categories of like API Integrations image processing tool and data
integration we're going to go ahead and go with linear um and essentially you can connect it to Claud or cursor in this case we're going to use cursor because we want pull all the uh ticket data that we have and this could be bugs support tickets whatever the case is um and you can see the installation steps here uh basically all you got to do is get your API key from linear put it in here and it'll generate a command once you have the command you're going to go
to cursor cursor settings from here you click on mcps add a server put the command and then command the run the command to actually run and it gives you access to all these different toolings like get tickets workful status add an issue to a project what we're going to do is is I'm going to show you exactly uh the current um tickets that we have which is n121 uh where it shows you all the different sub isues that we have for
example a table layout issue um a a text on overlap a drop down bug some side side KN issues and we're going to see if it's able to fix some of this so uh right now for example if I go to um one of the split tests that we have in our split testing tool I believe believe there should be uh a bug right now that causes the text to overlap let's see uh okay if I move the page yep right here so there's a there's a bug right there so let's see if it's able to fix
that issue so uh what we're going to do is once we have the MTP server set up I'm just going to pull this up uh and then we're going to say please review my existing linear tickets specifically look at this sub isue of UI bugs uh and 1021 the sub issue is called fix this overlap on text uh review the ticket update the ticket with the problem details based on codebase
propose a solution in the ticket comment if necessary and then um actually implement the solution from the ticket details in the code base you can uh study the code base which it already does like C already indexes your code and knows but you know I always like to uh uh basically reference a technical overview doc that I have that kind of just uh gives an idea of how everything is built out so let's go ahead and see it run specific
tool calls within linear for linear to get all the data that it needs around the ticket so we're going to approve the tool call it's going to take a couple steps but I'm curious to see if it's one able to pull a ticket data propose a fix and then from there um actually fix it and see if it works it may not work we'll see let's see but uh sometimes most of the times it does and it's very detailed and it's going to save you a lot of time for you to do
that um hopefully what we can see in this full intend uh uh process is we're able to get the tickets reviewed update ticket status generate a fix and then generate a PR automatically and just get you to save a lot of time um okay cool let's see if it we it's asking for this specific sub ID uh let's see if we can pull the actual sub ID uh just okay so what we can do is oh yeah it's called it's called
n124 it's a sub isue of UI uh bucks okay now we're going to get issue by ID so it wasn't able to actually find that specific sub isue let's see if it's able to do that now yep it's able to see it okay and I think sometimes what's helpful is we don't we're not seeing it's not able to find the component let's see split testing yep so what we can do
is help it find that component to be honest I don't remember where it is as well uh experiment list I think it's right here yep I think uh I think it it's in here confirm location component file or should this the path yep okay so now we're giving its component most cases you don't need to you know the indexing is is yeah it is a complex and big file and
typically I would be surprised if it got it in one shot but um what we're seeing is uh you know oh wow so boom perfect I was able to find the problem give you technical details a solution and let's see if it's actually implementing the solution and gets it working you know you you do have to have that human in the loop interaction where you're able to actually help the agent determine where certain things are I think this was an isolated incident in
most cases it is able to pull the code base and determine where things are um I think maybe the technical overview doc that I gave it may have been outdated let's see if um if it's able to fix this issue so we're in Local Host right now and fingers crossed it's working let's see oh no [Music] h let's give it a restart or maybe is it still making the
changes I'm okay I'm still seeing the issue when I resize the window the text overflows okay oh wow so now it actually provided a comment now in this case I thought it fixed it it didn't um and I thought that even though it added truncation it still didn't work it so let's see um if it's able to actually get a right this time
okay all right it's making the change and this is what I love about it it's able to fix all these bugs and issues H still still not happening H I wonder why it's still it's still overflowing um perhaps cause it to line break or truncated um so the edit menu of the cards are
also contained aside um perhaps consider increasing the size of the width and reducing padding in between double check your fix your solution okay all right this only happens let's let's see I want to console log this to see exactly um how this is happening so this only happens on
15 uh this only happens on screen sizes lower than 1580 PX with okay let's see if he's able to solve this issue by the way amazing spelling while it's doing that I'm just going to check something okay let's see what happens H H okay it's working here uh uh stack the menu on top put the title
on the put below it uh the text should wrap as the size changes okay let's check where it's going C head header test oh make sure you're applying it to here where the past split tests are I don't think it was applying to the right place so it wasn't actually looking at P split tests um it was doing it up here uh at
active split tests that we had that was the issue so uh that was the underlying issue with pass blood tests let's make sure the behavior is consistent with both active and pass split tests um I did notice you added extra padding uh let's revert that since we were let's reduce that after that update the linear ticket with the fix okay let's see what happens so it was
able to get it right we're now seeing the text actually wrapped down which is fantastic which is exactly what we wanted so now um what we're going to do is get to actually generate a PR once it's updated the linear ticket and and and get the pr approved let's see how that works we're not going to get a p we actually going to do commit just easier faster we'll do a PR later but yeah um oh did I just complete the new kit no
perfect okay all right sweet okay perfect great um now it's going to get us to actually do a linear ticket fix linear ticket update let's see see what happens oh unknown tool it probably broke let's try again oh oh no it's okay what's the best part of this mcps are still work in progress but that's fine uh that's fine just uh generate a commit and push this okay so what did we cover today
essentially we covered exactly what mcps are how you can use mcps in this instance we use it for Ticket manage with linear but you can also actually use it to be able to connect it with browsers like browser tools to do console logging screenshot using Puppeteer to actually give you back screenshots of what it's made so it has context visual context you can use agents browser agents to actually do individual QA and give you essentially
um uh additional uh abilities or and augment your existing agentic workflows while you're coding and save you a lot of time uh and and give you the speed that you need I hope this was helpful let me know how you're using ncps and what you want to see and what you would do and peace