agentic-mcp-gateway 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. agentic_mcp_gateway-0.1.0/.github/FUNDING.yml +1 -0
  2. agentic_mcp_gateway-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +53 -0
  3. agentic_mcp_gateway-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +30 -0
  4. agentic_mcp_gateway-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +20 -0
  5. agentic_mcp_gateway-0.1.0/.github/workflows/ci.yml +51 -0
  6. agentic_mcp_gateway-0.1.0/.github/workflows/release.yml +49 -0
  7. agentic_mcp_gateway-0.1.0/.gitignore +56 -0
  8. agentic_mcp_gateway-0.1.0/CHANGELOG.md +20 -0
  9. agentic_mcp_gateway-0.1.0/CONTRIBUTING.md +48 -0
  10. agentic_mcp_gateway-0.1.0/Dockerfile +11 -0
  11. agentic_mcp_gateway-0.1.0/LICENSE +201 -0
  12. agentic_mcp_gateway-0.1.0/Makefile +21 -0
  13. agentic_mcp_gateway-0.1.0/PKG-INFO +251 -0
  14. agentic_mcp_gateway-0.1.0/README.md +219 -0
  15. agentic_mcp_gateway-0.1.0/assets/banner.png +0 -0
  16. agentic_mcp_gateway-0.1.0/assets/demo.gif +0 -0
  17. agentic_mcp_gateway-0.1.0/assets/logo.png +0 -0
  18. agentic_mcp_gateway-0.1.0/docker-compose.yml +33 -0
  19. agentic_mcp_gateway-0.1.0/docs/architecture.md +65 -0
  20. agentic_mcp_gateway-0.1.0/docs/create-mcp-server.md +127 -0
  21. agentic_mcp_gateway-0.1.0/docs/getting-started.md +71 -0
  22. agentic_mcp_gateway-0.1.0/examples/devops-assistant/README.md +125 -0
  23. agentic_mcp_gateway-0.1.0/examples/devops-assistant/workflow.yaml +46 -0
  24. agentic_mcp_gateway-0.1.0/examples/music-store/README.md +154 -0
  25. agentic_mcp_gateway-0.1.0/examples/music-store/data/download_chinook.sh +22 -0
  26. agentic_mcp_gateway-0.1.0/examples/music-store/workflow.yaml +44 -0
  27. agentic_mcp_gateway-0.1.0/examples/research-agent/README.md +172 -0
  28. agentic_mcp_gateway-0.1.0/examples/research-agent/workflow.yaml +56 -0
  29. agentic_mcp_gateway-0.1.0/gateway/__init__.py +6 -0
  30. agentic_mcp_gateway-0.1.0/gateway/cli.py +136 -0
  31. agentic_mcp_gateway-0.1.0/gateway/core/__init__.py +2 -0
  32. agentic_mcp_gateway-0.1.0/gateway/core/config.py +42 -0
  33. agentic_mcp_gateway-0.1.0/gateway/core/llm_providers.py +98 -0
  34. agentic_mcp_gateway-0.1.0/gateway/core/models.py +68 -0
  35. agentic_mcp_gateway-0.1.0/gateway/core/orchestrator.py +284 -0
  36. agentic_mcp_gateway-0.1.0/gateway/core/router.py +109 -0
  37. agentic_mcp_gateway-0.1.0/gateway/core/state.py +19 -0
  38. agentic_mcp_gateway-0.1.0/gateway/mcp_client/__init__.py +2 -0
  39. agentic_mcp_gateway-0.1.0/gateway/mcp_client/http_client.py +76 -0
  40. agentic_mcp_gateway-0.1.0/gateway/mcp_client/manager.py +121 -0
  41. agentic_mcp_gateway-0.1.0/gateway/mcp_client/stdio_client.py +75 -0
  42. agentic_mcp_gateway-0.1.0/gateway/observability/__init__.py +20 -0
  43. agentic_mcp_gateway-0.1.0/gateway/observability/tracer.py +158 -0
  44. agentic_mcp_gateway-0.1.0/gateway/skills/__init__.py +2 -0
  45. agentic_mcp_gateway-0.1.0/gateway/skills/generator.py +93 -0
  46. agentic_mcp_gateway-0.1.0/pyproject.toml +64 -0
  47. agentic_mcp_gateway-0.1.0/scripts/generate_demo_gif.py +239 -0
  48. agentic_mcp_gateway-0.1.0/scripts/record-demo.sh +68 -0
  49. agentic_mcp_gateway-0.1.0/servers/database/db_helper.py +77 -0
  50. agentic_mcp_gateway-0.1.0/servers/database/pyproject.toml +8 -0
  51. agentic_mcp_gateway-0.1.0/servers/database/server.py +137 -0
  52. agentic_mcp_gateway-0.1.0/servers/filesystem/pyproject.toml +8 -0
  53. agentic_mcp_gateway-0.1.0/servers/filesystem/server.py +177 -0
  54. agentic_mcp_gateway-0.1.0/servers/rest_api/pyproject.toml +8 -0
  55. agentic_mcp_gateway-0.1.0/servers/rest_api/server.py +117 -0
  56. agentic_mcp_gateway-0.1.0/servers/template/cookiecutter.json +5 -0
  57. agentic_mcp_gateway-0.1.0/servers/template/{{cookiecutter.project_name}}/pyproject.toml +8 -0
  58. agentic_mcp_gateway-0.1.0/servers/template/{{cookiecutter.project_name}}/server.py +76 -0
  59. agentic_mcp_gateway-0.1.0/test-skills/test/SKILL.md +24 -0
  60. agentic_mcp_gateway-0.1.0/tests/__init__.py +2 -0
  61. agentic_mcp_gateway-0.1.0/tests/conftest.py +2 -0
  62. agentic_mcp_gateway-0.1.0/tests/test_llm_providers.py +322 -0
  63. agentic_mcp_gateway-0.1.0/tests/test_mcp_client.py +269 -0
  64. agentic_mcp_gateway-0.1.0/tests/test_orchestrator.py +288 -0
  65. agentic_mcp_gateway-0.1.0/tests/test_router.py +96 -0
  66. agentic_mcp_gateway-0.1.0/tests/test_servers/__init__.py +2 -0
  67. agentic_mcp_gateway-0.1.0/tests/test_servers/test_database_server.py +134 -0
  68. agentic_mcp_gateway-0.1.0/tests/test_servers/test_filesystem_server.py +115 -0
  69. agentic_mcp_gateway-0.1.0/tests/test_servers/test_rest_api_server.py +146 -0
  70. agentic_mcp_gateway-0.1.0/tests/test_skill_generator.py +166 -0
  71. agentic_mcp_gateway-0.1.0/tests/test_tracer.py +186 -0
  72. agentic_mcp_gateway-0.1.0/uv.lock +3625 -0
  73. agentic_mcp_gateway-0.1.0/workflow.yaml +43 -0
@@ -0,0 +1 @@
1
+ github: [sinhphamvj]
@@ -0,0 +1,53 @@
1
+ name: Bug Report
2
+ description: Create a report to help us improve.
3
+ title: "[Bug]: "
4
+ labels: ["bug", "triage"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for taking the time to fill out this bug report!
10
+ - type: textarea
11
+ id: description
12
+ attributes:
13
+ label: Description
14
+ description: A clear and concise description of what the bug is.
15
+ validations:
16
+ required: true
17
+ - type: textarea
18
+ id: expected
19
+ attributes:
20
+ label: Expected Behavior
21
+ description: A clear and concise description of what you expected to happen.
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ id: actual
26
+ attributes:
27
+ label: Actual Behavior
28
+ description: A clear and concise description of what actually happened.
29
+ validations:
30
+ required: true
31
+ - type: textarea
32
+ id: steps
33
+ attributes:
34
+ label: Steps to Reproduce
35
+ description: Please describe the exact steps to reproduce the issue.
36
+ placeholder: |
37
+ 1. Start the gateway...
38
+ 2. Send request...
39
+ 3. See error...
40
+ validations:
41
+ required: true
42
+ - type: textarea
43
+ id: environment
44
+ attributes:
45
+ label: Environment
46
+ description: Details about your environment.
47
+ value: |
48
+ - OS:
49
+ - Python version:
50
+ - Gateway version:
51
+ - LLM Provider:
52
+ validations:
53
+ required: true
@@ -0,0 +1,30 @@
1
+ name: Feature Request
2
+ description: Suggest an idea for this project.
3
+ title: "[Feature]: "
4
+ labels: ["enhancement", "triage"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for suggesting a feature!
10
+ - type: textarea
11
+ id: description
12
+ attributes:
13
+ label: Feature Description
14
+ description: A clear and concise description of what the feature is.
15
+ validations:
16
+ required: true
17
+ - type: textarea
18
+ id: use_case
19
+ attributes:
20
+ label: Use Case (Why do you need this?)
21
+ description: Please describe the problem you are trying to solve and how this feature will help.
22
+ validations:
23
+ required: true
24
+ - type: textarea
25
+ id: alternatives
26
+ attributes:
27
+ label: Alternatives Considered
28
+ description: A clear and concise description of any alternative solutions or features you've considered.
29
+ validations:
30
+ required: false
@@ -0,0 +1,20 @@
1
+ ## Description
2
+ <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->
3
+
4
+ Fixes # (issue)
5
+
6
+ ## Type of Change
7
+ <!-- Please delete options that are not relevant. -->
8
+ - [ ] Bug fix (non-breaking change which fixes an issue)
9
+ - [ ] New feature (non-breaking change which adds functionality)
10
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
11
+ - [ ] This change requires a documentation update
12
+
13
+ ## Checklist:
14
+ - [ ] My code follows the style guidelines of this project (Python 3.12+, PEP 8, typed, etc.)
15
+ - [ ] I have performed a self-review of my own code
16
+ - [ ] I have made corresponding changes to the documentation
17
+ - [ ] My changes generate no new warnings (run `ruff check` and `mypy`)
18
+ - [ ] I have added tests that prove my fix is effective or that my feature works
19
+ - [ ] New and existing tests pass locally with my changes (run `pytest`)
20
+ - [ ] Test coverage is > 80%
@@ -0,0 +1,51 @@
1
+ # Copyright 2026 agentic-mcp-gateway authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ name: CI
16
+
17
+ on: [push, pull_request]
18
+
19
+ jobs:
20
+ test:
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ matrix:
24
+ python-version: ["3.12", "3.13"]
25
+
26
+ steps:
27
+ - name: Checkout code
28
+ uses: actions/checkout@v4
29
+
30
+ - name: Install uv
31
+ uses: astral-sh/setup-uv@v3
32
+ with:
33
+ enable-cache: true
34
+
35
+ - name: Set up Python ${{ matrix.python-version }}
36
+ run: uv python install ${{ matrix.python-version }}
37
+
38
+ - name: Install dependencies
39
+ run: uv sync --dev
40
+
41
+ - name: Lint with ruff
42
+ run: uv run ruff check .
43
+
44
+ - name: Format check with ruff
45
+ run: uv run ruff format --check .
46
+
47
+ - name: Type check with mypy
48
+ run: uv run mypy .
49
+
50
+ - name: Run tests with pytest
51
+ run: uv run pytest --cov=gateway --cov=servers
@@ -0,0 +1,49 @@
1
+ # Copyright 2026 agentic-mcp-gateway authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ name: Release
16
+
17
+ on:
18
+ push:
19
+ tags:
20
+ - 'v*'
21
+
22
+ jobs:
23
+ pypi-publish:
24
+ name: Build and publish to PyPI
25
+ runs-on: ubuntu-latest
26
+ environment:
27
+ name: pypi
28
+ url: https://pypi.org/p/agentic-mcp-gateway
29
+ permissions:
30
+ id-token: write # IMPORTANT: mandatory for trusted publishing
31
+ contents: read
32
+
33
+ steps:
34
+ - name: Checkout code
35
+ uses: actions/checkout@v4
36
+
37
+ - name: Install uv
38
+ uses: astral-sh/setup-uv@v3
39
+ with:
40
+ enable-cache: true
41
+
42
+ - name: Set up Python
43
+ run: uv python install 3.12
44
+
45
+ - name: Build package
46
+ run: uv build
47
+
48
+ - name: Publish package distributions to PyPI
49
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,56 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ dist/
9
+ downloads/
10
+ eggs/
11
+ .eggs/
12
+ lib/
13
+ lib64/
14
+ parts/
15
+ sdist/
16
+ var/
17
+ wheels/
18
+ *.egg-info/
19
+ .installed.cfg
20
+ *.egg
21
+
22
+ # Virtual environments
23
+ .venv/
24
+ venv/
25
+ ENV/
26
+ env/
27
+
28
+ # Environment files
29
+ .env
30
+ .env.*
31
+ !.env.example
32
+
33
+ # Test and tooling caches
34
+ .coverage
35
+ htmlcov/
36
+ .pytest_cache/
37
+ .mypy_cache/
38
+ .ruff_cache/
39
+ .pyre/
40
+
41
+ # Editors and OS files
42
+ .DS_Store
43
+ .idea/
44
+ .vscode/
45
+
46
+ # Local worktrees
47
+ .worktrees/
48
+ worktrees/
49
+
50
+ # Agent instructions
51
+ AGENTS.md
52
+ CODEX_PROJECT_PLAN.md
53
+
54
+ # Docs and checklists
55
+ docs/promotion-checklist.md
56
+ docs/announcements/
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-06-05
9
+
10
+ ### Added
11
+ - Initial release of agentic-mcp-gateway framework.
12
+ - Core LangGraph-powered intent routing and orchestration engine.
13
+ - Multi-LLM provider support including OpenAI, Anthropic, NVIDIA NIM, and Ollama.
14
+ - YAML-first configuration system for workflows and agent definitions.
15
+ - OpenClaw-compatible skill export functionality (`amcpg skills openclaw-setup`).
16
+ - Native OpenTelemetry (OTel) observability and Arize Phoenix integration.
17
+ - Starlette and Uvicorn based HTTP transport for MCP server communication.
18
+ - Comprehensive CLI for gateway management (`amcpg`).
19
+ - 3 Fully functional demo examples (music-store, devops-assistant, research-agent).
20
+ - Complete CI/CD GitHub workflows, templates, and comprehensive documentation.
@@ -0,0 +1,48 @@
1
+ # Contributing to agentic-mcp-gateway
2
+
3
+ Welcome to the `agentic-mcp-gateway` project! We appreciate your interest in contributing. This guide outlines the steps and rules for contributing to the repository.
4
+
5
+ ## Setup Instructions
6
+
7
+ This project uses [`uv`](https://github.com/astral-sh/uv) for fast Python package management.
8
+
9
+ 1. Ensure you have Python 3.12+ installed on your system.
10
+ 2. Install `uv` if you haven't already.
11
+ 3. Clone the repository and install the development dependencies:
12
+ ```bash
13
+ git clone https://github.com/your-org/agentic-mcp-gateway.git
14
+ cd agentic-mcp-gateway
15
+ uv sync --dev
16
+ ```
17
+
18
+ ## Code Style
19
+
20
+ We enforce strict code style and typing requirements to maintain high code quality:
21
+ - **Formatting & Linting:** We use `ruff`.
22
+ - **Type Checking:** We use `mypy`. All functions must have type hints.
23
+ - **Docstrings:** Use Google-style docstrings. Every module MUST have a module-level docstring.
24
+ - **Line length:** Maximum 100 characters. Indentation: 4 spaces.
25
+ - **License Headers:** Every source file MUST contain an Apache-2.0 license header at the top.
26
+ - **Imports:** Sorted with `ruff isort`.
27
+ - **Async:** Use `async/await` for ALL I/O. Use Pydantic BaseModel for configs.
28
+
29
+ ## Testing Rules
30
+
31
+ We use `pytest` and `pytest-asyncio` for testing.
32
+ - **Coverage:** We maintain a strict test coverage target of **> 80%**.
33
+ - Write tests for your changes in `tests/test_<module>.py`.
34
+ - Run the test suite and check coverage using:
35
+ ```bash
36
+ uv run pytest --cov=gateway --cov=servers
37
+ ```
38
+ - **Mocking:** Mock LLM calls in unit tests; use real calls only in integration tests.
39
+ - All MCP servers must have integration tests and use pytest fixtures for client/server setup.
40
+
41
+ ## Pull Request Process
42
+
43
+ 1. Fork the repository and create your branch from `main`.
44
+ 2. Ensure all tests pass: `uv run pytest --cov=gateway --cov=servers`
45
+ 3. Ensure code is formatted: `uv run ruff format .`
46
+ 4. Ensure linting passes: `uv run ruff check .`
47
+ 5. Ensure type checks pass: `uv run mypy .`
48
+ 6. Submit your PR with a clear description of the changes and the rationale behind them.
@@ -0,0 +1,11 @@
1
+ FROM python:3.12-slim
2
+ ENV PYTHONUNBUFFERED=1
3
+
4
+ WORKDIR /app
5
+ COPY . /app
6
+
7
+ RUN pip install uv
8
+ RUN uv sync --no-dev
9
+
10
+ EXPOSE 8001
11
+ CMD ["uv", "run", "amcpg", "serve", "--host", "0.0.0.0", "--port", "8001"]
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work, excluding
103
+ those notices that do not pertain to any part of the
104
+ Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Do not include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ .PHONY: install test lint format serve docker-up
2
+
3
+ install:
4
+ uv sync
5
+
6
+ test:
7
+ uv run pytest
8
+
9
+ lint:
10
+ uv run ruff check .
11
+ uv run mypy gateway
12
+
13
+ format:
14
+ uv run ruff format .
15
+ uv run ruff check --fix .
16
+
17
+ serve:
18
+ uv run amcpg serve
19
+
20
+ docker-up:
21
+ docker compose up --build