docs/pages/includes/mcp-access/integration-teleport-app.mdx
You can register an MCP application in Teleport by defining it in your Teleport
Application Service configuration, or by using dynamic registration with tctl
or Terraform:
Restart the Application Service. </TabItem>
<TabItem label="tctl"> Create an `app` resource definition file named `app-{{service}}-mcp.yaml`. Replace <Var name="MCP_HOST" /> with the host running the {{serviceName}} MCP server: ```yaml # app-{{service}}-mcp.yaml kind: app version: v3 metadata: name: {{service}}-mcp labels: env: dev service: {{service}} spec: uri: "mcp+http://<Var name="MCP_HOST" />:{{port}}/mcp" ```Create the app resource with:
$ tctl create -f app-{{service}}-app.yaml
spec = { uri = "mcp+http://<Var name="MCP_HOST" />:{{port}}/mcp" } }
Apply the configuration:
```code
$ terraform apply