We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f4df3 commit 2b3aa45Copy full SHA for 2b3aa45
1 file changed
src/mcp_server_obp/server.py
@@ -263,13 +263,15 @@ async def call_obp_api(
263
case "consent":
264
consent_jwt = (headers or {}).get("Consent-JWT")
265
if not consent_jwt:
266
+ bank_id = (path_params or {}).get("BANK_ID") or (path_params or {}).get("bank_id")
267
return json.dumps({
268
"error": "consent_required",
269
"endpoint_id": endpoint_id,
270
"operation_id": endpoint.operation_id,
271
"method": endpoint.method,
272
"path": endpoint.path,
273
"required_roles": [role.model_dump() for role in endpoint.roles],
274
+ "bank_id": bank_id,
275
"message": f"User consent is required to call {endpoint.operation_id}. "
276
f"Please approve and provide a Consent-JWT.",
277
}, indent=2)
0 commit comments