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

# 完成对话内 MCP OAuth 授权

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

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

## Path parameters

- `pending_id` string, required

## Request body

- object

## Response `200`

OK

- object

## 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

[Change 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/c6545df0245a?raw)
