Windsurf and its Cascade AI make it fast to build anything — from a simple landing page to a full web service. But once your project is ready, the next question is always the same: how do you actually put it on the internet?
This guide walks you through the full deployment workflow: setting up GitHub, connecting it to Windsurf via MCP, pushing your project to a repository, and deploying it on Hostman App Platform. By the end, you'll have a live public URL and a setup where future updates publish automatically with just a message to Cascade.
Make sure you have:
GitHub stores your source code and connects your project to Hostman. If you already have an account, skip ahead to Step 2.
Once you're in, you'll land on your GitHub Dashboard.
To let Cascade interact with GitHub on your behalf, you need a Personal Access Token. With it, Windsurf can create repositories, commit code, push changes, and manage your projects, all from the chat window.
To create a token:
windsurf-app).repo: full access to repositoriesuser: read access to your profileadmin:org: only if you're working with organization repositoriesdelete_repo: optional, if you want to delete repositories via MCPOnly grant the permissions you actually need. Giving a token full access when it doesn't need it is a security risk.
Click Generate token.
Important: GitHub shows your token only once. Copy it immediately and store it somewhere safe (a password manager works well). This token grants access to your account; if you think it's been compromised, revoke it at github.com/settings/tokens and generate a new one.
MCP (Model Context Protocol) lets Cascade interact with external services directly. Once GitHub is connected, you can create repos, commit code, and push changes, all from a chat message, without touching the terminal.
To connect GitHub:
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_TOKEN"
}
}
}
}
YOUR_TOKEN with the token you created in the previous step.After restarting, the GitHub server should appear with a status of Enabled. To confirm everything is working, ask Cascade in chat: What GitHub MCP tools are currently available?
If Cascade lists a set of tools, the integration is working correctly.
With MCP connected, you can push your app to GitHub directly from Windsurf's chat.
Start by creating a repository: "Create a public repository called hostman-windsurf-app in my GitHub account."
When Cascade will ask for confirmation before taking action, approve it. The new repository will appear in your GitHub account.
Then push your project's code to the repository: "Upload the current project to this repository using GitHub MCP."
If your project isn't in the root folder, you can specify the directory in your message. Cascade will handle the rest.
With your code on GitHub, you're ready to deploy.
Not sure about your stack? Ask Cascade: "What framework is this project using?"
Connect your GitHub repository:
If the repository doesn't appear, click Add Account, re-authorize, and try again.
Keep Build by the last executed commit enabled. This tells Hostman to automatically redeploy whenever you push new changes to GitHub.
Once deployment finishes, Hostman assigns your app a public domain. Find it in Dashboard → Domain. That's your app's URL—share it right away.
Want to use your own domain? Go to Settings to configure it.
After the initial setup, deploying changes is as simple as:
- Make changes to your project in Windsurf.
- Ask Cascade to push them to GitHub.
- Hostman picks up the new commit and redeploys automatically.
You can manage your entire publish workflow through AI—no manual git commands required.