Skip to content

Feature/configurable port#7

Open
MasayukiOsaka wants to merge 2 commits intocapoomgit:mainfrom
MasayukiOsaka:feature/configurable-port
Open

Feature/configurable port#7
MasayukiOsaka wants to merge 2 commits intocapoomgit:mainfrom
MasayukiOsaka:feature/configurable-port

Conversation

@MasayukiOsaka
Copy link
Copy Markdown

Description

This PR adds the ability to configure the port number for the MCP server, allowing users to run multiple instances or avoid port conflicts.

Changes

  • Added port parameter to start_server() and initialize_plugin() functions in __init__.py
  • Added --port command line argument to houdini_mcp_server.py
  • Updated inline documentation for the new functionality
  • Updated README.md with port configuration examples

Usage Examples

Houdini side

import houdinimcp

# Start with default port (9876)
houdinimcp.start_server()

# Start with custom port
houdinimcp.start_server(8080)

# Auto-start on Houdini launch (in pythonrc.py)
houdinimcp.initialize_plugin(port=8888)

Claude Desktop configuration

{
  "mcpServers": {
    "houdini": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/houdinimcp",
        "houdini_mcp_server.py",
        "--port",
        "8080"
      ]
    }
  }
}

Testing

  • ✅ Tested with default port (9876)
  • ✅ Tested with custom ports (8080, 8888)
  • ✅ Tested auto-start via pythonrc.py
  • ✅ Tested manual start via UI/shelf tools
  • ✅ Backward compatibility confirmed

Notes

  • This change maintains full backward compatibility
  • Updated README.md with port configuration examples
  • Future enhancement: Environment variable support (planned for separate PR)

- Add port parameter to start_server() and initialize_plugin()
- Add --port command line argument to houdini_mcp_server.py
- Maintain backward compatibility with default port 9876
- Update comments to document the new functionality
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