Skip to content

feat: [ECO-515] - Add traces to MCP server#215

Merged
ArzelaAscoIi merged 4 commits into
mainfrom
feature/eco-515-traces-include-traces-data-in-the-deepset-mcp-server
Jun 9, 2026
Merged

feat: [ECO-515] - Add traces to MCP server#215
ArzelaAscoIi merged 4 commits into
mainfrom
feature/eco-515-traces-include-traces-data-in-the-deepset-mcp-server

Conversation

@YassineGabsi

Copy link
Copy Markdown
Contributor

No description provided.

@ArzelaAscoIi ArzelaAscoIi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests ? 😬

Code looks good :)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

  • Adds MCP tools and API client support for retrieving Haystack pipeline run traces (list + single trace) within a workspace/pipeline context.

Changes:

  • Introduces list_pipeline_traces and get_pipeline_trace tool wrappers in src/deepset_mcp/tools/search_history.py.
  • Adds corresponding API resource methods + protocol surface in src/deepset_mcp/api/search_history/.
  • Registers the new tools in the MCP tool registry.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/deepset_mcp/tools/search_history.py Adds new user-facing MCP tools for listing traces and fetching a single trace.
src/deepset_mcp/mcp/tool_registry.py Registers the new tools so they are exposed by the MCP server.
src/deepset_mcp/api/search_history/resource.py Implements API calls for listing traces and retrieving a single trace.
src/deepset_mcp/api/search_history/protocols.py Extends the resource protocol with the new trace-related methods.
src/deepset_mcp/api/search_history/models.py Introduces trace-related Pydantic models (PipelineTraceEntry, Haystack trace schema models).
src/deepset_mcp/api/search_history/__init__.py Exports new trace models from the search history API module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/deepset_mcp/api/search_history/resource.py Outdated
Comment thread src/deepset_mcp/tools/search_history.py
Comment thread src/deepset_mcp/api/search_history/models.py
@YassineGabsi

Copy link
Copy Markdown
Contributor Author

@ArzelaAscoIi I added more tests, and I reshaped a bit the Search history one as well since it was outdated, can you please check again ? thanks 🙏🏻

@YassineGabsi YassineGabsi enabled auto-merge (squash) June 9, 2026 11:59
@ArzelaAscoIi ArzelaAscoIi disabled auto-merge June 9, 2026 12:00
@ArzelaAscoIi ArzelaAscoIi merged commit 4dfb8bb into main Jun 9, 2026
6 checks passed
@ArzelaAscoIi ArzelaAscoIi deleted the feature/eco-515-traces-include-traces-data-in-the-deepset-mcp-server branch June 9, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants