mcp-zero-trust-layer 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.
- mcp_zero_trust_layer-0.1.0/CHANGELOG.md +84 -0
- mcp_zero_trust_layer-0.1.0/CONTRIBUTING.md +48 -0
- mcp_zero_trust_layer-0.1.0/Dockerfile +15 -0
- mcp_zero_trust_layer-0.1.0/LICENSE +200 -0
- mcp_zero_trust_layer-0.1.0/MANIFEST.in +13 -0
- mcp_zero_trust_layer-0.1.0/PKG-INFO +961 -0
- mcp_zero_trust_layer-0.1.0/README.md +918 -0
- mcp_zero_trust_layer-0.1.0/SECURITY.md +36 -0
- mcp_zero_trust_layer-0.1.0/constraints.txt +27 -0
- mcp_zero_trust_layer-0.1.0/deploy/docker-compose.prod.yaml +35 -0
- mcp_zero_trust_layer-0.1.0/deploy/helm/Chart.yaml +6 -0
- mcp_zero_trust_layer-0.1.0/deploy/helm/templates/_helpers.tpl +11 -0
- mcp_zero_trust_layer-0.1.0/deploy/helm/templates/configmap.yaml +10 -0
- mcp_zero_trust_layer-0.1.0/deploy/helm/templates/deployment.yaml +76 -0
- mcp_zero_trust_layer-0.1.0/deploy/helm/templates/service.yaml +16 -0
- mcp_zero_trust_layer-0.1.0/deploy/helm/values.yaml +68 -0
- mcp_zero_trust_layer-0.1.0/docs/MULTI_MCP_USE_CASES.md +202 -0
- mcp_zero_trust_layer-0.1.0/docs/PRODUCTION.md +360 -0
- mcp_zero_trust_layer-0.1.0/docs/PYPI_RELEASE.md +266 -0
- mcp_zero_trust_layer-0.1.0/examples/filesystem-safe/mcpzt.yaml +59 -0
- mcp_zero_trust_layer-0.1.0/examples/github-readonly/mcpzt.yaml +55 -0
- mcp_zero_trust_layer-0.1.0/examples/multi-mcp/mcpzt.yaml +171 -0
- mcp_zero_trust_layer-0.1.0/examples/postgres-readonly/mcpzt.yaml +41 -0
- mcp_zero_trust_layer-0.1.0/examples/protected-http-upstream/mcpzt.yaml +51 -0
- mcp_zero_trust_layer-0.1.0/pyproject.toml +77 -0
- mcp_zero_trust_layer-0.1.0/setup.cfg +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/approvals/__init__.py +5 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/approvals/models.py +33 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/approvals/notifier.py +30 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/approvals/store.py +138 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/audit/__init__.py +3 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/audit/logger.py +171 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/capabilities/__init__.py +10 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/capabilities/discovery.py +114 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/capabilities/filtering.py +55 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/capabilities/mapping.py +24 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/cli/__init__.py +2 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/cli/main.py +880 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/config/__init__.py +5 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/config/loader.py +26 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/config/models.py +231 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/config/secrets.py +156 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/core/__init__.py +3 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/core/context.py +27 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/core/pipeline.py +401 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/errors.py +14 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/identity/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/identity/auth.py +267 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/identity/models.py +22 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/observability/__init__.py +3 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/observability/metrics.py +46 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/output/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/output/enforcer.py +44 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/packs/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/packs/filesystem-safe.yaml +34 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/packs/github-readonly.yaml +35 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/packs/postgres-readonly.yaml +20 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/packs/registry.py +32 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/policy/__init__.py +5 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/policy/adapters.py +99 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/policy/conditions.py +69 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/policy/engine.py +292 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/policy/models.py +21 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/protocol/__init__.py +17 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/protocol/jsonrpc.py +53 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/py.typed +1 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/security/__init__.py +3 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/security/scanner.py +165 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/transports/__init__.py +2 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/transports/http/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/transports/http/app.py +241 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/transports/http/server.py +24 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/transports/stdio/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/transports/stdio/wrapper.py +75 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/upstream/__init__.py +4 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/upstream/base.py +17 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/upstream/http.py +125 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/upstream/stdio.py +74 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/validators/__init__.py +5 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/validators/basic.py +230 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/validators/engine.py +46 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/validators/input_policy.py +60 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer/validators/models.py +17 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer.egg-info/PKG-INFO +961 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer.egg-info/SOURCES.txt +88 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer.egg-info/dependency_links.txt +1 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer.egg-info/entry_points.txt +3 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer.egg-info/requires.txt +16 -0
- mcp_zero_trust_layer-0.1.0/src/mcp_zero_trust_layer.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to MCP Zero Trust Layer will be documented here.
|
|
4
|
+
|
|
5
|
+
The project follows SemVer during the `0.x` line with the caveat that minor versions may still change configuration shape before `1.0`.
|
|
6
|
+
|
|
7
|
+
## 0.1.0 - Unreleased
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- PyPI-ready Python package with `mcpzt` and `mcp-zero-trust-layer` CLI entry points.
|
|
12
|
+
- Versionable YAML config with validation and JSON Schema export.
|
|
13
|
+
- HTTP JSON proxy runtime for MCP Streamable HTTP POST requests.
|
|
14
|
+
- Stdio wrapper runtime with protocol-only stdout.
|
|
15
|
+
- Multi-MCP HTTP routing with `/mcp/{server_name}`.
|
|
16
|
+
- Policy engine with deny, hide, require approval, redact, limit, transform, allow and log effects.
|
|
17
|
+
- `mcpzt policy explain` for request-context diagnostics, matched policies and per-policy match failures.
|
|
18
|
+
- Native policy `input` blocks for allowed fields, required fields, forbidden fields, allowed values, max field bytes and max list items.
|
|
19
|
+
- Optional OPA policy adapter for external policy decisions over normalized MCPZT context.
|
|
20
|
+
- Exact and semantic capability matching over server, method, tool/resource/prompt, action, risk, access, tags, data classification and identity.
|
|
21
|
+
- Request validators for read-only SQL, filesystem paths, URLs, email, regex, required fields, forbidden fields and max field size.
|
|
22
|
+
- Output enforcement for redaction, deny patterns, max bytes and include-only views.
|
|
23
|
+
- Local approval store and approval CLI.
|
|
24
|
+
- Approval webhook notifications for created, approved and denied approval lifecycle events.
|
|
25
|
+
- Prometheus-format decision metrics exposed by the HTTP runtime.
|
|
26
|
+
- Capability discovery and diff commands.
|
|
27
|
+
- Deterministic `mcpzt scan` command for capability snapshot risk checks.
|
|
28
|
+
- MCP client config generation through `mcpzt client config`.
|
|
29
|
+
- Bundled policy packs for GitHub read-only, Postgres read-only and filesystem-safe examples.
|
|
30
|
+
- Multi-MCP example config covering GitHub, Postgres, filesystem and CRM use cases.
|
|
31
|
+
- Static token, API key, JWT and OIDC/JWKS authentication.
|
|
32
|
+
- Secret references with `auth.token_env`, `env:`, `${VAR}`, `file:`, `op://`, `aws-sm://` and `vault://`.
|
|
33
|
+
- Explicit HTTP upstream credential headers through `servers[].upstream_headers`.
|
|
34
|
+
- OAuth protected resource metadata endpoints for HTTP deployments.
|
|
35
|
+
- JSONL audit logging with recursive secret redaction, strict/non-strict write modes and hash-chain verification.
|
|
36
|
+
- `mcpzt doctor` for local and config diagnostics.
|
|
37
|
+
- Dockerfile, production Docker Compose recipe, Helm starter chart, CI workflow and PyPI Trusted Publishing workflow.
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- Reworked README into a fuller narrative guide with longer explanatory sections, fewer compact bullet lists and more context around product intent, operations, security and release workflow.
|
|
42
|
+
- Expanded README with request evaluation flow, copy-paste policy examples, manual HTTP examples, multi-MCP walkthrough, deployment patterns and troubleshooting.
|
|
43
|
+
- Added [docs/MULTI_MCP_USE_CASES.md](docs/MULTI_MCP_USE_CASES.md) to document real multi-server scenarios and their expected behavior.
|
|
44
|
+
- Added [examples/multi-mcp/mcpzt.yaml](examples/multi-mcp/mcpzt.yaml) as a versionable multi-MCP starter config.
|
|
45
|
+
- Docker builds now install with `constraints.txt` for reproducible image dependency resolution.
|
|
46
|
+
- Public package documentation now excludes internal construction docs, planning docs and security audit notes.
|
|
47
|
+
- Expanded public docs for multi-MCP usage, production deployment and PyPI release operations with fuller explanations and release safety checks.
|
|
48
|
+
- Expanded public docs with policy explanation, parameter contracts, secret-manager references, approval webhooks, metrics, audit verification, scanner usage and deployment recipes.
|
|
49
|
+
|
|
50
|
+
### Security
|
|
51
|
+
|
|
52
|
+
- Production config requires default deny and explicit auth unless overridden.
|
|
53
|
+
- Production rejects `runtime.dry_run: true` unless an explicit production override is set.
|
|
54
|
+
- Production requires `runtime.public_base_url` or `runtime.trusted_hosts`.
|
|
55
|
+
- Production JWT/OIDC requires issuer and audience.
|
|
56
|
+
- HTTP upstream headers are allowlisted.
|
|
57
|
+
- Static tokens and API keys use constant-time comparison.
|
|
58
|
+
- Static token and API key auth ignore caller-supplied `x-mcpzt-*` identity headers by default.
|
|
59
|
+
- Incoming client `Authorization` is not forwarded to upstreams unless configured explicitly as an upstream header.
|
|
60
|
+
- Side-effecting JSON-RPC notifications are evaluated by policy instead of being forwarded blindly.
|
|
61
|
+
- HTTP request bodies are bounded by `runtime.max_request_bytes`.
|
|
62
|
+
- HTTP upstream responses are bounded by `servers[].max_response_bytes`.
|
|
63
|
+
- HTTP upstream error bodies are truncated and redacted before being returned to clients.
|
|
64
|
+
- Output enforcement applies to JSON-RPC `error` payloads as well as `result` payloads.
|
|
65
|
+
- Approval store writes use file locking and atomic replace.
|
|
66
|
+
- Approval decisions record approver, timestamp and optional comment, and emit audit events.
|
|
67
|
+
- FastAPI docs, Redoc and OpenAPI routes are disabled in production.
|
|
68
|
+
- URL validator resolves hostnames and blocks private, loopback, link-local and cloud metadata IPs by default.
|
|
69
|
+
- Audit decision events include whether the upstream was called.
|
|
70
|
+
- Audit events can be hash-chain verified with `mcpzt audit verify`.
|
|
71
|
+
- Metrics avoid request arguments and output payloads to reduce monitoring data leakage.
|
|
72
|
+
- Filesystem validator relative roots can resolve from the loaded config directory.
|
|
73
|
+
|
|
74
|
+
### Tests
|
|
75
|
+
|
|
76
|
+
- Added full multi-MCP integration test coverage with local HTTP MCP upstreams.
|
|
77
|
+
- Multi-MCP tests cover capability filtering, safe routing, SQL blocking, filesystem blocking, approvals, approval stripping and CRM output redaction.
|
|
78
|
+
- Added tests for policy explanation, input policies, OPA adapter behavior, audit hash-chain verification, metrics exposure, client config generation and scanner findings.
|
|
79
|
+
- Current suite: 82 tests passing.
|
|
80
|
+
|
|
81
|
+
### Notes
|
|
82
|
+
|
|
83
|
+
- GET SSE streams are not offered in `0.1.0`; the HTTP endpoint returns 405 for GET, which is allowed for servers that do not offer an SSE stream.
|
|
84
|
+
- Request-scoped upstream SSE passthrough is intentionally outside this first release.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping make MCP Zero Trust Layer safer and easier to use.
|
|
4
|
+
|
|
5
|
+
## Local Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
python -m venv .venv
|
|
9
|
+
. .venv/bin/activate
|
|
10
|
+
python -m pip install -e ".[dev]"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Run the core checks before opening a pull request:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python -m pytest
|
|
17
|
+
ruff check .
|
|
18
|
+
python -m build
|
|
19
|
+
twine check dist/*
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Design Rules
|
|
23
|
+
|
|
24
|
+
- Keep policy decisions independent from HTTP and stdio transports.
|
|
25
|
+
- Do not put security decisions in CLI presentation code.
|
|
26
|
+
- Prefer explicit deny behavior over implicit allow behavior.
|
|
27
|
+
- Every deny, approval, validation failure and output block needs a human-readable reason.
|
|
28
|
+
- Never write logs to stdout in stdio mode.
|
|
29
|
+
- Redact secrets before audit writes, test outputs or error messages.
|
|
30
|
+
- Add tests when changing policy, validators, auth, output enforcement, audit or transports.
|
|
31
|
+
|
|
32
|
+
## Configuration Compatibility
|
|
33
|
+
|
|
34
|
+
The project is currently `0.x`, so config shape may evolve. Breaking config changes must include:
|
|
35
|
+
|
|
36
|
+
- changelog entry;
|
|
37
|
+
- migration note;
|
|
38
|
+
- updated examples;
|
|
39
|
+
- focused tests.
|
|
40
|
+
|
|
41
|
+
## Pull Request Checklist
|
|
42
|
+
|
|
43
|
+
- Tests pass.
|
|
44
|
+
- Lint passes.
|
|
45
|
+
- README/docs updated for user-visible behavior.
|
|
46
|
+
- New config fields have schema defaults and validation.
|
|
47
|
+
- Security-sensitive changes include negative tests.
|
|
48
|
+
- Packaging metadata still builds and passes `twine check`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
FROM python:3.12-slim
|
|
2
|
+
|
|
3
|
+
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
4
|
+
PYTHONUNBUFFERED=1
|
|
5
|
+
|
|
6
|
+
WORKDIR /app
|
|
7
|
+
COPY pyproject.toml README.md LICENSE MANIFEST.in constraints.txt ./
|
|
8
|
+
COPY src ./src
|
|
9
|
+
|
|
10
|
+
RUN python -m pip install --no-cache-dir -c constraints.txt .
|
|
11
|
+
RUN useradd --create-home --shell /usr/sbin/nologin mcpzt && chown -R mcpzt:mcpzt /app
|
|
12
|
+
|
|
13
|
+
USER mcpzt
|
|
14
|
+
|
|
15
|
+
ENTRYPOINT ["mcpzt"]
|
|
@@ -0,0 +1,200 @@
|
|
|
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 exercising
|
|
24
|
+
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
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including the
|
|
48
|
+
original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a cross-claim
|
|
82
|
+
or counterclaim in a lawsuit) alleging that the Work or a Contribution
|
|
83
|
+
incorporated within the Work constitutes direct or contributory patent
|
|
84
|
+
infringement, then any patent licenses granted to You under this
|
|
85
|
+
License for that Work shall terminate as of the date such litigation
|
|
86
|
+
is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
94
|
+
Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work, excluding
|
|
102
|
+
those notices that do not pertain to any part of the Derivative
|
|
103
|
+
Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding those notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions. Notwithstanding
|
|
133
|
+
the above, nothing herein shall supersede or modify the terms of any
|
|
134
|
+
separate license agreement you may have executed with Licensor
|
|
135
|
+
regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
178
|
+
|
|
179
|
+
To apply the Apache License to your work, attach the following
|
|
180
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
181
|
+
replaced with your own identifying information. Do not include
|
|
182
|
+
the brackets. The text should be enclosed in the appropriate
|
|
183
|
+
comment syntax for the file format. We also recommend that a
|
|
184
|
+
file or class name and description of purpose be included on the
|
|
185
|
+
same "printed page" as the copyright notice for easier
|
|
186
|
+
identification within third-party archives.
|
|
187
|
+
|
|
188
|
+
Copyright 2026 MCP Zero Trust Layer Contributors
|
|
189
|
+
|
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
191
|
+
you may not use this file except in compliance with the License.
|
|
192
|
+
You may obtain a copy of the License at
|
|
193
|
+
|
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
195
|
+
|
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
199
|
+
See the License for the specific language governing permissions and
|
|
200
|
+
limitations under the License.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include SECURITY.md
|
|
4
|
+
include CONTRIBUTING.md
|
|
5
|
+
include CHANGELOG.md
|
|
6
|
+
include Dockerfile
|
|
7
|
+
include constraints.txt
|
|
8
|
+
include docs/MULTI_MCP_USE_CASES.md
|
|
9
|
+
include docs/PRODUCTION.md
|
|
10
|
+
include docs/PYPI_RELEASE.md
|
|
11
|
+
recursive-include examples *.yaml
|
|
12
|
+
recursive-include deploy *.yaml
|
|
13
|
+
recursive-include deploy *.tpl
|