Skip to content

fix: Add missing mcp dependency to resolve FastMCP import error #23

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jishnupramod
Copy link

Problem

The NetBox MCP server currently fails to start due to a missing dependency, resulting in the following import error:

import "mcp.server.fastmcp" could not be resolved

This prevents the server from being used as intended and blocks any MCP functionality.

Solution

Added the missing mcp>=1.0.0 dependency to requirements.txt to resolve the import error for the FastMCP class from mcp.server.fastmcp.

Changes

  • requirements.txt: Added mcp>=1.0.0 dependency

Testing

After installing the updated requirements, the import error is resolved and the server can be imported successfully.

Impact

  • ✅ Fixes server startup issues
  • ✅ Enables proper MCP functionality
  • ✅ No breaking changes
  • ✅ Minimal dependency addition

This is a small fix that enables the basic functionality of the NetBox MCP server.

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.

1 participant