Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/deepset_mcp/api/pipeline/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def list(self, limit: int = 10, after: str | None = None) -> PaginatedResp
"""List pipelines in the configured workspace with optional pagination."""
...

async def create(self, name: str, yaml_config: str) -> NoContentResponse:
async def create(self, pipeline_name: str, yaml_config: str) -> NoContentResponse:
"""Create a new pipeline with a name and YAML config."""
...

Expand Down
2 changes: 1 addition & 1 deletion src/deepset_mcp/tools/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async def create_pipeline(
error_messages = [f"{error.code}: {error.message}" for error in validation_response.errors]
return "Pipeline validation failed:\n" + "\n".join(error_messages)

await client.pipelines(workspace=workspace).create(name=pipeline_name, yaml_config=yaml_configuration)
await client.pipelines(workspace=workspace).create(pipeline_name=pipeline_name, yaml_config=yaml_configuration)

# Get the full pipeline after creation
pipeline = await client.pipelines(workspace=workspace).get(pipeline_name)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/tools/test_doc_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def list(
) -> PaginatedResponse[DeepsetPipeline]:
raise NotImplementedError

async def create(self, name: str, yaml_config: str) -> NoContentResponse:
async def create(self, pipeline_name: str, yaml_config: str) -> NoContentResponse:
raise NotImplementedError

async def list_versions(
Expand Down
2 changes: 1 addition & 1 deletion test/unit/tools/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def validate(self, yaml_config: str) -> PipelineValidationResult:
return self._validate_response
raise NotImplementedError

async def create(self, name: str, yaml_config: str) -> NoContentResponse:
async def create(self, pipeline_name: str, yaml_config: str) -> NoContentResponse:
if self._create_exception:
raise self._create_exception
if self._create_response is not None:
Expand Down
Loading