toolframe-mcp-auth 0.2.0__py3-none-any.whl

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 @@
1
+ """Managed MCP bearer credentials for Toolframe."""
@@ -0,0 +1,6 @@
1
+
2
+ CREATE TABLE mcp_keys (
3
+ id TEXT PRIMARY KEY, label TEXT NOT NULL, digest TEXT NOT NULL UNIQUE,
4
+ scopes TEXT NOT NULL, created_by TEXT NOT NULL,
5
+ created_at DOUBLE PRECISION NOT NULL, expires_at DOUBLE PRECISION, revoked_at DOUBLE PRECISION, last_used DOUBLE PRECISION
6
+ );
@@ -0,0 +1,272 @@
1
+ """Own MCP credentials; core owns HTTP admission and trusted caller context."""
2
+
3
+ import asyncio
4
+ import hashlib
5
+ import json
6
+ import math
7
+ import re
8
+ import secrets
9
+ import time
10
+ import uuid
11
+ from importlib.resources import files
12
+
13
+ from toolframe_sdk import (
14
+ AuthorizationSpec,
15
+ MethodSpec,
16
+ Migration,
17
+ Plugin,
18
+ PluginDefinition,
19
+ PluginError,
20
+ Principal,
21
+ Requirement,
22
+ ServiceSpec,
23
+ StoreSchema,
24
+ )
25
+
26
+ SERVICE = "toolframe.mcp-auth"
27
+ MANAGE_SCOPE = "system.auth.mcp_keys"
28
+ TOKEN = re.compile(r"tf_mcp_[A-Za-z0-9_-]{43}\Z")
29
+ SCHEMA = """
30
+ CREATE TABLE mcp_keys (
31
+ id TEXT PRIMARY KEY, label TEXT NOT NULL, digest TEXT NOT NULL UNIQUE,
32
+ scopes TEXT NOT NULL, created_by TEXT NOT NULL,
33
+ created_at REAL NOT NULL, expires_at REAL, revoked_at REAL, last_used REAL
34
+ );
35
+ """
36
+
37
+
38
+ def digest(token):
39
+ return hashlib.sha256(token.encode("ascii")).hexdigest()
40
+
41
+
42
+ def public_record(record):
43
+ return {k: v for k, v in record.items() if k != "digest"} | {
44
+ "scopes": json.loads(record["scopes"]),
45
+ # A record identifier is sufficient for display; reveal no secret bytes.
46
+ "masked_key": "tf_mcp_•••• (" + record["id"][:8] + ")",
47
+ }
48
+
49
+
50
+ class McpAuthProvider(Plugin):
51
+ def __init__(self, context):
52
+ super().__init__(context)
53
+ self.store = context.storage()
54
+ self.lock = asyncio.Lock()
55
+
56
+ async def activate(self):
57
+ await self.store.query("SELECT id FROM mcp_keys LIMIT 1")
58
+
59
+ def actor(self):
60
+ value = self.context.call_info.get("principal")
61
+ if not value:
62
+ raise PluginError("forbidden", "A host-admitted administrator is required")
63
+ actor = Principal.model_validate(value)
64
+ if not actor.unrestricted and MANAGE_SCOPE not in actor.scopes:
65
+ raise PluginError("forbidden", "MCP key management permission required")
66
+ return actor
67
+
68
+ def bounds(self, actor, scopes, expiry):
69
+ if actor.unrestricted:
70
+ return
71
+ catalog = self.context.call_info.get("scope_catalog", {})
72
+ if not actor.allows(scopes, catalog):
73
+ raise PluginError(
74
+ "forbidden", "Cannot delegate scopes beyond your own grant"
75
+ )
76
+ if actor.expires_at is not None and (
77
+ expiry is None or expiry > actor.expires_at
78
+ ):
79
+ raise PluginError("forbidden", "Cannot delegate beyond your grant expiry")
80
+
81
+ def fields(self, params):
82
+ label = params.get("label")
83
+ scopes = params.get("scopes")
84
+ expiry = params.get("expires_at")
85
+ catalog = self.context.call_info.get("scope_catalog", {})
86
+ try:
87
+ valid_label = (
88
+ isinstance(label, str) and bool(label.strip()) and len(label) <= 120
89
+ )
90
+ if valid_label:
91
+ label.encode("utf-8")
92
+ except UnicodeError:
93
+ valid_label = False
94
+ if (
95
+ not valid_label
96
+ or not isinstance(scopes, list)
97
+ or not scopes
98
+ or not all(
99
+ isinstance(s, str) and catalog.get(s, {}).get("category") == "business"
100
+ for s in scopes
101
+ )
102
+ or (
103
+ expiry is not None
104
+ and (
105
+ type(expiry) not in (int, float)
106
+ or not math.isfinite(expiry)
107
+ or not time.time() < expiry < 253402300800
108
+ )
109
+ )
110
+ ):
111
+ raise PluginError(
112
+ "invalid_request",
113
+ "Supply a name, business scopes and a future expiry (or null)",
114
+ )
115
+ return label.strip(), sorted(set(scopes)), expiry
116
+
117
+ async def get(self, identifier):
118
+ if not isinstance(identifier, str) or not re.fullmatch(
119
+ r"[0-9a-f]{32}", identifier
120
+ ):
121
+ raise PluginError("invalid_request", "Supply an MCP key record ID")
122
+ rows = await self.store.query("SELECT * FROM mcp_keys WHERE id=?", [identifier])
123
+ if not rows:
124
+ raise PluginError("credential_missing", "MCP key record not found")
125
+ return rows[0]
126
+
127
+ async def decision(self, record, params):
128
+ now = time.time()
129
+ if (
130
+ record is None
131
+ or record["revoked_at"] is not None
132
+ or (record["expires_at"] is not None and now >= record["expires_at"])
133
+ ):
134
+ raise PluginError("invalid_credentials", "Invalid or expired MCP key")
135
+ actor = Principal(
136
+ kind="mcp_key",
137
+ credential_id=record["id"],
138
+ scopes=tuple(json.loads(record["scopes"])),
139
+ expires_at=record["expires_at"],
140
+ )
141
+ if not actor.allows(
142
+ params.get("required_scopes", ()),
143
+ self.context.call_info.get("scope_catalog", {}),
144
+ ):
145
+ raise PluginError(
146
+ "forbidden", "MCP key does not grant this tool's permissions"
147
+ )
148
+ if params.get("activity", False):
149
+ await self.store.execute(
150
+ "UPDATE mcp_keys SET last_used=? WHERE id=?", [now, record["id"]]
151
+ )
152
+ return {"principal": actor.model_dump()}
153
+
154
+ async def invoke(self, service, method, params):
155
+ # Optional OAuth I/O must not hold the independent key-store lock.
156
+ if (
157
+ method == "verify"
158
+ and isinstance(params.get("token"), str)
159
+ and params["token"].startswith("tf_oauth_")
160
+ ):
161
+ return await self.context.call("oauth", "verify", params)
162
+ if (
163
+ method == "resolve"
164
+ and isinstance(params.get("id"), str)
165
+ and params["id"].startswith("oauth:")
166
+ ):
167
+ return await self.context.call("oauth", "resolve", params)
168
+ async with self.lock:
169
+ if method == "verify":
170
+ token = params.get("token")
171
+ if not isinstance(token, str) or not TOKEN.fullmatch(token):
172
+ raise PluginError(
173
+ "invalid_credentials", "Invalid or expired MCP key"
174
+ )
175
+ rows = await self.store.query(
176
+ "SELECT * FROM mcp_keys WHERE digest=?", [digest(token)]
177
+ )
178
+ return await self.decision(rows[0] if rows else None, {})
179
+ if method == "resolve":
180
+ try:
181
+ record = await self.get(params.get("id"))
182
+ except PluginError:
183
+ raise PluginError(
184
+ "invalid_credentials", "Invalid or expired MCP key"
185
+ ) from None
186
+ return await self.decision(record, params)
187
+ actor = self.actor()
188
+ if method == "create":
189
+ if set(params) - {"label", "scopes", "expires_at"}:
190
+ raise PluginError(
191
+ "invalid_request", "MCP keys are generated by the server"
192
+ )
193
+ label, scopes, expiry = self.fields(params)
194
+ self.bounds(actor, scopes, expiry)
195
+ token = "tf_mcp_" + secrets.token_urlsafe(32)
196
+ identifier = uuid.uuid4().hex
197
+ await self.store.execute(
198
+ "INSERT INTO mcp_keys(id,label,digest,scopes,created_by,created_at,expires_at) VALUES(?,?,?,?,?,?,?)",
199
+ [
200
+ identifier,
201
+ label,
202
+ digest(token),
203
+ json.dumps(scopes),
204
+ actor.credential_id or actor.kind,
205
+ time.time(),
206
+ expiry,
207
+ ],
208
+ )
209
+ return {
210
+ "key": public_record(await self.get(identifier)),
211
+ "token": token,
212
+ }
213
+ if method == "list":
214
+ records = await self.store.query(
215
+ "SELECT * FROM mcp_keys ORDER BY created_at DESC"
216
+ )
217
+ visible = []
218
+ for record in records:
219
+ try:
220
+ self.bounds(
221
+ actor, json.loads(record["scopes"]), record["expires_at"]
222
+ )
223
+ except PluginError:
224
+ continue
225
+ visible.append(public_record(record))
226
+ return {"keys": visible}
227
+ if method == "revoke":
228
+ record = await self.get(params.get("id"))
229
+ self.bounds(actor, json.loads(record["scopes"]), record["expires_at"])
230
+ await self.store.execute(
231
+ "UPDATE mcp_keys SET revoked_at=COALESCE(revoked_at,?) WHERE id=?",
232
+ [time.time(), record["id"]],
233
+ )
234
+ return {"key": public_record(await self.get(record["id"]))}
235
+ raise PluginError("invalid_request", "Unknown MCP key operation")
236
+
237
+
238
+ plugin = PluginDefinition(
239
+ id="mcp-auth",
240
+ kind="provider",
241
+ provider_kind="mcp-auth",
242
+ factory="toolframe_mcp_auth.plugin:McpAuthProvider",
243
+ authorization=AuthorizationSpec(),
244
+ requires={
245
+ "storage": Requirement(service="toolframe.storage.sql"),
246
+ "oauth": Requirement(service="toolframe.oauth.tokens", optional=True),
247
+ },
248
+ services={
249
+ SERVICE: ServiceSpec(
250
+ methods={
251
+ name: MethodSpec(
252
+ audience="internal", read_only=name in {"verify", "list"}
253
+ )
254
+ for name in ("create", "list", "revoke", "verify", "resolve")
255
+ }
256
+ )
257
+ },
258
+ store=StoreSchema(
259
+ revision="v1",
260
+ migrations=(
261
+ Migration(
262
+ revision="v1",
263
+ sql=SCHEMA,
264
+ dialects={
265
+ "postgresql": files(__package__)
266
+ .joinpath("migrations", "v1.postgresql.sql")
267
+ .read_text()
268
+ },
269
+ ),
270
+ ),
271
+ ),
272
+ )
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.5
2
+ Name: toolframe-mcp-auth
3
+ Version: 0.2.0
4
+ Summary: Managed bearer keys for Toolframe MCP clients
5
+ Project-URL: Homepage, https://github.com/toolframe/toolframe-mcp-auth
6
+ Project-URL: Repository, https://github.com/toolframe/toolframe-mcp-auth
7
+ Project-URL: Documentation, https://github.com/toolframe/toolframe-mcp-auth#readme
8
+ Project-URL: Issues, https://github.com/toolframe/toolframe-mcp-auth/issues
9
+ Author-email: byfb <62798989+byfb@users.noreply.github.com>
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Requires-Python: >=3.14
14
+ Requires-Dist: toolframe-sdk==0.3.0
15
+ Description-Content-Type: text/markdown
16
+
17
+ # Toolframe MCP Auth
18
+
19
+ Managed, named bearer keys for MCP clients using Streamable HTTP. Each key contains
20
+ 32 random bytes (256 bits), encoded as `tf_mcp_` plus 43 URL-safe characters.
21
+ The credential provider owns its managed SQLite store and retains only SHA-256
22
+ digests. Full keys are returned once, only when created.
23
+
24
+ Install this plugin with `toolframe-storage-sqlite`, the updated SDK/core and
25
+ FastMCP provider. The optional MCP keys page ships in Dashboard Auth. Operators
26
+ or grants with `system.auth.mcp_keys` can create, list and revoke keys; issuance
27
+ is bounded by the administrator's own business scopes and expiry. MCP keys carry
28
+ fixed business scopes, never system permissions. Rotation is create, switch the
29
+ client, then revoke the old key.
30
+
31
+ ```toml
32
+ [mcp_access]
33
+ mode = "protected"
34
+ auth_provider = "mcp-auth"
35
+
36
+ [plugins.mcp-auth]
37
+ source = "pypi:toolframe-mcp-auth==0.2.0"
38
+ enabled = true
39
+ ```
40
+
41
+ Apply configuration changes with `toolframe --home APP apply`. Core downloads
42
+ the pinned package from PyPI and prepares its isolated environment.
43
+ Creating a key does not change public/protected mode. Protected MCP stays closed
44
+ with no keys or when its auth provider is missing, disabled, reloading or failed.
45
+ Local MCP clients also require credentials. Dashboard access has its own policy.
46
+ Public mode permits anonymous access and ignores authorization headers; enable
47
+ protected mode to enforce key grants.
48
+
49
+ Clients use the application's `/mcp` URL and send `Authorization: Bearer <key>`
50
+ on every request. Remote connections must use HTTPS. Full secrets must not be placed in URLs, checked-in
51
+ configuration, or tool arguments. Revocation/expiry is checked before each new
52
+ tool admission; already admitted calls finish. Credentials survive reload/restart.
53
+
54
+ For browser-based Agent authorization, install the independent
55
+ `toolframe-oidc-auth` plugin with compatible Core/Auth builds. MCP Auth declares
56
+ an optional `toolframe.oauth.tokens` dependency: `tf_oauth_` tokens and `oauth:`
57
+ credential references are delegated to its verifier with the resource and
58
+ required scopes intact. Existing keys stay local to this plugin. An absent or
59
+ unhealthy optional verifier rejects OAuth requests without disabling key
60
+ verification. OIDC login, consent, discovery and token issuance belong to the
61
+ shared OIDC plugin; MCP Auth adds no provider-specific authentication flow.
62
+
63
+ The internal `toolframe.mcp-auth` service provides `create`, `list`, `revoke`,
64
+ `verify` and `resolve`. Core admits management callers and owns trusted request
65
+ contexts. These methods are not public business APIs. Back up the plugin's
66
+ consistent managed SQLite store using the application's normal backup procedure.
67
+
68
+ ```sh
69
+ uv sync
70
+ uv run pytest -q
71
+ uv run ruff check src tests
72
+ uv build --wheel
73
+ ```
74
+
75
+ ## PostgreSQL storage
76
+
77
+ Version 0.2 requires SDK 0.3 and declares PostgreSQL migration SQL alongside the
78
+ unchanged SQLite history. Provision this plugin’s stable store owner with the
79
+ PostgreSQL provider before enabling it. The application still runs one Core;
80
+ retain its private keys and configuration with the application home. Existing
81
+ SQLite records are not imported automatically.
82
+
83
+ For release validation and Trusted Publisher setup, see [releasing](docs/releasing.md).
@@ -0,0 +1,9 @@
1
+ toolframe_mcp_auth/__init__.py,sha256=Y0rak7q00q5tqmqOvFJaE30PwEcxwdvgerAgE6hErmA,52
2
+ toolframe_mcp_auth/plugin.py,sha256=Iho0nyY_1Ng1mIGD1_rE-ApEe3vTd8F4uJtsPusCMfA,9924
3
+ toolframe_mcp_auth/migrations/v1.postgresql.sql,sha256=4bk-jIWrSHWtmRTnIWtTWayf_idz5kBcXpUxRUKUjug,273
4
+ toolframe_mcp_auth-0.2.0.dist-info/METADATA,sha256=ome-xIVULEhccU7J3NXK8nr6qiDfjkbA-33Bkoge110,3892
5
+ toolframe_mcp_auth-0.2.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
6
+ toolframe_mcp_auth-0.2.0.dist-info/entry_points.txt,sha256=OTHq4BsNqNDEktUGWjNIHh4vWn2OfC2Xe7O7eQ4uuio,64
7
+ toolframe_mcp_auth-0.2.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
8
+ toolframe_mcp_auth-0.2.0.dist-info/licenses/NOTICE,sha256=FinHDcvac_bf212Rh9WjyfqWR48RI26qg_kpJSVtd8M,39
9
+ toolframe_mcp_auth-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [toolframe.plugins]
2
+ mcp-auth = toolframe_mcp_auth.plugin:plugin
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ toolframe-mcp-auth
2
+ Copyright 2026 byfb