Prerequisites
- TeamCity 2026.1 or later, with JetBrains’ MCP plugin enabled.
- An HTTPS server address with a publicly trusted certificate.
- Permission to create an access token for a user.
Setup
1
Enable the MCP plugin
On your TeamCity server, enable JetBrains’ official MCP plugin. The server must answer at
/app/mcp.2
Create an access token
In TeamCity, open Profile → Access Tokens and create a token. Copy it right away. The agent gets the same permissions as this user.
3
Add the connection in CloudThinker
Open Settings → Workspace → Connections, open the Discover tab, and select TeamCity. Fill in Server URL and Access token, then click Connect.Success state: TeamCity shows Connected.
Connection details
Required permissions
Read only: a user who can view the projects and builds agents should read. A token inherits that user’s TeamCity permissions. Writes use the same user. Each change needs the matching TeamCity permission, such as running or cancelling builds, managing agents, or editing a project. The server’s MCP mode can restrict writes further.Agent capabilities
Changes run only after you approve them. The agent reads the exact target first, tells you the effect (a build uses runner time and may deploy), and reads it again afterward. A queued build means the request was accepted. It doesn’t mean the build passed.
Verify the connection
Example prompts
Troubleshooting
Connect fails or requests return 401
Connect fails or requests return 401
The token is invalid or revoked. Create a new token, edit the connection, and paste it into Access token.
Requests return 404
Requests return 404
The URL, context path, or MCP plugin is wrong. Check Server URL has no
/app/mcp at the end, and that the plugin is enabled on TeamCity 2026.1 or later.A change returns 403
A change returns 403
The token’s user lacks that permission, or the server’s MCP mode blocks writes. Grant the permission in TeamCity.
TLS or certificate error
TLS or certificate error
CloudThinker doesn’t trust your server’s certificate. Use a publicly trusted certificate.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Least-privilege user: use a user that can only see and run what agents need.
- Approval for every change: running, cancelling, and deleting stay behind your approval.
Related
Connections
See every connection you can add.
Approvals
Control which TeamCity changes wait for a person.