Fitaily MCP

DeepSeek Harness: connect MCP

Connecting Fitaily MCP in DeepSeek Harness from scratch. The fast path is at the top: paste a prompt or a link to this page to your agent and do nothing by hand. Below is the same process step by step, with checks and pitfalls.

Start here: ask the agent#

You do not have to configure anything by hand. Open a new DSH session, paste the prompt below and do only what the agent asks for, which is signing in through the browser. It handles the rest: installing the MCP manager, adding the server, checking the token and making a first tool call.

Prompt for the agent (PL)
Skonfiguruj Fitaily MCP w DeepSeek Harness (profil desktop).

1. Zainstaluj menedżer MCP z OAuth:
   npx -p @deepseek-ai/dsh dsh plugin --profile desktop add      github:hyqhyq3/dsh-mcp-manager#v0.18.0
2. W Settings > MCP dodaj serwer:
   nazwa fitaily, URL https://mcp.fitaily.com/mcp, Auth OAuth.
   Scopes, Client ID i secret zostaw puste (rejestracja dynamiczna).
3. Powiedz mi, kiedy mam kliknąć Authenticate i zalogować się
   w przeglądarce.
4. Sprawdź ~/.dsh/mcp-manager.json: access_token, refresh_token
   oraz aud równe https://mcp.fitaily.com/mcp.
5. Wywołaj narzędzie get_profile i pokaż wynik.

Wszystko, co da się zrobić z terminala, zrób sam. Pytaj tylko wtedy,
gdy brakuje danych albo potrzebna jest moja zgoda. Nie zgaduj
identyfikatorów ani kształtu odpowiedzi API.
Prompt for the agent (EN)
Set up Fitaily MCP in DeepSeek Harness (desktop profile).

1. Install the OAuth-capable MCP manager:
   npx -p @deepseek-ai/dsh dsh plugin --profile desktop add      github:hyqhyq3/dsh-mcp-manager#v0.18.0
2. In Settings > MCP add a server:
   name fitaily, URL https://mcp.fitaily.com/mcp, Auth OAuth.
   Leave scopes, client ID and secret empty (dynamic registration).
3. Tell me when to click Authenticate and sign in through the browser.
4. Check ~/.dsh/mcp-manager.json for access_token, refresh_token
   and aud equal to https://mcp.fitaily.com/mcp.
5. Call the get_profile tool and show me the result.

Do everything that can be done from the terminal yourself. Only ask
when data is missing or you need my consent. Never guess identifiers
or API response shapes.

Even shorter: just the link

Got an agent with terminal access? Paste the link to this page (https://fitaily.com/docs/guides/dsh-mcp/en) and say “do it”. The agent runs the manual steps while you confirm sign-in and consent. If you configured something before, you can also paste the link to that conversation so the agent starts with full context.

  • The agent installs dsh-mcp-manager pinned to a tag and replaces the built-in MCP manager.
  • The agent adds the fitaily server with the https://mcp.fitaily.com/mcp URL and enables OAuth.
  • The agent verifies the token: access_token, refresh_token and aud equal to the server URL.
  • You sign in to Fitaily in the browser and accept the scopes. That is the only step where you click anything.

If you prefer to understand what happens, or the agent gets stuck, walk through the steps yourself. Below is the whole path the agent takes for you.

Prerequisites#

  • DSH Desktop with a working GUI and the desktop profile ($DSH_PROFILE_DIR is ~/.dsh/profiles/desktop).
  • Node.js ^22.19 or >=24 plus pnpm on PATH. Required by the OAuth plugin; Desktop ships Node 24.21.
  • git, because the bundle installs from GitHub.
  • A Fitaily account and consent to access your data.
  • Sandbox awareness: writing outside the workspace (for example in ~/.dsh/...) needs danger-full-access consent.
bash
printf '%s\n' "$DSH_PROFILE" "$DSH_PROFILE_DIR" "$DSH_NODE_EXECUTABLE"

1. Install the OAuth-capable MCP manager#

The built-in MCP client is not enough

The built-in @deepseek-ai/dsh-mcp-client only accepts static headers or ${credential:…}. Fitaily issues no API tokens; it requires OAuth 2.1 with PKCE and dynamic registration (RFC 7591). That is why we install dsh-mcp-manager.

Review the code before installing#

The plugin runs with the Host process’s full privileges, so this is not a formality:

bash
git clone --depth 1 https://github.com/hyqhyq3/dsh-mcp-manager /tmp/mcpman
cd /tmp/mcpman
cat package.json          # brak dependencies, brak skryptów install/postinstall
grep -oE 'https?://[a-zA-Z0-9._/-]+' lib/*.js | sort -u   # jedyny obcy host to przykład w JSDoc
grep -nE 'eval\(|child_process|\.credentials' lib/*.js   # tylko spawn dla transportu stdio

Accepted version: v0.18.0 (latest tag, and SECURITY.md requires pinning a tag).

Install the pinned tag#

bash
npx -p @deepseek-ai/dsh dsh plugin --profile desktop add github:hyqhyq3/dsh-mcp-manager#v0.18.0

Expected result: application: applied, version 0.18.0, warnings: [].

The plugin replaces the built-in manager

It uses the same id as the built-in manager (mcp-manager) and deliberately replaces it. Do not run both, because the built-in manager’s servers config stops being used.

2. Add the `fitaily` server#

Via the GUI (recommended)#

Refresh the GUI

Cmd+R, otherwise the plugin’s client layer does not load.

Settings, MCP, + Add MCP server

Enter the values from the table below.

Save, Authenticate

The card shows needs-auth, so click Authenticate.

Sign in and choose a scope

In the browser, sign in to Fitaily and choose read and write.

Status: connected

The card shows connected (N tools).

FieldValue
Scopeuser
Namefitaily
URLhttps://mcp.fitaily.com/mcp
AuthOAuth
Scopesempty (the plugin reads them from metadata)
Client ID / secret / nameempty (dynamic registration)

Alternative: manual state-file entry#

bash
cp ~/.dsh/mcp-manager.json ~/.dsh/mcp-manager.json.bak-$(date +%Y%m%d-%H%M%S)
json
{
  "servers": [
    {
      "id": "fitaily01mcp",
      "name": "fitaily",
      "type": "http",
      "url": "https://mcp.fitaily.com/mcp",
      "authMode": "oauth",
      "headers": {},
      "headerEnv": {}
    }
  ],
  "workspaceTokens": {},
  "onDemandToolInjection": true
}

No watcher, full restart required

The ~/.dsh/mcp-manager.json file has no watcher (watch only applies to the workspace mcp.json). After editing: chmod 600 ~/.dsh/mcp-manager.json, full DSH restart, then Authenticate.

Verify the token#

bash
python3 - <<'PY'
import json, os, base64
s = json.load(open(os.path.expanduser('~/.dsh/mcp-manager.json')))
for srv in s['servers']:
    t = (srv.get('oauth') or {}).get('tokens') or {}
    print(srv['name'], '| token:', bool(t.get('access_token')), '| refresh:', bool(t.get('refresh_token')))
    at = t.get('access_token', '')
    if at.count('.') == 2:
        p = json.loads(base64.urlsafe_b64decode(at.split('.')[1] + '=='))
        print('  scope:', p.get('scope'))
        print('  aud:  ', p.get('aud'))
PY

Correct: token: True, refresh: True, aud equal to https://mcp.fitaily.com/mcp, and scope includes the agreed scopes.

3. Choose the MCP tool mode#

The manager has an On-demand MCP tool calls toggle (Settings, MCP), on by default.

ModeWhat the model seesCalls
On-demand ONmcp_search_tools, mcp_describe_tool, mcp_execute_tooldirect mcp__fitaily__* are hidden (error “hidden while on-demand MCP tools are enabled”)
On-demand OFFall mcp__fitaily__*direct, full schemas on every request

Consequence: code calling MCP tools from the Host must first try mcp_execute_tool, then fall back to the direct name. The panel on the next page does exactly that.

4. Prove that it works#

  • In Settings, MCP the fitaily card shows connected and a tool count.
  • In a chat with the agent, ask for get_profile. The answer must contain your data, not an error.
  • A write call (for example log_water) runs after your approval in the chat and immediately returns the saved entry.

Checklist#

  • dsh-mcp-manager v0.18.0 in the profile, include:mcp-manager active.
  • Settings, MCP: fitaily = connected (N tools).
  • ~/.dsh/mcp-manager.json: access_token and refresh_token, aud equal to the server URL.
  • A fitaily tool returns data (broker or direct call).
  • A write waits for approval, and after approval the data is visible in the app.

Pitfalls we hit (8)#

#SymptomCauseFix
1The built-in client cannot sign in to Fitailydsh-mcp-client has no OAuth, and Fitaily has no API tokensUse dsh-mcp-manager (OAuth PKCE + DCR)
2“OAuth bridge + LaunchAgent” planWrong assumption that auth must be wired manuallyUnnecessary, the plugin handles OAuth and refresh rotation
3404 on /mcp-manager/api/pingThe connection.admit gate rejects unauthenticated calls404 or 401 from curl is correct, verify in the GUI
4No Settings, MCP after installClient layer not loadedCmd+R, full restart for a new bundle
5Manual mcp-manager.json edit does not apply immediatelyThe global file has no watcherFull DSH restart after editing
6mcp__fitaily__* returns “hidden while on-demand…”The broker hides direct toolsCall mcp_execute_tool or disable on-demand
7“Operation not permitted” writing outside the workspaceSandbox workspace-writeDeliberate danger-full-access for one write plus backup
8Guessing the API response shapeClosed backend, docs list only parametersCheck the MCP sources or run a real call

Refresh or restart?

A manual ~/.dsh/mcp-manager.json edit, a new bundle or a plugin version change require a full restart (Cmd+Q). New MCP tools appear only in a new session. Ordinary GUI settings just need Cmd+R.

Rollback and cleanup#

bash
# 1. Usuń menedżer MCP   target: dsh-mcp-manager
# 2. Przywróć stan sprzed edycji
cp ~/.dsh/mcp-manager.json.bak-<data> ~/.dsh/mcp-manager.json
chmod 600 ~/.dsh/mcp-manager.json
  • Revoke Fitaily: app, Settings, AI Integrations (the token stops working immediately).
  • Disable without deleting: Settings, MCP, the fitaily toggle.

Next steps#

© 2026 Fitaily · MCP documentation · GitHub