get_environment
The CodePanel MCP tool that reads a repository's setup command, verify commands, startup services, default host, and available Zero-Trust secret names.
On this page›
get_environment reads a repository's configured execution environment — setup command, verification commands, startup services, default host (local or cloud) — along with the names of available Zero-Trust secrets. Secret values are encrypted at rest and never returned.
When to call it
- Before starting or debugging a task on a repository, to see what setup and verification commands run in local and cloud sandboxes and which secret names are injected.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name |
It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.
What it returns
{ environment, secretNames }. environment contains repo, setupCommand, verifyCommands, startupServices, defaultHost, and updatedAt. secretNames lists the names of account-wide and repo-scoped secrets available to the sandbox (never their values).
The same step without MCP
| Surface | Form |
|---|---|
| HTTP API | GET /autopilot/environments?repo=owner/name |
| CLI | codepanel env get owner/name |
| Dashboard | Repository → Settings → Environment & Zero-Trust Secrets |
What the server tells your agent
The description your agent reads when it lists the tools:
Use it to inspect a repository's configured setup command, verification commands, startup services, default execution host (local or cloud), and the names of available Zero-Trust secrets (values are never returned).
Related
set_environment: update setup, verify commands, services, or default host.list_secrets: inspect secret scopes and timestamps.- MCP server: install, sign-in and every other tool.