feelcouchLagrange
RU
Install

Customize: commands, skills, connections

Everything described here is available three ways — Settings window (⌃⌥,), CLI tool ccset, and manual JSON editing. JSON changes are seen by both Settings and ccset — nothing is cached outside the file except the settings schema itself (hammerspoon/settings.schema.json is reread on Hammerspoon restart).

1. "Commands and skills"

Settings window section showing everything history/cchist top --catalog already finds: skills (~/.claude/skills/*/SKILL.md), commands (~/.claude/commands/*.md), agents, plugins, Makefile/justfile/package.json targets, scripts in bin//tests//scripts/, docs. Search by substring in name/description. Each row has:

Format: ~/.config/claude-cowork/widgets.json

{
  "widgets": [
    {
      "id": "claude:deploy",
      "kind": "claude",
      "text": "deploy",
      "label": "Deploy",
      "icon": "▶",
      "hotkey": "⌃⌥1"
    }
  ],
  "smartField": {
    "claude:deploy": true,
    "project:tests/run.sh": true
  }
}

Manual edit: add/remove an object in widgets, add/remove a key in smartField — no validation besides JSON check (Settings and panel simply ignore unknown fields).

Format: ~/.config/claude-cowork/commands.json (custom smart field commands)

{
  "commands": [
    {
      "name": "Disk on host",
      "kind": "shell",
      "aliases": ["disk", "df"],
      "text": "ssh host-01.example.com df -h {q}"
    }
  ]
}

The same file is read by hammerspoon/panel/panel.lua (COMMANDS_USER) — edit doesn't require restart, just click the smart field (⌃⌥Space) with an alias. kind: shell (execute, {q} substituted as one argument), open (open path/URL), prompt (insert text in the field — user sends). Manual edit only.

2. "Connections"

YouTrack, GitLab, and (optional) Grafana/Prometheus/Yandex Cloud/AWS — all off by default. Registration is not through claude mcp add (that would add the server to all projects globally), but through separate profile files ~/.claude/mcp/<profile>.json, which you (or a task) connect point-to-point. Tokens — only in Keychain (security, service cowork-<name>, account — your $USER), never in a file.

Format: ~/.config/claude-cowork/connections.json

{
  "youtrack": { "enabled": true, "url": "https://yt.example.com", "auth": "token" },
  "gitlab":   { "enabled": true, "url": "https://gitlab.example.com", "permission": "readonly" },
  "grafana":  { "enabled": false, "url": "" },
  "prometheus": { "enabled": false, "url": "" },
  "yandex":   { "docsEnabled": false },
  "aws":      { "docsEnabled": false, "apiEnabled": false }
}

URLs and flags only — no tokens. Written by Settings, installer step "Connections" (install.sh --only=connections, asks for URLs, empty input skips), and by hand.

MCP profiles

ccset mcp-profile work|monitoring|cloud [--print] takes connections.json + Keychain and generates ~/.claude/mcp/<profile>.json from a template (claude/mcp/<profile>.json.template):

Disabled server is completely dropped from the result (no empty URL left). --print outputs to stdout instead of writing — useful to check before putting in ~/.claude/mcp/.

Profile is auto-picked by task. bin/cwin before running calls cc-route --mcp-profile "task text" (keywords, no model, see docs/dev/token-economy.md §10) and if a matching ~/.claude/mcp/<profile>.json has already been generated, passes it via --mcp-config. No file or no keyword — MCP is left alone. Turn off with CC_AUTO_MCP=0.

Licenses and read-only limits

Service Package License Read-only
YouTrack built-in remote MCP — (part of YouTrack) depends on token/OAuth permissions
GitLab @zereight/mcp-gitlab MIT GITLAB_PERMISSION_MODE=readonly
Grafana mcp-grafana Apache-2.0 --disable-write
Prometheus prometheus-mcp-server Apache-2.0 read-only by default, dangerous TSDB tools require separate flag not passed by the template
Yandex Cloud (docs) yandex-docs, streamableHttp Apache-2.0 this is docs search, no resource access
AWS (docs) awslabs.aws-documentation-mcp-server Apache-2.0 docs search only
AWS API awslabs.aws-api-mcp-server Apache-2.0 READ_OPERATIONS_ONLY=true

Yandex Cloud Toolkit MCP (full resource management, not just docs) is intentionally excluded from this release — couldn't confirm its read-only mode and has a complex setup.