[project] name = "opentelemetry-instrumentation-mcp" version = "0.63.1" description = "OpenTelemetry mcp instrumentation" authors = [ { name = "Felix George", email = "felix.george@ibm.com" }, ] license = "Apache-2.0" readme = "README.md" requires-python = ">=3.11,<4" dependencies = [ "opentelemetry-api>=1.38.0,<2", "opentelemetry-instrumentation>=0.59b0", "opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0", "opentelemetry-semantic-conventions>=0.63b1", ] [project.urls] Repository = "https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-mcp" [project.optional-dependencies] instruments = ["mcp"] [project.entry-points."opentelemetry_instrumentor"] mcp = "opentelemetry.instrumentation.mcp:McpInstrumentor" [dependency-groups] dev = [ "autopep8>=2.2.0,<3", "opentelemetry-exporter-otlp>=1.34.1,<2", "pytest-sugar==1.0.0", "pytest>=9.0.3,<10", "ruff>=0.4.0", ] test = [ "fastmcp>=3.4.0,<4", "mcp>=1.26.0,<2", "opentelemetry-exporter-otlp>=1.34.1,<2", "opentelemetry-sdk>=1.38.0,<2", "pytest-asyncio>=1.3.0,<2", "pytest-recording>=0.13.1,<0.14.0", "pytest-sugar==1.0.0", "pytest>=9.0.3,<10", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["opentelemetry"] [tool.coverage.run] branch = true source = ["opentelemetry/instrumentation/mcp"] [tool.coverage.report] exclude_lines = ["if TYPE_CHECKING:"] show_missing = true [tool.pytest.ini_options] asyncio_mode = "auto" [tool.ruff] line-length = 120 exclude = [ ".git", "__pycache__", "build", "dist", ".venv", ".pytest_cache", ] [tool.ruff.lint] select = ["E", "F", "W"] [tool.uv] constraint-dependencies = ["urllib3>=2.8.0", "pip>=25.3"]