Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ cython_debug/
#----------------------------------------------------------------------
.env
.venv
.venv/
**/.venv
**/.venv/
env/
venv/
ENV/
Expand All @@ -123,6 +126,10 @@ pdm.lock
.pdm.toml
.pdm-python

# uv
uv.lock
**/uv.lock

#----------------------------------------------------------------------
# 5. Package managers and dependencies
#----------------------------------------------------------------------
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,16 @@ logs/
reports/
corpus/
tests/fuzz/fuzzers/results/

# Virtual environments (including nested)
.venv/
.venv
**/.venv/
**/.venv

# uv lock files (including nested)
uv.lock
**/uv.lock
mcp.db
public/
ica_integrations_host.sbom.json
Expand Down
9 changes: 7 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,15 @@ prune .ruff_cache
prune .mypy_cache
prune htmlcov

# Virtual environments
# Virtual environments (including nested in plugins)
prune venv
prune .venv
prune env
prune node_modules
prune plugins/external/opa/.venv
prune plugins/external/llmguard/.venv
prune plugins/external/cedar/.venv
global-exclude **/.venv/*

# Environment files (security sensitive!)
exclude .env
Expand All @@ -150,8 +154,9 @@ exclude *.db
exclude *.sqlite
exclude *.log

# Lock files
# Lock files (including nested in plugins)
exclude uv.lock
global-exclude **/uv.lock

# Coverage data
exclude .coverage
Expand Down
4 changes: 3 additions & 1 deletion mcpgateway/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ def _modify_metadata_for_mariadb():
# my_important_option = config.get_main_option("my_important_option")
# ... etc.

# Escape '%' characters in URL to avoid configparser interpolation errors
# (e.g., URL-encoded passwords like %40 for '@')
config.set_main_option(
"sqlalchemy.url",
settings.database_url,
settings.database_url.replace("%", "%%"),
)


Expand Down
5 changes: 4 additions & 1 deletion mcpgateway/bootstrap_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ async def main() -> None:

with engine.begin() as conn:
cfg.attributes["connection"] = conn
cfg.set_main_option("sqlalchemy.url", settings.database_url)
# Escape '%' characters in URL to avoid configparser interpolation errors
# (e.g., URL-encoded passwords like %40 for '@')
escaped_url = settings.database_url.replace("%", "%%")
cfg.set_main_option("sqlalchemy.url", escaped_url)

insp = inspect(conn)

Expand Down
20 changes: 20 additions & 0 deletions plugins/external/opa/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Virtual environment
.venv/
.venv

# uv lock file
uv.lock

# Coverage data
.coverage
.coverage.*
htmlcov/

# Build artifacts
*.egg-info/
dist/
build/

# Python cache
__pycache__/
*.py[cod]
Loading