feat: add local stdio adapter and uv-installable package with extras
Add aegis_gitea_mcp.stdio_app: a single-user, local MCP server over stdio (official mcp SDK) that serves the same tools from the shared registry, resolves the PAT owner via GET /user and pins request context to it, and runs policy + WRITE_MODE + secret sanitization + audit while skipping the per-user repo probe (the operator is the trusted token owner). Audit log falls back to a per-user state path when the container default is unwritable. Packaging: split deps into core (httpx/pydantic/mcp/...) and a [server] extra (fastapi/uvicorn/PyJWT/python-multipart); add console scripts aegis-gitea-mcp (stdio) and aegis-gitea-mcp-server (guarded HTTP entry); bump to 0.2.0 and fix repo URLs. mcp added to requirements for CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+24
-10
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "aegis-gitea-mcp"
|
||||
version = "0.1.0"
|
||||
description = "Private, security-first MCP server for controlled AI access to self-hosted Gitea"
|
||||
version = "0.2.0"
|
||||
description = "Security-first MCP server for controlled AI access to self-hosted Gitea (local stdio + public HTTP/OAuth)"
|
||||
authors = [
|
||||
{name = "AegisGitea MCP Contributors"}
|
||||
]
|
||||
@@ -19,20 +19,27 @@ classifiers = [
|
||||
"Programming Language :: Python :: 3.12",
|
||||
]
|
||||
|
||||
# Core (default install) powers the local stdio transport. It deliberately
|
||||
# excludes the web/OAuth stack so `uvx aegis-gitea-mcp` stays light; the HTTP
|
||||
# server pulls those in via the [server] extra.
|
||||
dependencies = [
|
||||
"fastapi>=0.109.0",
|
||||
"uvicorn[standard]>=0.27.0",
|
||||
"httpx>=0.26.0",
|
||||
"pydantic>=2.5.0",
|
||||
"pydantic-settings>=2.1.0",
|
||||
"PyYAML>=6.0.1",
|
||||
"python-dotenv>=1.0.0",
|
||||
"structlog>=24.1.0",
|
||||
"python-multipart>=0.0.9",
|
||||
"PyJWT[crypto]>=2.9.0",
|
||||
"mcp>=1.2.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
# The public HTTP/OAuth server (aegis-gitea-mcp-server) needs the web stack.
|
||||
server = [
|
||||
"fastapi>=0.109.0",
|
||||
"uvicorn[standard]>=0.27.0",
|
||||
"PyJWT[crypto]>=2.9.0",
|
||||
"python-multipart>=0.0.9",
|
||||
]
|
||||
dev = [
|
||||
"pytest>=7.4.0",
|
||||
"pytest-asyncio>=0.23.0",
|
||||
@@ -44,11 +51,18 @@ dev = [
|
||||
"pre-commit>=3.6.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
# Local stdio MCP server (default install, no web stack required).
|
||||
aegis-gitea-mcp = "aegis_gitea_mcp.stdio_app:main"
|
||||
# Public HTTP/OAuth server; requires the [server] extra. The entry point guards
|
||||
# against a missing web stack with an actionable message.
|
||||
aegis-gitea-mcp-server = "aegis_gitea_mcp.server_entry:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/your-org/AegisGitea-MCP"
|
||||
Documentation = "https://github.com/your-org/AegisGitea-MCP/blob/main/README.md"
|
||||
Repository = "https://github.com/your-org/AegisGitea-MCP.git"
|
||||
Issues = "https://github.com/your-org/AegisGitea-MCP/issues"
|
||||
Homepage = "https://git.hiddenden.cafe/Hiddenden/AegisGitea-MCP"
|
||||
Documentation = "https://git.hiddenden.cafe/Hiddenden/AegisGitea-MCP/src/branch/main/README.md"
|
||||
Repository = "https://git.hiddenden.cafe/Hiddenden/AegisGitea-MCP.git"
|
||||
Issues = "https://git.hiddenden.cafe/Hiddenden/AegisGitea-MCP/issues"
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=68.0.0", "wheel"]
|
||||
|
||||
Reference in New Issue
Block a user