Hosting operations2 minutes to read

Can Claude Code, Cursor or Codex deploy and fix my bot for me?

Connect an AI coding agent to Bothosting over MCP so it can read logs, edit files, restart and deploy a bot, with scoped tokens you can revoke.

Yes, through MCP with the access you choose

Yes. Bothosting runs an MCP server that Claude Code, Cursor, Codex and VS Code can connect to. Once connected, the agent can list your deployments, read status and logs, edit files, restart a bot and create deployments. Every connection uses a token or OAuth grant limited to the deployments and scopes you pick in Account → AI agents. You can revoke it at any time. Free hosting claims and payments always need you to approve them.

Choose what the agent may do

Token scopes and example tools
ScopeWhat it allowsExample tools
readLook without changing anythinglist_deployments, get_status, get_logs, diagnose_deployment
manageChange files and power stateread_file, write_file, upload_files, restart
deployCreate and size deploymentscreate_deployment, resize_deployment

Start with read for troubleshooting. Add manage when you want the agent to apply a fix. Destructive changes ask for the deployment’s name as confirmation, so the agent has to show you which bot it is about to change.

Connect your editor

Create a token in Account → AI agents and store it in the environment variable BH_API_TOKEN of the app that runs your agent. Keep it out of project files and chat messages. Then add the Bothosting server to your client’s MCP configuration. The developer page has ready-made entries for Claude Code’s .mcp.json, Cursor’s .cursor/mcp.json, VS Code and Codex. Clients that support OAuth can sign in instead of using a pasted token.

Ask for a fix you can verify

Give the agent one concrete symptom and ask for evidence alongside its fix.

Example request
My bot "support-bot" stopped answering /help after my last push.
Read its recent logs, find the first error, and propose a fix.
Show me the diff before you write any file, then restart it
and check the logs again.

After the restart, run the command yourself in Discord or Telegram. A clean log is a good sign, but a real reply proves the fix. For a read-only setup, see letting an assistant check a bot without changing it.

Prefer the terminal?

The bothosting CLI does the same job from a shell. Run bothosting link in your project, then bothosting push or bothosting watch to upload changes as you save. Your agent can run those commands too. See syncing files from your editor.