mcprack-sync-cline (recommended agent)¶
mcprack recommends the open-source Cline CLI (command cline, Debian
package cline-client) with a self-hosted LLM as the AI agent for its users.
mcprack-sync-cline sets Cline up in one step: the MCP servers you selected
in mcprack, and the LLM your mcprack advertises. Built on mcprack-client.
Install and set up¶
Create a personal API token in mcprack (user menu → API tokens) with the scope
config:read — plus proxy:access when the instance runs with OAuth.
sudo apt install cline-client mcprack-sync-cline
mcprack-sync-cline configure --url https://mcprack.example.com # asks for the token
mcprack-sync-cline sync --set-default
cline "which MCP tools do you have?"
What it writes¶
All files live under ~/.cline/data/settings/ ($CLINE_DIR/data/settings/
when CLINE_DIR is set) and are created 0600:
cline_mcp_settings.jsonOne
streamableHttpentry per server mcprack sends (by default the single aggregatemcprack). Your own local servers stay. On a managed entry what you set in Cline —disabled,autoApprove,alwaysAllow,timeout— is kept.providers.jsonThe advertised LLM (for example
openai-compatibleathttp://10.11.182.105:8080/v1), in the same shapecline authwrites. It becomes Cline’s default provider with--set-default, or when Cline has no default yet. Other providers are left alone. Once Cline has an address for that provider, a plain (timer) sync does not switch it to a different one — it warns;sync --set-defaultaccepts the new address.models.jsonThe model’s context window, when mcprack advertises one.
Note
Cline does not expand ${VAR} in a server’s URL or headers. The file
therefore holds your personal access URL — or, with OAuth on, your token as
an Authorization header. Keep it private; revoke it in mcprack if it
leaks.
Sync¶
mcprack-sync-cline sync # servers + LLM
mcprack-sync-cline sync --set-default # also make the LLM the default provider
mcprack-sync-cline sync --no-llm # servers only
mcprack-sync-cline sync --dry-run
mcprack-sync-cline status
Automatic updates¶
systemctl --user enable --now mcprack-sync-cline.timer
Administrator: advertising the LLM¶
In /etc/mcprack/env:
RECOMMENDED_AGENT=cline # the default
RECOMMENDED_LLM_BASE_URL=http://10.11.182.105:8080/v1
RECOMMENDED_LLM_MODEL=/var/lib/llm/Qwen3.5-9B-Q6_K.gguf
RECOMMENDED_LLM_CONTEXT_WINDOW=65536 # optional
#RECOMMENDED_LLM_PROVIDER=openai-compatible # the default
#RECOMMENDED_LLM_API_KEY=none # given to every user!
Users see it on the catalog page (the Cline CLI card is first and marked
Recommended), through GET /api/v1/me/agent and the management MCP tool
mcprack_get_recommended_agent. Check a user’s setup with
mcprack user config verify USERNAME cline.
Without the sync tool¶
View & Copy on the Cline card shows equivalent commands:
cline mcp add mcprack '<your aggregate URL>' --transport streamableHttp --yes
cline auth -p openai-compatible -b http://10.11.182.105:8080/v1 -m /var/lib/llm/Qwen3.5-9B-Q6_K.gguf -k none