feat(netbox): add platform and primary_ip params to device tools #118

Merged
lmiranda merged 1 commits from feat/netbox-device-update-params into development 2026-01-23 19:47:10 +00:00
Owner

Summary

  • Expose platform, primary_ip4, primary_ip6 parameters in dcim_create_device tool
  • Expose platform, primary_ip4, primary_ip6, serial, asset_tag, site, rack, position, description, comments parameters in dcim_update_device tool
  • These parameters were already supported by the backend but not exposed in the MCP tool definitions

Motivation

When adding a device to NetBox (e.g., hotport Raspberry Pi), we could not assign the platform (OS) or set the primary IP address through the MCP tools. This change enables full device configuration.

Test Plan

  • Verify tool definitions updated in server.py
  • Restart Claude Code session to reload MCP server
  • Test dcim_update_device with platform and primary_ip4 parameters

🤖 Generated with Claude Code

## Summary - Expose `platform`, `primary_ip4`, `primary_ip6` parameters in `dcim_create_device` tool - Expose `platform`, `primary_ip4`, `primary_ip6`, `serial`, `asset_tag`, `site`, `rack`, `position`, `description`, `comments` parameters in `dcim_update_device` tool - These parameters were already supported by the backend but not exposed in the MCP tool definitions ## Motivation When adding a device to NetBox (e.g., hotport Raspberry Pi), we could not assign the platform (OS) or set the primary IP address through the MCP tools. This change enables full device configuration. ## Test Plan - [x] Verify tool definitions updated in server.py - [ ] Restart Claude Code session to reload MCP server - [ ] Test `dcim_update_device` with platform and primary_ip4 parameters --- 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-23 19:46:42 +00:00
Expose additional parameters in dcim_create_device and dcim_update_device
MCP tools that were already supported by the backend but not exposed:

dcim_create_device:
- platform, primary_ip4, primary_ip6, asset_tag, description, comments

dcim_update_device:
- platform, primary_ip4, primary_ip6, serial, asset_tag, site, rack,
  position, description, comments

This enables setting the platform (OS) and primary IP address when
creating or updating devices in NetBox.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 52c8371f4a into development 2026-01-23 19:47:10 +00:00
lmiranda deleted branch feat/netbox-device-update-params 2026-01-23 19:47:10 +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#118