trueppm-mcp 0.4.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.
@@ -0,0 +1,147 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ *.egg
6
+ .eggs/
7
+ dist/
8
+ build/
9
+ .cache/pip/
10
+ .venv
11
+ venv/
12
+ env/
13
+
14
+ # Mypy / Ruff / Pytest / Hypothesis
15
+ .mypy_cache/
16
+ .ruff_cache/
17
+ .pytest_cache/
18
+ .hypothesis/
19
+ .coverage
20
+ htmlcov/
21
+
22
+ # Node — no trailing slash so a worktree's `node_modules` *symlink*
23
+ # (created by scripts/wt) is ignored too, not just real directories.
24
+ node_modules
25
+
26
+ # Coverage
27
+ coverage/
28
+ coverage.xml
29
+ # Generated by scripts/sonar-scan.sh / the sonar:scan CI job: a copy of the API
30
+ # coverage.xml with a resolvable <source> root injected for import (#2113).
31
+ coverage.sonar.xml
32
+
33
+ # uv lockfile. The api (APPLICATION), the scheduler (published LIBRARY), and the
34
+ # mcp server (self-hostable app + published PyPI package) all commit a resolved
35
+ # lock — for reproducible dev/CI installs and a scannable dependency surface: an
36
+ # SCA tool (security:osv) can audit a committed lockfile but not the version
37
+ # ranges a library declares. The published wheels still ship ranges from
38
+ # pyproject.toml; the lock is a repo-side artifact only (#904 api supply-chain
39
+ # hardening, #1153 scheduler OSV migration, #2122 mcp). Keep the blanket ignore
40
+ # for everything else.
41
+ uv.lock
42
+ !packages/api/uv.lock
43
+ !packages/scheduler/uv.lock
44
+ !packages/mcp/uv.lock
45
+
46
+ # Docker
47
+ *.override.yml
48
+
49
+ # OS
50
+ .DS_Store
51
+ Thumbs.db
52
+
53
+ # Editor
54
+ .idea/
55
+ .vscode/
56
+ *.swp
57
+ *.swo
58
+
59
+ # Docusaurus build cache
60
+ .docusaurus/
61
+
62
+ # Claude Code runtime state
63
+ .claude/scheduled_tasks.lock
64
+ .claude/worktrees/
65
+
66
+ # Playwright test runtime output
67
+ test-results/
68
+ packages/web/test-results/
69
+ packages/web/playwright-report/
70
+
71
+ # Rendered by init-prod.sh from one of the nginx/*.conf.template files at first
72
+ # run (#3189). A generated artifact, never committed.
73
+ nginx/active.conf.template
74
+
75
+ # Local dev attachment + media blobs (Closes #817)
76
+ packages/api/attachments/
77
+ packages/api/media/
78
+ # Workspace logo blobs (#969) — local-disk storage root; prod uses object storage
79
+ packages/api/branding/
80
+
81
+ # Workspace export test/runtime artifacts (written by export tests; never committed)
82
+ packages/api/workspace-exports/
83
+ # Project export bundle test/runtime artifacts (ADR-0219; never committed)
84
+ packages/api/project-exports/
85
+ # Program export bundle test/runtime artifacts (ADR-0219, #1958; never committed)
86
+ packages/api/program-exports/
87
+ # Program seed import payload test/runtime artifacts (ADR-0726, #2574; never committed)
88
+ packages/api/seed-imports/
89
+
90
+ # Per-worktree harness files — auto-generated per worktree/machine by scripts/wt
91
+ # (COMPOSE_PROJECT_NAME, isolated TRUEPPM_TEST_DB, owner marker, number reservation).
92
+ # Regenerated on every `wt new`; never committed. Tracking them leaks machine-specific
93
+ # data, collapses per-worktree test-DB isolation, and makes `wt prune` skip the
94
+ # worktree as "has local work". See #1690.
95
+ .envrc
96
+ .wt-owner
97
+ .wt-reservation
98
+
99
+ # The operator's real secrets. init-prod.sh WRITES this file at the repo root —
100
+ # SECRET_KEY (which is also the JWT signing key), DB_PASSWORD, REDIS_PASSWORD —
101
+ # and nothing else stopped `git add -A` from committing it. .env.example is the
102
+ # tracked template; .env never is (#3183).
103
+ .env
104
+ .env.*
105
+ !.env.example
106
+
107
+ # SonarCloud / sonar-scanner scratch output
108
+ .scannerwork/
109
+ .sonar/
110
+
111
+ # Schemathesis API-fuzz crash cache — one JSON record per crash fingerprint,
112
+ # written by the `fuzz` extra (packages/api/pyproject.toml) on every local run.
113
+ # Generated, machine-local, and large (289 files in one observed run); each
114
+ # record embeds the request headers and curl repro for its target. Never
115
+ # committed. See #2794.
116
+ .schemathesis/
117
+
118
+ # Captured docs-build output (#2797). website:build / pages redirect `npm run
119
+ # build` here so the exit code stays honest (a `| tee` would report tee's
120
+ # status), then check-mermaid-rendered.sh scans it for the [ERROR] lines Astro
121
+ # logs while still exiting 0. CI-local scratch; never committed.
122
+ website-build.log
123
+
124
+ # k6 perf/load metrics blob (#2816). `packages/api/perf/load.js` writes it to the
125
+ # working directory on every run — a CI artifact there, repo-root scratch when the
126
+ # harness is run locally per packages/api/perf/README.md. Machine-local and
127
+ # meaningless off the run that produced it; never committed.
128
+ perf-summary.json
129
+
130
+ # TLS material generated by init-prod.sh (#2829). `TLS_MODE=selfsigned` mints a
131
+ # lineage into certbot/conf/live/$DOMAIN/, and letsencrypt writes the real one to
132
+ # the same place — so this directory holds a PRIVATE KEY on any host that has run
133
+ # the documented production entrypoint, including a developer trying the prod
134
+ # compose drill locally. The drill removes it on teardown; this is the guard for
135
+ # the run that fails before teardown.
136
+ certbot/
137
+
138
+ # Local audit reports (docs/audit/). Generated by /pre-release, red-team, and
139
+ # state-of-repo runs; kept on the machine that produced them and never committed.
140
+ #
141
+ # This repo is PUBLIC. These reports enumerate unfixed defects with file:line
142
+ # detail — red-team-2026-08-06.md alone carries two CRITICAL and three HIGH
143
+ # findings, and C1 (no working way to revoke a stolen refresh token) is still
144
+ # live on main as of 2026-08-21. Committing them here publishes a working
145
+ # exploit description ahead of the fix. File the findings as issues instead —
146
+ # a tracker entry is the disclosure channel, a checked-in audit report is not.
147
+ docs/audit/
@@ -0,0 +1,156 @@
1
+ # Read-only TruePPM MCP server (ADR-0186).
2
+ #
3
+ # A pure HTTP client of the TruePPM REST API — no Django, no database driver, no
4
+ # system libraries beyond the Python runtime. stdio is the primary transport (an
5
+ # AI client spawns the container and speaks MCP over the pipe); pass
6
+ # `--transport http` to serve the network transport for web assistants.
7
+ #
8
+ # Build context is this package directory:
9
+ # docker build -t trueppm-mcp packages/mcp/
10
+ # Run (stdio):
11
+ # docker run --rm -i -e TRUEPPM_API_URL=... -e TRUEPPM_API_TOKEN=... trueppm-mcp
12
+ # Run (HTTP, port 8000):
13
+ # docker run --rm -p 127.0.0.1:8000:8000 -e TRUEPPM_API_URL=... \
14
+ # -e TRUEPPM_API_TOKEN=... trueppm-mcp --transport http --host 0.0.0.0 --port 8000
15
+ # WARNING: the HTTP/SSE transport has no client-side auth — anyone who can reach
16
+ # the published port acts as the token owner. Publish on the host loopback only
17
+ # (`127.0.0.1:` prefix; a bare `-p 8000:8000` binds every host interface), or put
18
+ # it behind an authenticated, TLS-terminating ingress and name that hostname with
19
+ # `--allowed-host`. Host/Origin validation (DNS-rebinding protection) is always
20
+ # on, even when binding 0.0.0.0. See administration/mcp-server.md.
21
+
22
+ # ---------------------------------------------------------------------------
23
+ # Stage 1: builder — install the package into an isolated virtualenv
24
+ # ---------------------------------------------------------------------------
25
+ # CI overrides this with the GitLab Dependency Proxy prefix so dind builds
26
+ # don't pull Docker Hub anonymously (#4201); the default keeps local and
27
+ # release builds unchanged.
28
+ ARG DOCKERHUB_PREFIX=docker.io
29
+
30
+ FROM ${DOCKERHUB_PREFIX}/python:3.11-slim@sha256:b7a9e5f6a93d6d4a31f129bbd4bdee69efccb6ded0fb230d78aafaf37af98377 AS builder
31
+
32
+ # `apt-get upgrade` (not just `update`) so this layer carries the Debian
33
+ # security team's latest point-release patches even when the pinned
34
+ # `python:3.11-slim` digest above hasn't been rebuilt since the last CVE
35
+ # disclosure — the same rationale as the api image's equivalent comment
36
+ # (packages/api/Dockerfile), and the same bug class as #4335 (the web
37
+ # image's Alpine base had no upgrade step at all). This image installs no
38
+ # apt packages of its own (pure HTTP client, no build-essential/libpq-dev
39
+ # needed), so there is nothing to `apt-get install` here — just the
40
+ # upgrade and the list cleanup. Build-stage CVEs never ship (this stage is
41
+ # discarded), so this line matters only for the runtime stage below — kept
42
+ # here too so both stages patch identically.
43
+ RUN apt-get update -qq && \
44
+ apt-get upgrade -y -qq && \
45
+ rm -rf /var/lib/apt/lists/*
46
+
47
+ ENV VIRTUAL_ENV=/venv
48
+ RUN python -m venv "$VIRTUAL_ENV"
49
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
50
+
51
+ # pip >= 26.2.2 (emSign CA incident, #4642): pip always trusts its OWN vendored
52
+ # certifi bundle and cannot be told otherwise, so any pip older than 26.2.2 still
53
+ # trusts the emSign roots that certifi dropped, whatever the OS trust store says.
54
+ # Install the wheel by direct URL with a hash so the upgrade does not depend on
55
+ # the bundle it is replacing. Keep this even once the base image ships a newer
56
+ # pip: it is the pin that makes the floor explicit. The runtime stage later
57
+ # uninstalls pip entirely; this protects the build-time fetches (uv, wheel).
58
+ RUN printf '%s\n' 'pip @ https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl --hash=sha256:fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70' > /tmp/pip-req.txt \
59
+ && pip install --no-cache-dir --require-hashes -r /tmp/pip-req.txt \
60
+ && rm /tmp/pip-req.txt
61
+ # Fail the build if the pin above ever stops taking effect (#4642).
62
+ RUN /venv/bin/python -c "import pip,sys; v=tuple(int(x) for x in pip.__version__.split('.')[:3]); sys.exit(0 if v>=(26,2,2) else 'pip %s < 26.2.2' % pip.__version__)"
63
+
64
+ # Patch the venv-seeded build tooling forward before installing so the published
65
+ # image scans clean (mirrors the api image hardening, #1388): 3.11's ensurepip
66
+ # seeds an old `wheel` that trips Trivy on CVE-2026-24049.
67
+ # --only-binary :all: keeps this a wheel-only install so no sdist setup script
68
+ # runs during the build (wheel ships a manylinux wheel, so the flag is safe here
69
+ # — unlike the local source install of /build/mcp below).
70
+ RUN pip install --only-binary :all: --no-cache-dir --upgrade "wheel>=0.46.2"
71
+
72
+ # `uv` is a build-only tool used below to resolve dependencies from the
73
+ # checked-in lockfile instead of `pip`'s live-PyPI resolution (#4184, same
74
+ # class as #4078 on the api image). It installs into this SAME venv (there is
75
+ # no separate build-tool venv) and this venv is copied wholesale into the
76
+ # runtime stage, so it is `pip uninstall`ed explicitly right after its last
77
+ # use below, before any runtime-stage COPY can pick it up. Pinned exact (not
78
+ # a floor) and matched to the api image's pin: `uv export`'s output shape is
79
+ # a build input, not a runtime dependency, so a version drift here should be
80
+ # a deliberate bump, not something that silently changes on the next
81
+ # `docker build`.
82
+ RUN pip install --only-binary :all: --no-cache-dir "uv==0.9.5"
83
+
84
+ # Resolve every runtime dependency from packages/mcp/uv.lock — the lock CI
85
+ # tested against — instead of a fresh `pip` resolution against whatever PyPI
86
+ # serves on the day of the build (same structural gap #4078 fixed for the api
87
+ # image, here for the smaller `mcp[cli]` / `httpx` / `cryptography` set).
88
+ # `trueppm-mcp` itself is excluded from the export (--no-emit-project): the
89
+ # LOCAL source copied in below is what must ship, not whatever version the
90
+ # lock happens to record.
91
+ #
92
+ # --require-hashes verifies every downloaded artifact against the hash uv
93
+ # recorded at lock time — the supply-chain hardening the previous unpinned
94
+ # `pip install` had no way to do. This requires every entry in the export to
95
+ # carry a hash, which holds here since the only hash-less member of the
96
+ # dependency graph (trueppm-mcp itself) is excluded above.
97
+ COPY pyproject.toml uv.lock /build/mcp-lock/
98
+ WORKDIR /build/mcp-lock
99
+ RUN uv export --frozen --no-dev --no-emit-project \
100
+ -o /build/requirements.txt && \
101
+ pip uninstall -y uv && \
102
+ pip install --no-cache-dir --require-hashes -r /build/requirements.txt
103
+
104
+ # Install the mcp package itself. Its dependencies were all installed from
105
+ # the lock above, so --no-deps stops pip from re-resolving them against
106
+ # PyPI — the exact step that reopens the gap this fix closes if it is ever
107
+ # dropped.
108
+ COPY . /build/mcp
109
+ RUN pip install --no-cache-dir --no-deps /build/mcp
110
+
111
+ # Prove the image can actually boot before it ships: import the CLI entry
112
+ # point module (the console script's target, `trueppm_mcp.cli:main`), which
113
+ # transitively imports the server, client, and config modules and would fail
114
+ # the same way a live-PyPI-resolved dependency mismatch would (mirrors the
115
+ # api image's `django.setup()` boot smoke from #4078). Runs in every build —
116
+ # local `docker build` and any future CI job — not only a later automated
117
+ # gate, so a regression is caught at the earliest possible point.
118
+ RUN /venv/bin/python -c "import trueppm_mcp.cli; print('boot smoke: OK')"
119
+
120
+ # ---------------------------------------------------------------------------
121
+ # Stage 2: runtime — lean image with only the venv
122
+ # ---------------------------------------------------------------------------
123
+ FROM ${DOCKERHUB_PREFIX}/python:3.11-slim@sha256:b7a9e5f6a93d6d4a31f129bbd4bdee69efccb6ded0fb230d78aafaf37af98377 AS runtime
124
+
125
+ # See the matching comment in the builder stage above — this is the stage
126
+ # that actually ships, so this `upgrade` is the one that matters for a
127
+ # pre-publish Trivy gate (none exists for this image today, but the
128
+ # Dockerfile's own header documents `docker build ... packages/mcp/` as a
129
+ # supported self-host path, so an operator building it locally gets the
130
+ # same patch posture as the api/web images).
131
+ RUN apt-get update -qq && \
132
+ apt-get upgrade -y -qq && \
133
+ rm -rf /var/lib/apt/lists/*
134
+
135
+ COPY --from=builder /venv /venv
136
+
137
+ # Drop the Python build tools (pip/setuptools/wheel) from both the base image's
138
+ # system Python and the app venv: the server runs entirely from the venv console
139
+ # script and never invokes them at runtime, but Trivy scans them and fails the
140
+ # release on their fixable CVEs (mirrors the api image, #1388).
141
+ RUN python -m pip uninstall -y wheel setuptools pip \
142
+ && /venv/bin/python -m pip uninstall -y wheel setuptools pip \
143
+ && rm -f /usr/local/lib/python3.11/ensurepip/_bundled/*.whl
144
+ # The base image's ensurepip carries its own pip wheel (24.0 here, with the same
145
+ # vendored certifi); deleted so `python -m ensurepip` cannot resurrect an old pip (#4642).
146
+
147
+ # Non-root runtime user.
148
+ RUN useradd --uid 1000 --no-create-home --shell /sbin/nologin trueppm
149
+
150
+ ENV PATH="/venv/bin:$PATH"
151
+ WORKDIR /app
152
+ USER trueppm
153
+
154
+ # stdio by default; override CMD args for http/sse, e.g.
155
+ # docker run -p 127.0.0.1:8000:8000 ... trueppm-mcp --transport http --host 0.0.0.0
156
+ ENTRYPOINT ["trueppm-mcp"]
@@ -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,
103
+ excluding those notices that do not pertain to any part of
104
+ the 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. (Don't 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,7 @@
1
+ TruePPM
2
+ Copyright 2026 MacroDream, LLC and contributors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Third-party components that TruePPM redistributes, and the notices their
7
+ licenses require to travel with them, are listed in NOTICES.
@@ -0,0 +1,49 @@
1
+ TruePPM MCP Server — Third-Party Notices
2
+ =========================================
3
+
4
+ This file is scoped to what `trueppm-mcp` itself redistributes — it is NOT a
5
+ byte-identical copy of the repository-root `NOTICES` (unlike this package's
6
+ `LICENSE`/`NOTICE`, which are). The root file also covers psycopg, which
7
+ `trueppm-mcp` never depends on (it is a pure HTTP client of the TruePPM REST
8
+ API — ADR-0186 — with no Django, no ORM, no database driver), so copying it
9
+ verbatim here would misstate what this package distributes. If TruePPM's
10
+ third-party dependency set changes, keep this file and the root `NOTICES` in
11
+ sync by hand for the components both packages actually ship.
12
+
13
+ TruePPM's own source code is licensed under the Apache License 2.0 (see
14
+ `LICENSE` in this directory, and the repository-root `LICENSE`). This file
15
+ records the third-party components that `trueppm-mcp` redistributes — in its
16
+ Docker image (`packages/mcp/Dockerfile`, via the installed wheel's
17
+ `dist-info/licenses/`) and in its own published PyPI sdist/wheel — and whose
18
+ licenses require a notice to travel with every distributed copy.
19
+
20
+
21
+ certifi — Mozilla's curated bundle of root certificates
22
+ --------------------------------------------------------
23
+
24
+ Component: certifi
25
+ Version: unpinned (resolved transitively; see below)
26
+ License: Mozilla Public License 2.0 (SPDX: MPL-2.0)
27
+ Upstream: https://github.com/certifi/python-certifi
28
+ License text: licenses/MPL-2.0.txt
29
+
30
+ How it arrives, and the obligation we satisfy:
31
+
32
+ certifi is not a direct dependency of trueppm-mcp — it arrives transitively
33
+ via `httpx`, this package's HTTP client. It is redistributed unmodified,
34
+ installed from PyPI as an ordinary wheel.
35
+
36
+ MPL-2.0 is file-level copyleft: the obligations attach to modifications of
37
+ the *licensed files themselves*, not to software that merely depends on or
38
+ links against them (§1.4, §3.1-3.3). We do not modify certifi's source, so
39
+ no source-disclosure obligation is triggered — only the Notice preservation
40
+ and license-availability requirements that apply to any Covered Software we
41
+ redistribute (§3.2, §3.3), both satisfied here: this NOTICES entry plus
42
+ `licenses/MPL-2.0.txt` travel with every copy of this package (image and
43
+ PyPI artifact alike), and certifi's own unmodified source remains available
44
+ from its canonical PyPI/GitHub location at all times.
45
+
46
+ No version is pinned deliberately: certifi ships a rolling CA bundle update,
47
+ and pinning a version would eventually distribute stale root certificates.
48
+ See the repository-root `NOTICES` for the full rationale (shared verbatim
49
+ with this package's own copy of the certifi entry).