fix(cmdb-assistant): correct NetBox API URL format in setup wizard #132

Merged
lmiranda merged 1 commits from fix/issue-126-netbox-url-format into development 2026-01-23 22:54:14 +00:00
Owner

Summary

  • Fix /initial-setup command generating incorrect NETBOX_API_URL (missing /api suffix)
  • Update example URL to include /api
  • Add instruction to auto-append /api if user forgets
  • Fix validation test to be consistent with actual MCP server usage

Root Cause

The setup wizard asked for base URL (https://netbox.company.com) but NetBoxClient expects API URL (https://netbox.company.com/api). The validation test incorrectly added /api/ making it pass, while the actual MCP server failed with JSON parsing errors.

Test Plan

  • Run /cmdb-assistant:initial-setup on a fresh system
  • Verify generated netbox.env has URL with /api suffix
  • Verify MCP tools work after setup

Fixes #126

🤖 Generated with Claude Code

## Summary - Fix `/initial-setup` command generating incorrect `NETBOX_API_URL` (missing `/api` suffix) - Update example URL to include `/api` - Add instruction to auto-append `/api` if user forgets - Fix validation test to be consistent with actual MCP server usage ## Root Cause The setup wizard asked for base URL (`https://netbox.company.com`) but `NetBoxClient` expects API URL (`https://netbox.company.com/api`). The validation test incorrectly added `/api/` making it pass, while the actual MCP server failed with JSON parsing errors. ## Test Plan - [ ] Run `/cmdb-assistant:initial-setup` on a fresh system - [ ] Verify generated `netbox.env` has URL with `/api` suffix - [ ] Verify MCP tools work after setup Fixes #126 🤖 Generated with [Claude Code](https://claude.ai/claude-code)
lmiranda added 1 commit 2026-01-23 22:52:52 +00:00
The /initial-setup command was generating NETBOX_API_URL without the
/api suffix, causing all MCP tools to fail with JSON parsing errors.

Changes:
- Update example URL to include /api suffix
- Add instruction to auto-append /api if user forgets
- Fix validation test to be consistent with actual usage

Root cause: Setup asked for base URL (https://netbox.company.com) but
NetBoxClient expects API URL (https://netbox.company.com/api). The
validation test incorrectly added /api/ making it pass, while the
actual MCP server failed.

Fixes #126

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 1cf1dbefb8 into development 2026-01-23 22:54:14 +00:00
lmiranda deleted branch fix/issue-126-netbox-url-format 2026-01-23 22:54:14 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#132