Commit ae5bd09
fix: create_pipeline tool kwarg mismatch with PipelineResource (#207)
The create_pipeline tool called PipelineResource.create(name=...) but the
implementation expects pipeline_name=..., causing the tool to fail with
"got an unexpected keyword argument 'name'". The protocol declared the
parameter as `name` while the implementation used `pipeline_name`, so
tests against mocks passed but real calls failed.
Aligned the protocol, mocks, and caller on `pipeline_name` to match the
implementation and the rest of the pipeline resource API.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 242a3c3 commit ae5bd09
4 files changed
Lines changed: 4 additions & 4 deletions
File tree
- src/deepset_mcp
- api/pipeline
- tools
- test/unit/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments