Skip to content

Commit 7875b2a

Browse files
committed
fix: persistent header docs, terminal view for binary pack docs
1 parent 2678bab commit 7875b2a

File tree

2 files changed

+76
-70
lines changed

2 files changed

+76
-70
lines changed

docs/how_to_pack_binary.md

Lines changed: 67 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
1-
# How to pack and publish the GitHub MCP Server
1+
# How To Pack Binary MCP Server
22

33
This guide walks you through manually packaging and publishing the official [GitHub MCP server](https://github.com/github/github-mcp-server) to UiPath Orchestrator. An [example GitHub Actions workflow](/.github/workflows/build-github-mcp-server.yml) is provided to automate these steps.
44

5+
/// attention
6+
To build binary MCP servers locally, your environment must match UiPath's serverless runtime architecture (Ubuntu 64-bit AMD64). If you're on a different operating system, we recommend using the GitHub Actions workflow described in the [Automating with GitHub Actions](#automating-with-github-actions) section below.
7+
///
8+
59
## Prerequisites
610

711
- UiPath Cloud account
812
- UiPath PAT (personal access token)
913
- `go` (version 1.21+)
10-
- `python` (version 3.10+)
14+
- `python` (version 3.11+)
1115
- `uv` package manager (`pip install uv`)
1216

1317
## Steps
1418

1519
### 1. Clone and Build the GitHub MCP Server
1620

17-
```bash
21+
<!-- termynal -->
22+
```shell
1823
# Clone the repository
19-
git clone https://github.com/github/github-mcp-server.git
20-
cd github-mcp-server
24+
> git clone https://github.com/github/github-mcp-server.git
25+
> cd github-mcp-server
2126

2227
# Build the server
23-
cd cmd/github-mcp-server
24-
go build
28+
> cd cmd/github-mcp-server
29+
> go build
2530
```
2631

2732
### 2. Create Package Directory
2833

29-
```bash
30-
# Create a temp directory for packaging
31-
mkdir -p ~/mcp-package
32-
cp github-mcp-server ~/mcp-package/
33-
chmod +x ~/mcp-package/github-mcp-server
34-
cd ~/mcp-package
34+
<!-- termynal -->
35+
```shell
36+
# Create package directory and copy executable
37+
> mkdir -p mcp-package
38+
> cp github-mcp-server mcp-package/
39+
> cd mcp-package
3540
```
3641

3742
### 3. Create Configuration Files
3843

39-
Create `mcp.json`:
44+
Create the following files in the mcp-package directory:
4045

41-
```bash
42-
cat > mcp.json << EOF
46+
1. `mcp.json` - Server configuration:
47+
```json
4348
{
4449
"servers": {
4550
"github": {
@@ -51,87 +56,87 @@ cat > mcp.json << EOF
5156
}
5257
}
5358
}
54-
EOF
5559
```
5660

57-
Create `pyproject.toml`:
58-
59-
```bash
60-
cat > pyproject.toml << EOF
61+
2. `pyproject.toml` - Project metadata:
62+
```toml
6163
[project]
6264
name = "mcp-github-server"
6365
version = "0.0.1"
6466
description = "Official GitHub MCP Server"
6567
authors = [{ name = "John Doe" }]
6668
dependencies = [
67-
"uipath-mcp>=0.0.74",
69+
"uipath-mcp>=0.0.99",
6870
]
69-
requires-python = ">=3.10"
70-
EOF
71-
```
72-
73-
Create `.env` file:
74-
75-
```bash
76-
cat > .env << EOF
77-
UIPATH_ACCESS_TOKEN=your_access_token_here
78-
UIPATH_URL=https://cloud.uipath.com/account/tenant
79-
EOF
71+
requires-python = ">=3.11"
8072
```
8173

8274
### 4. Set Up Python Environment
8375

84-
```bash
85-
# Create and activate virtual environment
86-
uv venv -p 3.10 .venv
87-
source .venv/bin/activate
76+
<!-- termynal -->
77+
```shell
78+
# Initialize a new uv project in the current directory
79+
> uv venv
80+
81+
# Activate the virtual environment
82+
> source .venv/bin/activate
8883

8984
# Install dependencies
90-
uv sync
85+
> uv sync
9186
```
9287

93-
### 5. Initialize UiPath Package
94-
95-
```bash
96-
# Initialize UiPath project
97-
uipath init
88+
### 5. Authenticate With UiPath
89+
90+
<!-- termynal -->
91+
```shell
92+
> uipath auth
93+
⠋ Authenticating with UiPath ...
94+
🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
95+
👇 Select tenant:
96+
0: Tenant1
97+
1: Tenant2
98+
Select tenant number: 0
99+
Selected tenant: Tenant1
100+
✓ Authentication successful.
98101
```
99102

100-
This creates a `uipath.json` file.
103+
### 6. Initialize UiPath Package
101104

102-
### 6. Edit uipath.json to Include the Executable
103-
104-
Open `uipath.json` in a text editor:
105-
106-
```bash
107-
nano uipath.json
105+
<!-- termynal -->
106+
```shell
107+
⠋ Initializing UiPath project ...
108+
✓ Created '.env' file.
109+
✓ Created 'uipath.json' file.
108110
```
109111

110-
Add a `settings` section with `filesIncluded`:
111-
112+
Edit the generated `uipath.json` to include the executable:
112113
```json
113114
{
114115
"settings": {
115116
"filesIncluded": ["github-mcp-server"]
116-
},
117-
"entrypoints": []
117+
}
118118
}
119119
```
120120

121-
Save and exit.
122-
123121
### 7. Package for UiPath
124122

125-
```bash
126-
# Create the package
127-
uipath pack
123+
<!-- termynal -->
124+
```shell
125+
⠋ Packaging project ...
126+
Name : mcp-github-server
127+
Version : 0.0.1
128+
Description: Official GitHub MCP Server
129+
Authors : John Doe
130+
✓ Project successfully packaged.
128131
```
129132

130-
This creates a `.nupkg` file in the `.uipath` directory.
131-
132133
### 8. Upload to UiPath Orchestrator
133134

134-
Upload the `.nupkg` file to your UiPath Orchestrator instance through the web interface, API or using the `uipath publish` CLI command.
135+
<!-- termynal -->
136+
```shell
137+
⠙ Publishing most recent package: mcp-github-server.0.0.1.nupkg ...
138+
✓ Package published successfully!
139+
```
135140

136141
## Automating with GitHub Actions
137142

docs/quick_start.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,12 @@ Select tenant number: 0
154154
Selected tenant: Tenant1
155155
✓ Authentication successful.
156156
```
157-
# Run the MCP Server
157+
158+
## Run the MCP Server
158159

159160
There are two ways to run your coded MCP server:
160161

161-
## 1. Running Locally (On-Prem)
162+
### 1. Running Locally (On-Prem)
162163

163164
When running the server locally, JSON-RPC requests are tunneled from UiPath servers to your local server. During startup, the local server automatically registers itself with UiPath.
164165

@@ -194,7 +195,7 @@ Registering server runtime ...
194195
...
195196
```
196197

197-
### Verifying the Server
198+
#### Verifying the Server
198199

199200
Once started successfully, your MCP server will appear in Orchestrator. Navigate to the MCP Servers tab in your configured folder:
200201

@@ -226,19 +227,19 @@ Now we can connect to the server using any MCP client. See the [Connecting to th
226227
Before running the MCP server, ensure that a serverless runtime (machine) is assigned to your folder in Orchestrator.
227228
///
228229

229-
## 2. Running on UiPath Cloud Platform
230+
### 2. Running on UiPath Cloud Platform
230231

231232
To deploy your MCP server to UiPath Cloud Platform, follow these steps:
232233

233-
### (Optional) Customize the Package
234+
#### (Optional) Customize the Package
234235

235236
Update author details in `pyproject.toml`:
236237

237238
```toml
238239
authors = [{ name = "Your Name", email = "[email protected]" }]
239240
```
240241

241-
### Package Your Project
242+
#### Package Your Project
242243

243244
<!-- termynal -->
244245
```shell
@@ -251,7 +252,7 @@ Authors : John Doe
251252
✓ Project successfully packaged.
252253
```
253254

254-
### Publish The Mcp Server Package
255+
#### Publish The Mcp Server Package
255256

256257
<!-- termynal -->
257258
```shell
@@ -270,7 +271,7 @@ Selected feed: Orchestrator Tenant Processes Feed
270271

271272
After publishing, you can configure and manage your MCP server through the UiPath Cloud interface:
272273

273-
### Configure in UiPath Cloud
274+
#### Configure in UiPath Cloud
274275

275276
1. In Orchestrator, create a new Process using your published MCP Server package as the template
276277
2. In the folder where you want to deploy the server, navigate to the MCP Servers tab and click **Add MCP Server**

0 commit comments

Comments
 (0)