# Bastion

> Agents can also search and read this documentation through its [MCP server](https://bastion.gitbook.io/docs/~gitbook/mcp).

## Bastion

- [Introduction](https://bastion.gitbook.io/docs/master.md): Welcome to The Bastion Bot Documentation Site.
- [Add Bot to Server](https://bastion.gitbook.io/docs/prerequisites/create.md)
- [Setup Database](https://bastion.gitbook.io/docs/prerequisites/mongodb.md)
- [Get API Keys](https://bastion.gitbook.io/docs/prerequisites/get-api-keys.md): This step is optional and only required by specific features. You only need to configure the API keys for the features you'll be using.
- [Install on Linux](https://bastion.gitbook.io/docs/install/install-on-linux.md)
- [Install on macOS](https://bastion.gitbook.io/docs/install/install-on-macos.md)
- [Install on Windows](https://bastion.gitbook.io/docs/install/install-on-windows.md)
- [Install on DigitalOcean](https://bastion.gitbook.io/docs/install/install-on-digitalocean.md): Follow this guide to install Bastion on DigitalOcean and keep it running for 24 x 7.
- [Install on Docker](https://bastion.gitbook.io/docs/install/install-on-docker.md)
- [Configure Bastion](https://bastion.gitbook.io/docs/configure/configure-bastion.md)
- [Publish Commands](https://bastion.gitbook.io/docs/configure/publish-commands.md)
- [Run on Linux](https://bastion.gitbook.io/docs/run/run-on-linux.md)
- [Run on macOS](https://bastion.gitbook.io/docs/run/run-on-macos.md)
- [Run on Windows](https://bastion.gitbook.io/docs/run/run-on-windows.md)
- [Run on Docker](https://bastion.gitbook.io/docs/run/run-on-docker.md)
- [Update on Linux](https://bastion.gitbook.io/docs/update/update-on-linux.md)
- [Update on macOS](https://bastion.gitbook.io/docs/update/update-on-macos.md)
- [Update on Windows](https://bastion.gitbook.io/docs/update/update-on-windows.md)
- [Update on Docker](https://bastion.gitbook.io/docs/update/update-on-docker.md)
- [Code of Conduct](https://bastion.gitbook.io/docs/developers/code-of-conduct.md)
- [Contributing Guidelines](https://bastion.gitbook.io/docs/developers/contributing-guidelines.md)
- [Issues](https://bastion.gitbook.io/docs/developers/contributing-guidelines/issues.md): Contributing Guidelines for Issues
- [Pull Requests](https://bastion.gitbook.io/docs/developers/contributing-guidelines/pulls.md): Contributing Guidelines for Pull Requests
- [Upgrade from v8 to v10](https://bastion.gitbook.io/docs/migrate/upgrade-from-v8-to-v10.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://bastion.gitbook.io/docs/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
