File size: 1,982 Bytes
1f1d221
eda1760
 
 
 
 
ac2434f
668c2e8
eda1760
 
 
 
 
 
 
 
 
 
326220d
eda1760
326220d
 
 
 
 
e0837eb
326220d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
949958d
 
326220d
 
 
e0837eb
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
title: FixMyEnv Agent
emoji: 🐍
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.0.1
app_file: src/upgrade_advisor/app.py
pinned: false
license: mit
short_description: MCP for Agents that plan your python package upgrade
hf_oauth: true 
tags:
  - building-mcp-track-enterprise
  - building-mcp-track-customer
  - mcp-in-action-track-customer
  - mcp-in-action-track-enterprise
---
# Instructions 

1. Create a scoped Personal Access Token from GitHub from https://github.com/settings/personal-access-tokens/new with the following scopes, that allows access for public repositories. 
2. Store as GITHUB_PAT in a .env file in the root directory of the project.

TO-DO

3. Inspector: `npx @modelcontextprotocol/inspector`, accessible at `http://localhost:6274` 


## Running the MCP Server Locally      
Launch the server with the command (using `podman` here) 
``` 
podman run -i --rm \
-e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT \
-e GITHUB_READ_ONLY=1 \
-e GITHUB_TOOLSETS="default"  
ghcr.io/github/github-mcp-server
``` 
Connecting to `Continue` Extension from VSCode: TODO


## Running MCP With VSCode configuration
```{
    "inputs": [
        {
            "type": "promptString",
            "id": "github_token",
            "description": "GitHub Personal Access Token",
            "password": true
        }
    ],
    "servers": {
        "github": {
            "command": "podman",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "GITHUB_PERSONAL_ACCESS_TOKEN",
                "-e",
                "GITHUB_READ_ONLY=1",
                "-e",
                "GITHUB_TOOLSETS=default",
                "ghcr.io/github/github-mcp-server"
            ],
            "env": {
                "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
                "GITHUB_READ_ONLY": "1",
                "GITHUB_TOOLSETS": "default",
            }
        }
    }
}```