Skip to content

Commit d7572b7

Browse files
committed
Open Source release of MCP Context Forge - MCP Gateway
1 parent ed3ba5b commit d7572b7

File tree

181 files changed

+38744
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+38744
-2
lines changed

.coveragerc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
exclude_lines =
6+
pragma: no cover
7+
def __repr__
8+
if self.debug
9+
raise AssertionError
10+
raise NotImplentedError
11+
if 0:
12+
if __name__ == .__main__.:
13+
14+
ignore_errors = True

.darglint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[darglint]
2+
docstring_style=google

.dockerignore

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
node_modules
2+
docs/
3+
.vscode
4+
certs
5+
mcp.db
6+
public/
7+
# VENV
8+
.python37/
9+
.python39/
10+
11+
# Byte-compiled / optimized / DLL files
12+
__pycache__/
13+
*.py[cod]
14+
*$py.class
15+
16+
# Bak
17+
*.bak
18+
19+
# C extensions
20+
*.so
21+
22+
# Distribution / packaging
23+
.wily/
24+
.Python
25+
build/
26+
develop-eggs/
27+
dist/
28+
downloads/
29+
eggs/
30+
.eggs/
31+
lib/
32+
lib64/
33+
parts/
34+
sdist/
35+
var/
36+
wheels/
37+
*.egg-info/
38+
.installed.cfg
39+
*.egg
40+
MANIFEST
41+
42+
# PyInstaller
43+
# Usually these files are written by a python script from a template
44+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
45+
*.manifest
46+
*.spec
47+
48+
# Installer logs
49+
pip-log.txt
50+
pip-delete-this-directory.txt
51+
52+
# Unit test / coverage reports
53+
htmlcov/
54+
.tox/
55+
.nox/
56+
.coverage
57+
.coverage.*
58+
.cache
59+
nosetests.xml
60+
coverage.xml
61+
*.cover
62+
.hypothesis/
63+
.pytest_cache/
64+
65+
# Translations
66+
*.mo
67+
*.pot
68+
69+
# Django stuff:
70+
*.log
71+
local_settings.py
72+
db.sqlite3
73+
74+
# Flask stuff:
75+
instance/
76+
.webassets-cache
77+
78+
# Scrapy stuff:
79+
.scrapy
80+
81+
# Sphinx documentation
82+
docs/_build/
83+
84+
# PyBuilder
85+
target/
86+
87+
# Jupyter Notebook
88+
.ipynb_checkpoints
89+
90+
# IPython
91+
profile_default/
92+
ipython_config.py
93+
94+
# pyenv
95+
.python-version
96+
97+
# celery beat schedule file
98+
celerybeat-schedule
99+
100+
# SageMath parsed files
101+
*.sage.py
102+
103+
# Environments
104+
.env
105+
.venv
106+
env/
107+
venv/
108+
ENV/
109+
env.bak/
110+
venv.bak/
111+
112+
# Spyder project settings
113+
.spyderproject
114+
.spyproject
115+
116+
# Rope project settings
117+
.ropeproject
118+
119+
# mkdocs documentation
120+
/site
121+
122+
# mypy
123+
.mypy_cache/
124+
.dmypy.json
125+
dmypy.json
126+
127+
# Mac junk
128+
.DS_Store
129+
130+
# MYPY cache
131+
.mypy_cache
132+
.idea/
133+
134+
# Sonar
135+
.scannerwork
136+
137+
# vim
138+
*.swp
139+
*,cover
140+
141+
# Development folders
142+
.git/
143+
attic/
144+
docs/
145+
test/
146+
tests/
147+
148+
# Configuration files
149+
.bumpversion.cfg
150+
.coveragerc
151+
.editorconfig
152+
.flake8
153+
.hadolint.yaml
154+
.pre-commit-config.yaml
155+
.pycodestyle
156+
.pylintrc
157+
.pyre_configuration
158+
.pyspelling.yaml
159+
.ruff.toml
160+
.shellcheckrc
161+
.spellcheck-en.txt
162+
.travis.*
163+
.whitesource
164+
Makefile
165+
mypi.ini
166+
pytest.ini
167+
sonar-code.properties
168+
test.sh
169+
tox.ini
170+
whitesource.config
171+
172+
# Misc
173+
TODO.md
174+
DEVELOPING.md

.env.ce.example

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
###############################################################################
2+
# IBM Cloud Code Engine – deployment-only variables
3+
# • Required *only* when you deploy MCP Gateway to IBM Cloud.
4+
# • These keys are consumed by the Makefile / ibmcloud CLI and are **NOT**
5+
# injected into the running container.
6+
# • Copy this file to `.env.ce`, fill in real values, keep it out of Git.
7+
###############################################################################
8+
9+
# ── Core IBM Cloud context ──────────────────────────────────────────────
10+
# Region where your Code Engine project lives (e.g. us-south, eu-de, au-syd)
11+
IBMCLOUD_REGION=us-south
12+
13+
# Resource group that owns the project (often “default”)
14+
IBMCLOUD_RESOURCE_GROUP=default
15+
16+
# Code Engine project name
17+
IBMCLOUD_PROJECT=my-codeengine-project
18+
19+
# Desired application name in Code Engine
20+
IBMCLOUD_CODE_ENGINE_APP=mcpgateway
21+
22+
23+
# ── Container image details ─────────────────────────────────────────────
24+
# Fully-qualified tag in IBM Container Registry
25+
IBMCLOUD_IMAGE_NAME=us.icr.io/myspace/mcpgateway:latest
26+
27+
# Local tag produced by `make podman` or `make docker`
28+
IBMCLOUD_IMG_PROD=mcpgateway/mcpgateway
29+
30+
31+
# ── Authentication ──────────────────────────────────────────────────────
32+
# IAM API key for scripted logins.
33+
# Leave **blank** if you prefer interactive SSO (`ibmcloud login --sso`)
34+
IBMCLOUD_API_KEY=
35+
36+
37+
# ── Compute sizing (must match a valid CPU/MEM combo) ───────────────────
38+
# Reference table: https://cloud.ibm.com/docs/codeengine?topic=codeengine-mem-cpu-combo
39+
IBMCLOUD_CPU=1
40+
IBMCLOUD_MEMORY=4G
41+
42+
43+
# ── Registry secret ─────────────────────────────────────────────────────
44+
# Name for the pull secret Code Engine uses to fetch from ICR
45+
IBMCLOUD_REGISTRY_SECRET=my-regcred

0 commit comments

Comments
 (0)