Skip to content

Commit 64f4df3

Browse files
committed
bigfix/no path replacement for OBP-style paths
1 parent 3d4bdb2 commit 64f4df3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/mcp_server_obp/server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ async def call_obp_api(
235235
path = endpoint.path
236236
if path_params:
237237
for key, value in path_params.items():
238+
# OBP index stores path params as bare names (e.g. USER_ID),
239+
# but OpenAPI standard uses {USER_ID}. Handle both.
238240
path = path.replace(f"{{{key}}}", str(value))
241+
path = path.replace(key, str(value))
239242

240243
# Replace VERSION placeholder
241244
path = path.replace("VERSION", api_version)

0 commit comments

Comments
 (0)