---
title: "CreateMCPAccessToken"
method: POST
path: "/gitpod.v1.AgentService/CreateMCPAccessToken"
tags: ["gitpod.v1.AgentService"]
---

# CreateMCPAccessToken

`POST /gitpod.v1.AgentService/CreateMCPAccessToken`

Creates a token for MCP access.

 Use this method to generate an access token for MCP integrations.

## Request body

- GitpodV1CreateMCPAccessTokenRequest
  - `empty` boolean

## Response `200`

Success

- GitpodV1CreateMCPAccessTokenResponse
  - `accessToken` string

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/versions/44d50c2ac284/schema)
