Skip to content
cccskills
FreePublished on GitHub

connect

Use when the user wants to connect, set up, or configure Fusionaly in their AI client, or when the fusionaly MCP tools are missing. Verifies the Fusionaly URL and agent key, then adds the MCP server to Claude Code, Codex, Cursor, Gemini CLI, or another client.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Connect Fusionaly

Connect the user's Fusionaly server to their AI client, so the fusionaly MCP tools work. Verify first, write config second.

1. Collect the two values

Check what is already there, and only ask for what is missing:

  • env | grep -E '^FUSIONALY_(URL|AGENT_KEY|HOST|API_KEY)=' (FUSIONALY_HOST and FUSIONALY_API_KEY are older names for the same two values)
  • the client's existing config (see step 3)

When you ask:

  • URL: the Fusionaly address, for example https://data.yoursite.com. Strip a trailing slash and a trailing /mcp.
  • Agent key: from Administration > Agents in Fusionaly. It is read-only. It is not the website id or the tracking snippet.

Never echo the key back in full. Show the last four characters at most.

2. Verify before writing anything

curl -sS -o /dev/null -w '%{http_code}' -X POST "<url>/mcp" \
  -H "Authorization: Bearer <key>" \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
CodeMeaningSay this
200WorksContinue to step 3.
401Key rejectedWrong key, or no key generated yet. Get it from Administration > Agents.
404No MCP endpointThe server predates v2.3.0. Run sudo fusionaly update on it.
429Rate limitedWait a minute and try again.
000UnreachableCheck the URL, and whether the host is reachable from here.

Do not write config for a setup that does not answer. Fix it with the user first.

3. Write the config for the client you run in

The key never goes into a config file. Config files get synced, shared, and committed; many people keep them in a dotfiles repo. Every client below reads the key from the FUSIONALY_AGENT_KEY environment variable instead. Only the URL, which is not a secret, goes into config.

Where the key goes. Before writing FUSIONALY_AGENT_KEY=... into any file, check that git does not track it:

f="$(readlink -f ~/.zshrc)"; git -C "$(dirname "$f")" ls-files --error-unmatch "$f" >/dev/null 2>&1 && echo tracked
  • Not tracked: offer to add export FUSIONALY_AGENT_KEY=... to the user's shell profile.
  • Tracked (a dotfiles repo): do not write it. Show the export line and tell the user to put it in an untracked file their profile sources (for example ~/.secrets) or in their secret manager.

Keep everything else in each file. Create a config file if it does not exist.

Claude Code (plugin installed). The plugin's MCP config reads ${FUSIONALY_URL} and ${FUSIONALY_AGENT_KEY} from the environment. Add only the URL to the env block of ~/.claude/settings.json, and the key as above:

{ "env": { "FUSIONALY_URL": "https://data.yoursite.com" } }

Codex. Codex reads the key from the environment by design:

codex mcp add fusionaly --url https://data.yoursite.com/mcp --bearer-token-env-var FUSIONALY_AGENT_KEY

Cursor. ~/.cursor/mcp.json, with the key read from the environment:

{ "mcpServers": { "fusionaly": { "url": "https://data.yoursite.com/mcp", "headers": { "Authorization": "Bearer ${env:FUSIONALY_AGENT_KEY}" } } } }

Gemini CLI. The extension asks for both values on install and keeps the key in the system keychain. To change them later: gemini extensions config fusionaly.

Another client. Use the client's environment-variable syntax for the header if it has one. A stdio bridge reads it from the shell: npx -y mcp-remote <url>/mcp --header "Authorization: Bearer ${FUSIONALY_AGENT_KEY}". If a client can only hold the key in plain text, say so, and tell the user not to commit that file.

GUI apps started from the dock do not read your shell profile. If a desktop client does not see the variable, it must be started from a terminal, or the key set in that client's own settings.

4. Confirm

Tell the user: connected to <url> and verified. Most clients read MCP config only at startup, so they must restart it. Then they can ask "How is my traffic this week?".

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Use when user asks about website analytics, traffic, visitors, page views, referrers, or mentions "fusionaly". Queries Fusionaly analytics via SQL API.

The English summary is being prepared. Showing the original description.

karloscodes/fusionaly-oss15Updated Oct 19, 2026

Use when the user asks about website analytics, traffic, visitors, page views, referrers, conversions, goals, or mentions "fusionaly". Answers from a self-hosted Fusionaly instance through its MCP tools (or its SQL API), in plain English with numbers.

The English summary is being prepared. Showing the original description.

karloscodes/fusionaly-oss15Updated Oct 19, 2026

Use ONLY when explicitly invoked. Puts Fusionaly on a Linux server you reach over SSH with a key. Optionally creates a Hetzner server and the Cloudflare DNS record. The user runs the one interactive install command; the agent prepares and checks everything around it.

The English summary is being prepared. Showing the original description.

karloscodes/fusionaly-oss15Updated Oct 19, 2026

qa

Free

Use after code changes, before releases, or when testing features - runs the right level of QA based on what changed

The English summary is being prepared. Showing the original description.

karloscodes/fusionaly-oss15Updated Oct 19, 2026

tech

Free

Use when writing or reviewing Go code in fusionaly-oss — adding routes, handlers, domain contexts, background jobs, the manager CLI, wiring the app, or writing tests. Covers the cartridge framework, matcha for the manager, Phoenix Contexts, lifecycle/shutdown, and the test conventions.

The English summary is being prepared. Showing the original description.

karloscodes/fusionaly-oss15Updated Oct 19, 2026

See all skills by karloscodes

Report a problem with this skill