-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (116 loc) · 4.34 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (116 loc) · 4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
name = "caucus-mcp"
# The version is derived from the latest git tag by hatch-vcs at build time —
# never hardcoded here. See `[tool.hatch.version]` below and the Versioning
# section in CLAUDE.md. Tag `vX.Y.Z` to release `X.Y.Z`.
dynamic = ["version"]
description = "Central hub + MCP bridge letting multiple agents (any MCP client) talk to each other under human supervision."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Grégoire Compagnon", email = "obeone@obeone.org" }]
keywords = [
"mcp",
"model-context-protocol",
"ai-agents",
"multi-agent",
"agent-orchestration",
"fastapi",
"llm",
"human-in-the-loop",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: FastAPI",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Communications :: Chat",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.30",
"httpx>=0.27",
"pydantic>=2.7",
"coloredlogs>=15.0",
# >=1.9: the floor that ships both streamable_http_app (added 1.8) and the
# transport_security / DNS-rebinding settings (added 1.9), which the
# in-process Streamable HTTP MCP endpoint (caucus.mcp_http) relies on.
#
# <2: mcp 2.0.0 removed mcp.server.fastmcp, the import both mcp_bridge and
# mcp_http are built on. Without this ceiling a fresh install resolves to
# 2.x and every entry point dies: the bridge on import, and the hub at boot
# because _mount_mcp_http imports mcp_http lazily on a loopback bind.
# Lifting it means porting both modules to the 2.x server API first.
"mcp[cli]>=1.9,<2",
]
[project.urls]
Homepage = "https://github.com/obeone/caucus-mcp"
Repository = "https://github.com/obeone/caucus-mcp"
Issues = "https://github.com/obeone/caucus-mcp/issues"
Changelog = "https://github.com/obeone/caucus-mcp/blob/main/CHANGELOG.md"
"PyPI" = "https://pypi.org/project/caucus-mcp/"
[project.scripts]
caucus-hub = "caucus.hub:main"
caucus-bridge = "caucus.mcp_bridge:main"
caucus-watch = "caucus.watch:main"
caucus-claude-agent = "caucus.claude_agent:main"
caucus-setup-automode = "caucus.automode:main"
caucus-setup-service = "caucus.setup_service:main"
[project.optional-dependencies]
# Native autonomous Claude connector. Optional and per-runtime so the core
# (hub/bridge/watch) stays light: install `caucus-mcp[claude]` only to run
# `caucus-claude-agent`. Future runtimes get their own extra (e.g. `codex`).
claude = [
# >=0.2.93: known-good floor whose PermissionMode Literal accepts "auto"
# (the connector's default mode); 0.1.x types only the legacy modes.
"claude-agent-sdk>=0.2.93",
]
dev = [
"ruff>=0.5",
"mypy>=1.10",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"claude-agent-sdk>=0.2.93",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# Derive the package version from git tags (via setuptools-scm under the hood).
# A build sitting exactly on tag `v1.4.0` is version `1.4.0`; commits past the
# tag get a dev version like `1.4.1.dev3+g<sha>`. Release = create a GitHub
# Release / git tag `vX.Y.Z`, nothing to edit in this file.
[tool.hatch.version]
source = "vcs"
# Write the resolved version into a generated module at build time so the
# installed package (and editable installs) can read it back without importing
# hatch-vcs at runtime. This file is git-ignored — it is a build artifact.
[tool.hatch.build.hooks.vcs]
version-file = "src/caucus/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/caucus"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.mypy]
python_version = "3.10"
strict = true
[[tool.mypy.overrides]]
# coloredlogs ships no type stubs / py.typed marker.
module = "coloredlogs"
ignore_missing_imports = true
[[tool.mypy.overrides]]
# claude-agent-sdk ships no type stubs / py.typed marker.
module = "claude_agent_sdk.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-ra -q"