-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcp-git-http.service
More file actions
48 lines (41 loc) · 1.44 KB
/
Copy pathmcp-git-http.service
File metadata and controls
48 lines (41 loc) · 1.44 KB
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
# User-level systemd service for mcp-git HTTP server
# Install to: ~/.config/systemd/user/mcp-git-http.service
#
# Installation:
# mkdir -p ~/.config/systemd/user
# cp mcp-git-http.service ~/.config/systemd/user/mcp-git-http.service
# systemctl --user daemon-reload
# systemctl --user enable mcp-git-http
# systemctl --user start mcp-git-http
#
# Commands:
# systemctl --user status mcp-git-http
# systemctl --user stop mcp-git-http
# systemctl --user restart mcp-git-http
# journalctl --user -u mcp-git-http -f
[Unit]
Description=MCP Git HTTP Server (User)
Documentation=https://github.com/MementoRC/mcp-git
After=network.target
[Service]
Type=simple
WorkingDirectory=%h/ClaudeCode/Servers/git/worktrees/feat-issues-impl
# Environment
Environment=MCP_GIT_HTTP_PORT=4100
Environment=LOG_LEVEL=INFO
Environment=PYTHONPATH=%h/ClaudeCode/Servers/git/worktrees/feat-issues-impl/src
# Use pixi to run the server with default repo for MCP client compatibility
# The --default-repo enables auto-session mode so MCP clients work without explicit session management
ExecStart=%h/.conda/envs/ClaudeCode/bin/pixi run pixi-git-server-http --default-repo %h/ClaudeCode/Servers/git/worktrees/feat-issues-impl
ExecReload=/bin/kill -HUP $MAINPID
# Restart configuration
Restart=on-failure
RestartSec=5
StartLimitBurst=3
StartLimitIntervalSec=60
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=mcp-git-http
[Install]
WantedBy=default.target