[Diagnostic] Multiple MCP Tool Failures - NetBox, create_label_smart, create_label #123
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Diagnostic Report
Generated: 2026-01-23T21:45:00Z
Command Tested: NetBox inventory sync, /labels-sync
Reporter: Claude Code via /debug-report
Project Context
bandit-den/serv-hotservgit@gitea.hotserv.cloud:bandit-den/serv-hotserv.git/home/lmiranda/appsmainIssues Found
Issue 1: NetBox MCP Tools - Invalid JSON Response
Affected Tools: All
mcp__plugin_cmdb-assistant_netbox__*toolsError:
Analysis: HTTP status 200 but response is not valid JSON. Likely receiving HTML login page instead of API response.
Workaround: Direct curl commands from inside NetBox container with API token.
Issue 2: create_label_smart - Fails for Repository-Level Labels
Affected Tool:
mcp__plugin_projman_gitea__create_label_smartError:
Analysis: Organization-level labels work, but repository-level labels (Component/, Tech/) fail.
Issue 3: create_label (Direct) - Returns Empty Array
Affected Tool:
mcp__plugin_projman_gitea__create_labelResponse:
[]- Labels NOT actually created.Issue 4: Gitea API 301 Redirects Lose POST Body
Standard curl
-Lflag converts POST to GET on redirect. Required--post301flag.Issue 5: Repository Name Mismatch in Label URLs
Labels created show URLs pointing to
serv-hotserv-appsinstead ofserv-hotserv.Summary
Suggested Investigation
--post301in HTTP clientGenerated by /debug-report
Fix Proposed in PR #124
Changes:
create_label_smartinlabels.py- prevents crash when Gitea API returns unexpected type (list instead of dict)debug-report.mdto always use curl for marketplace issue creation with labels - avoids branch protection restrictionsIssues Addressed:
Issues NOT Addressed (separate scope):
PR: #124
Please test after merge and report back.