---
title: "完成对话内 MCP OAuth 授权"
method: POST
path: "/agent/mcp-oauth-resolutions/{pending_id}"
tags: ["MCP服务"]
---

# 完成对话内 MCP OAuth 授权

`POST /agent/mcp-oauth-resolutions/{pending_id}`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/agent/mcp-oauth-resolutions/{pending_id}`
- Auth: API key in header `Authorization`

用户在对话中完成 OAuth 授权后调用，校验令牌存在后恢复被暂停的 Agent 工具调用

## Path parameters

- `pending_id` string, required

## Request body

- object

## Response `200`

OK

- InternalHandlerSuccessResponse
  - `success` boolean

## Other responses

- `400`: Bad Request
- `409`: 用户尚未完成授权

## Changes

- **2026-06-30** `6e57a624b011`: 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/agent/mcp-oauth-resolutions/:pending_id/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/685d1f9fce30?raw)
