Skip to content

feat: [HWT16]: Add get_pipeline_failure_logs tool for retrieving Harness pipeline failure logs with Git context #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ompragash
Copy link
Contributor

This PR adds a new MCP tool that retrieves failure logs from Harness pipeline executions with Git context.

Features

  • Retrieves failure logs from failing Harness pipeline executions
  • Automatically detects Git context from provided workspace path
  • Supports retrieval by execution ID or direct execution URL
  • Includes pagination support with configurable max pages parameter
  • Provides detailed error information for pipeline debugging

Required Parameters

  • workspace_path: Path to extract Git context from

Optional Parameters

  • execution_id: Specific execution ID to get logs for
  • execution_url: Direct Harness pipeline execution URL
  • max_pages: Maximum number of pages to search through (default: 20)

Testing

  • Tested with various pipeline execution scenarios
  • Verified Git context extraction functionality
  • Confirmed error handling behaviours

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.

2 participants