archive_issue
Archive security issues to remove them from active view in ZeroPath MCP Server, maintaining a clean workspace while preserving issue records.
Instructions
Archive a security issue to remove it from active view.
Args:
issue_id: The ID of the issue to archive
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes |
Implementation Reference
- The main handler function for the 'archive_issue' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function calls the ZeroPath API to archive the specified issue.@mcp.tool() def archive_issue(issue_id: str) -> str: """ Archive a security issue to remove it from active view. Args: issue_id: The ID of the issue to archive """ if not issue_id: return "Error: Issue ID is required" response, error = make_api_request( "issues/archive", {"issueId": issue_id} ) if error: return error if response.status_code == 200: return f"Issue {issue_id} archived successfully" elif response.status_code == 401: return "Error: Unauthorized - check API credentials" elif response.status_code == 400: return f"Error: Bad request - {response.text}" else: return f"Error: API returned status {response.status_code}: {response.text}"