Setting Up the AI Connector
FlawDesk Code provides an MCP server (Model Context Protocol) through which an external AI client can directly access your server — read and write files, modify code, execute builds, start deployments, and run database queries.
Prerequisites
- Access to a FlawDesk project with the Code Connector enabled
- An AI client that supports MCP connections
1. Create a connector token
Every user creates their own token:
1. In FlawDesk: click the ⚙️ icon next to your email address at the bottom of the sidebar → Settings 2. Open the Connectors tab 3. Click + New 4. Enter a name (e.g. the name of the AI tool you want to connect) 5. Copy the displayed token immediately and save it in a password manager — it is only shown once in plain text 6. If lost: rotate the token, the old one is immediately invalidated
2. Add the connector in your AI client
Enter the MCP server URL in your AI client's connector settings. The URL including token is shown directly in the settings — format:
https://mcp.flawdesk.de?token=<your-token>
3. Understanding access rights
Which operations an AI client can perform depends on the workspace role of the user — the same permissions the user has in FlawDesk, the AI client has through its token. Permissions can be configured under Workspace Settings → Permissions → Code Connector.
Available tools
flawdesk_code_search— find files, grep in projectsflawdesk_code_file— read, write, str_replace filesflawdesk_code_git— git status/diff/pushflawdesk_code_build— build modulesflawdesk_code_deploy— live deploymentflawdesk_code_mysql— queries against project databaseflawdesk_code_exec— shell commands (security-filtered)- Plus ticket tools:
get_task,create_task,update_task,list_tasks
Common issues
"Connector test failed" — token expired or entered incorrectly. Rotate the token and replace the URL in your AI client.
"Tools available but no access" — check project permissions: Project → ⚙️ → Tab "Code" → Section "FlawDesk Code".
"No tools listed" — check URL format: must contain ?token= as a query parameter.