Skip to content

Commit 137da48

Browse files
committed
refactor: update get_pipeline to use generic request method
1 parent 6d104db commit 137da48

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/deepset_mcp/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ async def list_pipelines() -> dict[str, Any]:
7171

7272

7373
@mcp.tool()
74-
@async_to_sync
7574
async def get_pipeline(pipeline_id: str) -> dict[str, Any]:
7675
"""Fetches detailed configuration information for a specific pipeline, identified by its unique `pipeline_id`.
7776
@@ -82,7 +81,7 @@ async def get_pipeline(pipeline_id: str) -> dict[str, Any]:
8281
"""
8382
try:
8483
async with DeepsetClient() as client:
85-
return await client.get_pipeline(pipeline_id)
84+
return await client.request(f"/workspaces/{client.workspace}/pipelines/{pipeline_id}")
8685
except Exception as e:
8786
return {"error": str(e)}
8887

0 commit comments

Comments
 (0)