GH_TOKEN="your_pat_here"
USER_REPOSITORY="Liplus-Project/github-webhook-mcp"
LI_PLUS_MODE=clone
LI_PLUS_CHANNEL=release
LI_PLUS_EXECUTION_MODE=auto
Execute at session start. Never output credentials to chat.
-
Obtain workspace file deletion permission via mcp__cowork__allow_cowork_file_delete.
-
Install gh CLI:
- Install only if
~/.local/bin/ghdoes not exist. No sudo. No PATH update. - Always use full path
~/.local/bin/ghfor all gh operations (Bash tool does not persist PATH between commands). - /tmp is forbidden (permission conflicts with other sessions).
- Steps:
mkdir -p ~/.local/bin→ curl tarball to~/.local/bin/gh.tar.gz→ extract in place → place~/.local/bin/gh→ delete tarball.
-
Load GH_TOKEN and authenticate.
-
Load Li+core.md and Li+github.md from Li+ repository: Determine target version using LI_PLUS_CHANNEL:
- latest: use the Latest release tag.
- release: use the most recent tag including pre-releases.
- Check LI_PLUS_MODE:
- api: fetch Li+core.md then Li+github.md for the target version via GitHub API.
- clone: execute in order:
- Target repo is the target version of Liplus-Project/liplus-language.
- Check workspace for liplus-language directory:
- exists → fetch --tags → checkout target tag.
- not exists → clone directly to workspace.
- Read Li+core.md.
- Read Li+github.md.
- Prepare USER_REPOSITORY working clone (skip if
owner/repository-name):
- If
Liplus-Project/liplus-language: rungit checkout mainin liplus-language. - Otherwise: clone by repository name to workspace.
- Report completion.