wso2~关于workbuddy中mcp在wso2中的授权端点
·
{
"resource": "https://test-apim-gateway.xxx.com/test/1.0.0/mcp",
"authorization_servers": [
"https://kc.com/auth/realms/xx/protocol/openid-connect/token"
],
"scopes_supported": [
"openid",
"wso2-role"
]
}
- 在apimgt.org.wso2.carbon.apimgt.gateway项目中做了相关适配合
在admin平台添加自定义的key manager ,状态为关闭,避免对其它api产生影响

设置kc相关的idp配置,状态为关闭,否则会影响默认的key manager

这样,在访问这个mcp端点时,authorization_servers就变成了kc的地址,而不是wso2默认的key manager的地址。
查看是否安装成功,如果没有生效,执行下面代码也可能让它生效,有时是缓存问题
C:\Users\User>curl -k -s "https://apim.xxx.com/api/am/publisher/v4/swagger.yaml" | grep -A 25 "refresh-tools"
/mcp-servers/{mcpServerId}/refresh-tools:
post:
tags:
- MCP Servers
summary: Refresh MCP tools from the backend
description: |
Re-synchronizes tool definitions from the upstream MCP endpoint for MCP servers of subtype **SERVER_PROXY**,
or reapplies MCP tool mappings from the current stored OpenAPI / backend definition for other MCP server subtypes.
The MCP server metadata is persisted the same way as a regular update, and matching per-tool policies and
scopes are preserved when tool names are unchanged (proxy subtype).
operationId: refreshMCPServerTools
parameters:
- $ref: "#/components/parameters/mcpServerId"
responses:
"200":
description: |
OK.
MCP server tools refreshed; response body is the updated MCP server.
content:
application/json:
schema:
$ref: "#/components/schemas/MCPServer"
"400":
$ref: "#/components/responses/BadRequest"
"403":
$ref: "#/components/responses/Forbidden"
--
\ \"https://127.0.0.1:9443/api/am/publisher/v4/mcp-servers/7a2298c4-c905-403f-8fac-38c73301631f/refresh-tools\""
/mcp-servers/{mcpServerId}/comments:
get:
tags:
- Comments
summary: Retrieve MCP Server Comments
description: |
Get a list of Comments that are already added to MCP Server
operationId: getAllCommentsOfMCPServer
parameters:
- $ref: "#/components/parameters/mcpServerId"
- $ref: "#/components/parameters/requestedTenant"
- $ref: "#/components/parameters/limit"
- $ref: "#/components/parameters/offset"
- $ref: "#/components/parameters/includeCommenterInfo"
responses:
"200":
description: |
OK.
Comments list is returned.
content:
application/json:
schema:
$ref: "#/components/schemas/CommentList"
"404":
$ref: "#/components/responses/NotFound"
更多推荐

所有评论(0)