WEBVTT

00:02.000 --> 00:07.600
In this lecture, we will configure a GitLab MCP server, which will later allow us to do actions that

00:07.600 --> 00:09.720
the cursor agent can normally do.

00:10.040 --> 00:12.960
But before we can get there, there is a bit of configuration to be done.

00:12.960 --> 00:14.240
So hang on tight.

00:14.760 --> 00:20.400
I'm here at the website called Cursor Directory and I already selected here from the menu MCP.

00:20.800 --> 00:23.040
And I'm seeing here in the list GitHub.

00:23.040 --> 00:24.640
And I'm going to click on it in a second.

00:24.640 --> 00:29.680
But just in case you cannot find GitHub, simply search here for GitHub and you should go to this page.

00:30.320 --> 00:33.800
And then we're going to click here on the installation instructions.

00:33.800 --> 00:36.360
Whatever is here below is not interesting for us.

00:36.760 --> 00:39.120
This is going to take us to a GitHub page.

00:39.440 --> 00:42.320
And currently this repository is deprecated.

00:42.320 --> 00:45.080
So we're going to go to this link.

00:45.280 --> 00:48.680
And then finally we're going to find here the GitHub MCP server.

00:49.040 --> 00:51.960
And this explains some of the use cases.

00:51.960 --> 00:54.120
So when it makes sense to use this MCP.

00:54.480 --> 00:57.080
But first of all there are a few steps that we need to do.

00:57.480 --> 01:01.340
So first of all we're going to start with everything that is here inside the list.

01:01.860 --> 01:04.660
And the first item that we have on the list is having.

01:04.700 --> 01:05.900
Docker installed.

01:06.180 --> 01:11.260
If you don't have Docker installed, go to docker.com and download Docker Desktop.

01:11.620 --> 01:15.780
It's free for a personal plan and it's relatively easy to do.

01:15.820 --> 01:21.660
After the installation, I highly recommend doing a restart of your computer, but when Docker Desktop

01:21.660 --> 01:23.860
is running, it should look similar to this.

01:24.180 --> 01:27.620
And right here at the bottom it should say engine running.

01:27.620 --> 01:31.540
So this is how you know that Docker is now installed on your computer.

01:31.580 --> 01:36.700
This is a very nice tool for development purposes because it allows you to run everything in an isolated

01:36.700 --> 01:37.420
environment.

01:38.820 --> 01:45.300
So once we are done with that and have ensured that Docker is running, we still need to do point number

01:45.300 --> 01:48.740
three, which is to create a GitHub personal access token.

01:48.740 --> 01:53.100
So we can click on this particular link here and open up a new page.

01:53.380 --> 01:58.740
It's gonna ask us to create a personal access token, which is like a temporary password that we're

01:58.870 --> 02:05.510
going to need inside cursor to be able to do some actions and go ahead and call this GitHub MCP so that

02:05.510 --> 02:06.990
we know why we have created this.

02:07.190 --> 02:12.390
I'm going to select a relatively short expiration date, but feel free to leave the default of 30 days.

02:13.230 --> 02:16.790
And apart from this we're going to select here the repository access.

02:16.790 --> 02:18.750
And this is going to be very very narrow.

02:18.950 --> 02:21.790
We're going to select only a specific repository.

02:21.790 --> 02:24.310
And this is the repository with a flashcard.

02:24.990 --> 02:30.030
Now apart from this in terms of repository permissions there are a few things that we want to enable.

02:30.030 --> 02:31.790
So we're going to expand this part.

02:32.270 --> 02:35.390
And there are a few things that we want to have access to.

02:35.430 --> 02:37.430
One of them is contents.

02:38.310 --> 02:39.990
I'm going to set it to read and write.

02:40.470 --> 02:43.310
But just as well we can set it to issues.

02:43.750 --> 02:48.870
And later on, in case you need anything else that doesn't work, feel free to go back to this configuration

02:49.230 --> 02:52.070
and set up the right tokens that you need.

02:52.790 --> 02:58.570
I'm going to go ahead and generate this token, and this is going to be displayed here in case you need

02:58.570 --> 02:59.930
to create another token.

03:00.130 --> 03:04.890
This particular token is never going to be shown again, so you need to delete this token and go through

03:04.890 --> 03:06.530
the process once again.

03:06.730 --> 03:09.210
But in terms of that now we also have this token.

03:09.210 --> 03:10.490
Keep this page open.

03:10.490 --> 03:14.650
And we're going to go to the next part which is the installation itself.

03:14.930 --> 03:16.850
And this is relatively simple.

03:17.130 --> 03:19.290
We're not going to use the example here with VSCode.

03:19.290 --> 03:21.530
Instead we're going to scroll a bit further down.

03:21.810 --> 03:25.850
And we're going to take a look at this particular setup here with MCP servers.

03:25.850 --> 03:33.050
We're going to copy this contents and then go inside cursor and make sure we click on cursor and not

03:33.050 --> 03:33.810
inside the rules.

03:33.810 --> 03:38.490
Create a new file which is called m dot JSON.

03:38.930 --> 03:41.210
And we're going to paste here this contents.

03:41.970 --> 03:43.370
And then we're going to save it.

03:43.810 --> 03:46.530
Afterwards we want to make sure that this setup is correct.

03:46.530 --> 03:53.290
So we're going to click here on the gear icon go to MCP and we're going to see here GitHub.

03:53.850 --> 03:55.810
And this appears to be enabled.

03:55.810 --> 04:00.300
So I'm going to refresh here and we're going to see here this particular setup.

04:00.300 --> 04:02.060
Now there's one more thing we need to do.

04:02.500 --> 04:06.780
And this is to specify our GitHub personal access token.

04:07.020 --> 04:08.900
Otherwise this will not work properly.

04:09.100 --> 04:13.820
And this is also the reason why we have created this fine grained personal access token.

04:13.820 --> 04:16.500
So I'm going to click on copy here.

04:16.780 --> 04:19.580
Go inside our configuration paste it here.

04:20.300 --> 04:25.660
So now we have it apart from this want to make sure that this particular file is added to the.

04:25.700 --> 04:26.380
Gitignore.

04:26.660 --> 04:30.260
So I'm gonna copy it here inside the chat and say add to.

04:30.300 --> 04:30.980
Gitignore.

04:32.940 --> 04:39.180
Once we're done with that it's pretty much everything that we need to do at this stage in terms of adding

04:39.180 --> 04:40.900
this MCP server.

04:41.140 --> 04:42.740
You're taking a look at Docker Desktop.

04:42.740 --> 04:44.900
We're going to see here that there is a container running.

04:44.900 --> 04:48.780
So this is pretty much the MCP server running on your own machine.

04:48.780 --> 04:53.740
And this is needed to make this bridge between AI agent and GitHub.
