deepset-mcp 0.0.12__py3-none-any.whl → 0.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,7 @@ from deepset_mcp.tools.pipeline import (
38
38
  list_pipelines as list_pipelines_tool,
39
39
  search_pipeline as search_pipeline_tool,
40
40
  search_pipeline_with_filters as search_pipeline_with_filters_tool,
41
+ search_pipeline_with_params as search_pipeline_with_params_tool,
41
42
  update_pipeline as update_pipeline_tool,
42
43
  validate_pipeline as validate_pipeline_tool,
43
44
  )
@@ -133,6 +134,10 @@ TOOL_REGISTRY: dict[str, tuple[Callable[..., Any], ToolConfig]] = {
133
134
  search_pipeline_with_filters_tool,
134
135
  ToolConfig(needs_client=True, needs_workspace=True, memory_type=MemoryType.EXPLORABLE),
135
136
  ),
137
+ "search_pipeline_with_params": (
138
+ search_pipeline_with_params_tool,
139
+ ToolConfig(needs_client=True, needs_workspace=True, memory_type=MemoryType.EXPLORABLE),
140
+ ),
136
141
  "list_indexes": (
137
142
  list_indexes_tool,
138
143
  ToolConfig(needs_client=True, needs_workspace=True, memory_type=MemoryType.EXPLORABLE),
@@ -21,6 +21,7 @@ from .pipeline import (
21
21
  list_pipelines,
22
22
  search_pipeline,
23
23
  search_pipeline_with_filters,
24
+ search_pipeline_with_params,
24
25
  update_pipeline,
25
26
  validate_pipeline,
26
27
  )
@@ -51,6 +52,7 @@ __all__ = [
51
52
  "deploy_pipeline",
52
53
  "search_pipeline",
53
54
  "search_pipeline_with_filters",
55
+ "search_pipeline_with_params",
54
56
  "create_pipeline",
55
57
  "update_pipeline",
56
58
  "validate_pipeline",
@@ -417,3 +417,54 @@ async def search_pipeline_with_filters(
417
417
  return f"Failed to search using pipeline '{pipeline_name}': {e}"
418
418
  except Exception as e:
419
419
  return f"An unexpected error occurred while searching with pipeline '{pipeline_name}': {str(e)}"
420
+
421
+
422
+ async def search_pipeline_with_params(
423
+ *,
424
+ client: AsyncClientProtocol,
425
+ workspace: str,
426
+ pipeline_name: str,
427
+ query: str,
428
+ params: dict[str, Any] | None = None,
429
+ ) -> DeepsetSearchResponse | str:
430
+ """Searches using a pipeline with params.
431
+
432
+ Uses the specified pipeline to perform a search with the given query and params.
433
+ Params can be arbitrary parameters to customize the search behavior.
434
+ Filters can be used as well under the "filters" key in params.
435
+ Filters follow the Haystack filter syntax: https://docs.haystack.deepset.ai/docs/metadata-filtering.
436
+ Before executing the search, checks if the pipeline is deployed (status = DEPLOYED).
437
+ Returns search results.
438
+
439
+ :param client: The async client for API communication.
440
+ :param workspace: The workspace name.
441
+ :param pipeline_name: Name of the pipeline to use for search.
442
+ :param query: The search query to execute.
443
+ :param params: The parameters to customize the search.
444
+
445
+ :returns: Search results or error message.
446
+ """
447
+ try:
448
+ # First, check if the pipeline exists and get its status
449
+ pipeline = await client.pipelines(workspace=workspace).get(pipeline_name=pipeline_name)
450
+
451
+ # Check if pipeline is deployed
452
+ if pipeline.status != "DEPLOYED":
453
+ return (
454
+ f"Pipeline '{pipeline_name}' is not deployed (current status: {pipeline.status}). "
455
+ f"Please deploy the pipeline first using the deploy_pipeline tool before attempting to search."
456
+ )
457
+
458
+ # Execute the search
459
+ return await client.pipelines(workspace=workspace).search(
460
+ pipeline_name=pipeline_name, query=query, params=params if params is not None else None
461
+ )
462
+
463
+ except ResourceNotFoundError:
464
+ return f"There is no pipeline named '{pipeline_name}' in workspace '{workspace}'."
465
+ except BadRequestError as e:
466
+ return f"Failed to search using pipeline '{pipeline_name}': {e}"
467
+ except UnexpectedAPIError as e:
468
+ return f"Failed to search using pipeline '{pipeline_name}': {e}"
469
+ except Exception as e:
470
+ return f"An unexpected error occurred while searching with pipeline '{pipeline_name}': {str(e)}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepset-mcp
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: Collection of MCP tools and Agents to work with the deepset AI platform. Create, debug or learn about pipelines on the platform. Useable from the CLI, Cursor, Claude Code, or other MCP clients.
5
5
  Project-URL: Homepage, https://deepset.ai
6
6
  Author-email: Mathis Lucka <mathis.lucka@deepset.ai>, Tanay Soni <tanay.soni@deepset.ai>
@@ -39,7 +39,7 @@ Description-Content-Type: text/markdown
39
39
 
40
40
  **The official MCP server and Python SDK for the deepset AI platform**
41
41
 
42
- deepset-mcp enables AI agents to build and debug pipelines on the [deepset AI platform](https://www.deepset.ai/products-and-services/deepset-ai-platform) through 30+ specialized tools. It also provides a Python SDK for programmatic access to many platform resources.
42
+ deepset-mcp enables AI agents to build and debug pipelines on the [Haystack Enterprise AI platform](https://www.deepset.ai/products-and-services/deepset-ai-platform) through 30+ specialized tools. It also provides a Python SDK for programmatic access to many platform resources.
43
43
 
44
44
  ## Documentation
45
45
 
@@ -47,7 +47,7 @@ deepset-mcp enables AI agents to build and debug pipelines on the [deepset AI pl
47
47
 
48
48
  ## Quick Links
49
49
 
50
- - 🔗 **[deepset AI Platform](https://www.deepset.ai/products-and-services/deepset-ai-platform)**
50
+ - 🔗 **[Haystack Enterprise AI platform](https://www.deepset.ai/products-and-services/deepset-ai-platform)**
51
51
  - 📚 **[Installation Guide](https://deepset-ai.github.io/deepset-mcp-server/installation/)**
52
52
  - 🛠️ **[MCP Server Guide](https://deepset-ai.github.io/deepset-mcp-server/guides/mcp_server/)**
53
53
  - 🐍 **[Python SDK Guide](https://deepset-ai.github.io/deepset-mcp-server/guides/api_sdk/)**
@@ -98,3 +98,5 @@ Documentation is built using [MkDocs](https://www.mkdocs.org/) with the Material
98
98
  - Auto-generated API docs via [mkdocstrings](https://mkdocstrings.github.io/)
99
99
  - Deployed via GitHub Pages (automated via GitHub Actions on push to main branch)
100
100
 
101
+
102
+
@@ -48,14 +48,14 @@ deepset_mcp/mcp/server.py,sha256=zvX_NDmL5Hj2Nby48lAvecvsagrW-Gf-LAA_cSmeLr4,630
48
48
  deepset_mcp/mcp/store.py,sha256=xfnQbzvAlM8kCH6tq7XbC0PUkf4ciyEmre7GF5mOqaY,1872
49
49
  deepset_mcp/mcp/tool_factory.py,sha256=Xn4kVyugYg09iGPfvOiLYLZG92-y64lZ60SyDu2O24I,15269
50
50
  deepset_mcp/mcp/tool_models.py,sha256=HVxV-VqsvO5Cit1qAXaZhIYaY956HMILbjYnhTlCFHQ,2018
51
- deepset_mcp/mcp/tool_registry.py,sha256=NBUACp0csZqFBQ9r8GOiwh8FpLGnsw4cehimxyhC7Q8,9404
51
+ deepset_mcp/mcp/tool_registry.py,sha256=CThow6sKtPfkqBBl_l0Hqrd6Y-yYj9ooX5DOEJkBpCs,9655
52
52
  deepset_mcp/prompts/deepset_copilot_prompt.md,sha256=QctQQ4yQ9zl-uWv48dfr1DGhEKPvjsY82iFmRRCzbwM,9968
53
53
  deepset_mcp/prompts/deepset_debugging_agent.md,sha256=m5Y-n9cXQGm9BZ3wZ3N_hQmMjrXVfc1cqV8i8Kle5uU,9488
54
54
  deepset_mcp/tokonomics/__init__.py,sha256=nO9-6Ar9pQCyQVMiuAOHVEWqN-_C7_anW2HL7_N4Iu4,549
55
55
  deepset_mcp/tokonomics/decorators.py,sha256=l7ivHR2FVHit2ih1jOFiqqS28n0uPEI2YKKmgZe_C-w,13566
56
56
  deepset_mcp/tokonomics/explorer.py,sha256=ykNfsw-rs3vZavkb_3IAmXy7CrD9S7XHuFyaXJobaWE,13612
57
57
  deepset_mcp/tokonomics/object_store.py,sha256=UW9g_NJ9Mw4-2HnhQye2hKyz3Pt_rYOgXL6gABtZwFE,4802
58
- deepset_mcp/tools/__init__.py,sha256=PLlMZ7LsahCQhngEfx1MFS2XeyAeok3OlveSPP-9kOk,1876
58
+ deepset_mcp/tools/__init__.py,sha256=ZssL9VlXaWv2S8XBq3nl4BaCIbUEdWSdSRJ6Sa9NnLY,1944
59
59
  deepset_mcp/tools/custom_components.py,sha256=VG6m5zDtNuk4YkxdvEMlOOouvAypCsqPuFD9ZIickNI,2227
60
60
  deepset_mcp/tools/doc_search.py,sha256=S_PcvikBk38IBUqOO1rxSHrAaFDdGfnFHjHXGlkaoxc,2847
61
61
  deepset_mcp/tools/haystack_service.py,sha256=MaMA_LlBqPEsrHiz1M6Xb1eeofi9zDq60OqRM23xgho,16934
@@ -63,12 +63,12 @@ deepset_mcp/tools/haystack_service_models.py,sha256=6N76lTOiZ0nXBZ8u_AGHtIyEVWLA
63
63
  deepset_mcp/tools/indexes.py,sha256=8BCQG5q_7B-giwh_T5TOPhHnotFUTkVGyVmopu_9bls,9719
64
64
  deepset_mcp/tools/model_protocol.py,sha256=k6xcnVYLqgXM8DX8SrA5ls3sbKBZC06XfO596KCSKQ4,529
65
65
  deepset_mcp/tools/object_store.py,sha256=kAS3CRouhIgA8VFH6R-8XSXkyjDcV2DQ0r89Pz7h28E,1958
66
- deepset_mcp/tools/pipeline.py,sha256=1EJdtryMZnYm04Sq8oBCFHk3XFVPNigcUhOeGx7VW2I,17976
66
+ deepset_mcp/tools/pipeline.py,sha256=M2v57GA1VuVMDv2icRlcguxcEM9v-nJuub8rfnbGTBg,20197
67
67
  deepset_mcp/tools/pipeline_template.py,sha256=KgIL5UnXW0I1v6EDOVZE9LgF1bNzixwvRwwBv4B-1WU,5852
68
68
  deepset_mcp/tools/secrets.py,sha256=1kZ0vfbmIPooQxaO5Bv6UtCYH8KDcziNGTUq-HAy4I8,4712
69
69
  deepset_mcp/tools/workspace.py,sha256=01R3sPI7sjNoD173XhTfYHIG0Iv7La6GlBrZXHeUb9s,2827
70
- deepset_mcp-0.0.12.dist-info/METADATA,sha256=-kYw9jRgXjNDS0MG37Wvcf6PDzQwLlhwYaZH9gz3GZo,3399
71
- deepset_mcp-0.0.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
72
- deepset_mcp-0.0.12.dist-info/entry_points.txt,sha256=0X0vMrNLUbQYq02bA4DUgsFuEAbS2bAaGO4jrAMtRk0,53
73
- deepset_mcp-0.0.12.dist-info/licenses/LICENSE,sha256=k0H2cOtcgKczLsEN2Ju03DoAb8jhBSlp8WzWYlYlDvc,11342
74
- deepset_mcp-0.0.12.dist-info/RECORD,,
70
+ deepset_mcp-0.0.13.dist-info/METADATA,sha256=qG7VfOrimFF_-l4guyGzb0REx3Lb6tlWIcJ22RuBUCU,3425
71
+ deepset_mcp-0.0.13.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
72
+ deepset_mcp-0.0.13.dist-info/entry_points.txt,sha256=0X0vMrNLUbQYq02bA4DUgsFuEAbS2bAaGO4jrAMtRk0,53
73
+ deepset_mcp-0.0.13.dist-info/licenses/LICENSE,sha256=k0H2cOtcgKczLsEN2Ju03DoAb8jhBSlp8WzWYlYlDvc,11342
74
+ deepset_mcp-0.0.13.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any