netx/pyproject.toml
oliver 52679a7cfc MCP: serve tools from the API process over Streamable HTTP at /mcp
- netx_api/mcp_remote: ops / topology / bizMonitor tools, Bearer auth,
  per-tool RBAC filtering, ?groups= filter, readOnlyHint and group meta.
- Mount the official MCP Streamable HTTP app at /mcp (stateless);
  AuthAuditMiddleware is pure ASGI and skips /mcp.
- Let uvicorn chunk MCP responses; some Windows LSPs rewrite
  Content-Length replies on */mcp* paths into broken chunked framing.
- NETX_MCP_ALLOWED_HOSTS opts into DNS-rebinding checks (off by default
  so LAN and reverse-proxy hosts work; Bearer is the gate).
- Remove the three stdio Python MCP packages; tests moved to /mcp,
  including real-TCP framing regressions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:52:08 +08:00

41 lines
942 B
TOML

[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "netx-ops"
version = "0.4.19"
description = "netx operations tool: alarm-centric workflows with REST API and remote MCP"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
"fastapi>=0.115.0",
"uvicorn>=0.30.0",
"websockets>=12.0",
"httpx>=0.27.0",
"sqlalchemy>=2.0.0",
"psycopg[binary]>=3.2.0",
"openpyxl>=3.1.0",
"PyYAML>=6.0.0",
"pydantic>=2.8.0",
"pydantic-settings>=2.3.0",
"python-multipart>=0.0.9",
"websocket-client>=1.8.0",
"cryptography>=42.0.0",
"netmiko>=4.3.0",
"bcrypt>=4.1.0",
"PyJWT>=2.8.0",
"alembic>=1.13.0",
"psutil>=5.9.0",
"redis>=5.0.0",
"mcp>=1.0.0",
]
[project.optional-dependencies]
# Remote MCP is built into netx_api (/mcp). Optional extras removed.
[tool.setuptools.packages.find]
where = ["."]
include = ["netx_api*"]