원클릭으로
freee-setup
Interactive setup wizard for freee-mcp in Claude Desktop
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Interactive setup wizard for freee-mcp in Claude Desktop
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | freee-setup |
| description | Interactive setup wizard for freee-mcp in Claude Desktop |
| user-invocable | true |
| allowed-tools | ["Bash","AskUserQuestion","Read"] |
| argument-hint | [--mode npx|local] |
Interactive setup wizard that configures freee-mcp as an MCP server in Claude Desktop.
This skill automates the 4-step manual setup process:
FREEE_TOKEN_ENCRYPTION_KEYclaude_desktop_config.json with the correct structureThe helper script is located relative to this skill file:
SCRIPT_DIR: skills/freee-setup/setup.sh
When invoked from ~/.claude/skills/freee-setup/, use:
SCRIPT="$HOME/.claude/skills/freee-setup/setup.sh"
When invoked from the freee-mcp repo, use:
SCRIPT="$(git rev-parse --show-toplevel)/skills/freee-setup/setup.sh"
Detect which path exists and set SCRIPT accordingly.
bash "$SCRIPT" detect-config
Save the output as CONFIG_PATH.
If UNSUPPORTED is returned, inform the user that their OS is not supported and show the manual setup instructions from the README.
bash "$SCRIPT" check-jq
If exit code is non-zero (jq not found):
Use AskUserQuestion:
jq for safe JSON manipulation. How would you like to proceed?"brew install jq, then continueManual config template (display if jq unavailable and user chooses manual):
{
"mcpServers": {
"freee": {
"command": "npx",
"args": ["-y", "github:knishioka/freee-mcp"],
"env": {
"FREEE_CLIENT_ID": "<your_client_id>",
"FREEE_CLIENT_SECRET": "<your_client_secret>",
"FREEE_TOKEN_ENCRYPTION_KEY": "<run: openssl rand -hex 32>"
}
}
}
}
Tell the user the config file location is: CONFIG_PATH
bash "$SCRIPT" check-existing --config "$CONFIG_PATH"
If output starts with EXISTS:
Use AskUserQuestion:
If user cancels, EXIT.
Display the following instructions to the user:
freee OAuth アプリケーションの登録
freee-mcp を使うには、freee の OAuth アプリケーションを作成する必要があります。
freee-mcp)urn:ietf:wg:oauth:2.0:oobThen use AskUserQuestion:
Save the response as CLIENT_ID. Validate it is non-empty.
Then use AskUserQuestion:
Save the response as CLIENT_SECRET. Validate it is non-empty.
bash "$SCRIPT" generate-key
Save the output as ENCRYPTION_KEY.
Parse the --mode argument if provided. If not provided:
Use AskUserQuestion:
MODE=npxMODE=localIf MODE=local:
Use AskUserQuestion:
dist/index.js への絶対パスを入力してください (例: /Users/you/freee-mcp/dist/index.js):"Save the response as LOCAL_PATH. Validate the path ends with dist/index.js.
Build the command based on mode:
npx mode:
bash "$SCRIPT" update-config \
--config "$CONFIG_PATH" \
--client-id "$CLIENT_ID" \
--client-secret "$CLIENT_SECRET" \
--encryption-key "$ENCRYPTION_KEY" \
--mode npx
local mode:
bash "$SCRIPT" update-config \
--config "$CONFIG_PATH" \
--client-id "$CLIENT_ID" \
--client-secret "$CLIENT_SECRET" \
--encryption-key "$ENCRYPTION_KEY" \
--mode local \
--local-path "$LOCAL_PATH"
If the command fails, display the error and EXIT.
bash "$SCRIPT" validate --config "$CONFIG_PATH"
If INVALID, display error and instruct user to check the config file manually.
Read the config file and display the freee section:
jq '.mcpServers.freee | .env.FREEE_CLIENT_SECRET = "***" | .env.FREEE_TOKEN_ENCRYPTION_KEY = "***"' "$CONFIG_PATH"
Then display the completion message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ freee-mcp セットアップ完了
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
設定ファイル: $CONFIG_PATH
次のステップ:
1. Claude Desktop を再起動してください
2. 再起動後、freee の認証を行います:
- Claude Desktop で「freee_get_auth_url」ツールを使用
- 表示される URL をブラウザで開いて認証
- 認証コードを「freee_get_access_token」ツールに入力
💡 ヒント:
- FREEE_DEFAULT_COMPANY_ID を設定すると、毎回 companyId を指定する必要がなくなります
- 認証情報は暗号化されて安全に保存されます
IMPORTANT: Do NOT display the ENCRYPTION_KEY or CLIENT_SECRET values in the completion message. Only show the config structure.
| OS | Config Path | Notes |
|---|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json | Primary support |
| Linux | ~/.config/Claude/claude_desktop_config.json | Supported |
| Windows | %APPDATA%\Claude\claude_desktop_config.json | Requires WSL or Git Bash for this skill |