mcp-proxyml 0.1.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.
File without changes
mcp_proxyml/drift.py ADDED
@@ -0,0 +1,73 @@
1
+ def interpret_diff(
2
+ diff: dict,
3
+ version_a: str,
4
+ version_b: str,
5
+ coefficient_threshold: float,
6
+ fidelity_threshold: float,
7
+ ) -> dict:
8
+ """Apply drift thresholds to a diff_models response and return a pass/fail result.
9
+
10
+ Pure function — no I/O. Called by proxyml_detect_drift after fetching the diff.
11
+ """
12
+ flagged_features = [
13
+ entry for entry in diff["coefficient_diff"]
14
+ if abs(entry["delta"]) > coefficient_threshold
15
+ ]
16
+
17
+ metric_changes = {
18
+ metric: {**entry, "flagged": entry["delta"] < -fidelity_threshold}
19
+ for metric, entry in diff["metric_diff"].items()
20
+ }
21
+
22
+ features_added = diff.get("features_added", [])
23
+ features_removed = diff.get("features_removed", [])
24
+
25
+ passed = (
26
+ not flagged_features
27
+ and not any(v["flagged"] for v in metric_changes.values())
28
+ and not features_added
29
+ and not features_removed
30
+ )
31
+
32
+ reasons = []
33
+ if flagged_features:
34
+ top = ", ".join(
35
+ f"{e['feature']} (Δ={e['delta']:+.3f})" for e in flagged_features[:3]
36
+ )
37
+ reasons.append(
38
+ f"{len(flagged_features)} feature(s) exceeded coefficient threshold "
39
+ f"({coefficient_threshold}): {top}"
40
+ + (" and more" if len(flagged_features) > 3 else "")
41
+ )
42
+ for metric, entry in metric_changes.items():
43
+ if entry["flagged"]:
44
+ reasons.append(
45
+ f"{metric} dropped by {abs(entry['delta']):.3f} "
46
+ f"(threshold: {fidelity_threshold})"
47
+ )
48
+ if features_added:
49
+ reasons.append(f"Features added: {', '.join(features_added)}")
50
+ if features_removed:
51
+ reasons.append(f"Features removed: {', '.join(features_removed)}")
52
+
53
+ if passed:
54
+ largest = max(
55
+ (abs(e["delta"]) for e in diff["coefficient_diff"]), default=0.0
56
+ )
57
+ summary = (
58
+ f"PASSED: No significant drift detected. "
59
+ f"Largest coefficient shift: {largest:.3f} (threshold: {coefficient_threshold})."
60
+ )
61
+ else:
62
+ summary = "FAILED: " + ". ".join(reasons) + "."
63
+
64
+ return {
65
+ "passed": passed,
66
+ "version_a": version_a,
67
+ "version_b": version_b,
68
+ "summary": summary,
69
+ "flagged_features": flagged_features,
70
+ "metric_changes": metric_changes,
71
+ "features_added": features_added,
72
+ "features_removed": features_removed,
73
+ }
mcp_proxyml/schema.py ADDED
@@ -0,0 +1,53 @@
1
+ import numpy as np
2
+ import pandas as pd
3
+ from pandas.api.types import is_float_dtype, is_integer_dtype
4
+
5
+
6
+ def infer_schema(df: pd.DataFrame, immutable_cols: list[str] | None = None) -> dict:
7
+ """Infer a ProxyML feature schema from a DataFrame.
8
+
9
+ Integer columns default to 'count'. Consider switching to 'categorical_ordinal'
10
+ for ordered categories like ratings or education level.
11
+ """
12
+ features = []
13
+ for col in df.columns:
14
+ immutable = immutable_cols is not None and col in immutable_cols
15
+ if is_float_dtype(df[col]):
16
+ feature = {
17
+ "type": "continuous",
18
+ "name": col,
19
+ "mean": round(float(np.nanmean(df[col])), 6),
20
+ "std": round(float(np.nanstd(df[col])), 6),
21
+ "min": float(np.nanmin(df[col])),
22
+ "max": float(np.nanmax(df[col])),
23
+ }
24
+ elif df[col].dtype == bool:
25
+ feature = _categorical(col, df[col])
26
+ elif is_integer_dtype(df[col]):
27
+ feature = {
28
+ "type": "count",
29
+ "name": col,
30
+ "lambda": round(float(np.nanmean(df[col])), 6),
31
+ "max": float(np.nanmax(df[col])),
32
+ }
33
+ else:
34
+ feature = _categorical(col, df[col])
35
+ feature["immutable"] = immutable
36
+ features.append(feature)
37
+ return {
38
+ "features": features,
39
+ "_note": (
40
+ "Auto-generated schema. Review and adjust types as needed. "
41
+ "Integer columns default to count — consider categorical_ordinal "
42
+ "for ordered categories like ratings or class labels."
43
+ ),
44
+ }
45
+
46
+
47
+ def _categorical(col: str, series: pd.Series) -> dict:
48
+ counts = series.value_counts(normalize=True)
49
+ return {
50
+ "type": "categorical",
51
+ "name": col,
52
+ "valid_categories": {str(k): round(float(v), 6) for k, v in counts.items()},
53
+ }
mcp_proxyml/server.py ADDED
@@ -0,0 +1,342 @@
1
+ import json
2
+ import os
3
+
4
+ import httpx
5
+ import pandas as pd
6
+ from mcp.server.fastmcp import FastMCP
7
+
8
+ from mcp_proxyml.drift import interpret_diff
9
+ from mcp_proxyml.schema import infer_schema
10
+
11
+ mcp = FastMCP("ProxyML")
12
+
13
+ _DEFAULT_BASE_URL = "https://api.proxyml.ai/api/v1"
14
+
15
+
16
+ def _client() -> httpx.AsyncClient:
17
+ api_key = os.environ.get("PROXYML_API_KEY", "")
18
+ if not api_key:
19
+ raise RuntimeError(
20
+ "PROXYML_API_KEY is not set. "
21
+ "Add it to the MCP server env config and restart."
22
+ )
23
+ return httpx.AsyncClient(
24
+ base_url=os.environ.get("PROXYML_BASE_URL", _DEFAULT_BASE_URL),
25
+ headers={"X-API-KEY": api_key, "Content-Type": "application/json"},
26
+ timeout=60.0,
27
+ )
28
+
29
+
30
+ # ---------------------------------------------------------------------------
31
+ # Local tools (no API call)
32
+ # ---------------------------------------------------------------------------
33
+
34
+ @mcp.tool()
35
+ async def proxyml_infer_schema(
36
+ csv_path: str,
37
+ immutable_cols: list[str] | None = None,
38
+ ) -> dict:
39
+ """Infer a ProxyML feature schema from a local CSV file.
40
+
41
+ Reads the file locally — no data is sent to the ProxyML server.
42
+ Returns a schema dict ready to pass to proxyml_put_schema.
43
+ Integer columns default to 'count'; consider 'categorical_ordinal' for
44
+ ordered categories like ratings or education level.
45
+ """
46
+ df = pd.read_csv(csv_path)
47
+ return infer_schema(df, immutable_cols)
48
+
49
+
50
+ # ---------------------------------------------------------------------------
51
+ # Schema tools
52
+ # ---------------------------------------------------------------------------
53
+
54
+ @mcp.tool()
55
+ async def proxyml_get_schema(schema_name: str = "default") -> dict:
56
+ """Retrieve a stored feature schema by name."""
57
+ async with _client() as c:
58
+ r = await c.get(f"/schema/{schema_name}")
59
+ r.raise_for_status()
60
+ return r.json()
61
+
62
+
63
+ @mcp.tool()
64
+ async def proxyml_put_schema(schema: dict, schema_name: str = "default") -> dict:
65
+ """Upload or replace a feature schema."""
66
+ async with _client() as c:
67
+ r = await c.put(f"/schema/{schema_name}", content=json.dumps(schema))
68
+ r.raise_for_status()
69
+ return r.json()
70
+
71
+
72
+ # ---------------------------------------------------------------------------
73
+ # Synthesis
74
+ # ---------------------------------------------------------------------------
75
+
76
+ @mcp.tool()
77
+ async def proxyml_synthesize_data(
78
+ num_points: int = 100,
79
+ schema_name: str = "default",
80
+ instance: list | None = None,
81
+ ) -> dict:
82
+ """Generate synthetic samples from the stored feature schema.
83
+
84
+ If instance is provided, blends schema samples with perturbations around
85
+ that point (useful for local explanations and counterfactual search).
86
+ Returns samples, feature_names, and feature_types.
87
+ """
88
+ async with _client() as c:
89
+ if instance is None:
90
+ payload = {"n": num_points, "schema_name": schema_name}
91
+ r = await c.post("/synthesize/neighbors", content=json.dumps(payload))
92
+ else:
93
+ payload = {"n": num_points, "instance": instance, "schema_name": schema_name}
94
+ r = await c.post("/synthesize/blended", content=json.dumps(payload))
95
+ r.raise_for_status()
96
+ return r.json()
97
+
98
+
99
+ # ---------------------------------------------------------------------------
100
+ # Surrogate model tools
101
+ # ---------------------------------------------------------------------------
102
+
103
+ @mcp.tool()
104
+ async def proxyml_train_surrogate(
105
+ samples: list[list],
106
+ predictions: list,
107
+ schema_name: str = "default",
108
+ task: str = "auto",
109
+ test_size: float = 0.2,
110
+ feature_names: list[str] | None = None,
111
+ name: str | None = None,
112
+ comments: str | None = None,
113
+ ) -> dict:
114
+ """Train a linear surrogate model on samples scored by the user's model.
115
+
116
+ samples: rows returned by proxyml_synthesize_data.
117
+ predictions: your model's output for each sample, in the same order.
118
+ task: 'classification', 'regression', or 'auto' (default).
119
+ Returns version ID, fidelity metrics, and any training warnings.
120
+ """
121
+ payload: dict = {
122
+ "samples": samples,
123
+ "predictions": predictions,
124
+ "schema_name": schema_name,
125
+ "task": task,
126
+ "test_size": test_size,
127
+ }
128
+ if feature_names is not None:
129
+ payload["feature_names"] = feature_names
130
+ if name is not None:
131
+ payload["name"] = name
132
+ if comments is not None:
133
+ payload["comments"] = comments
134
+ async with _client() as c:
135
+ r = await c.post("/surrogate/train", content=json.dumps(payload))
136
+ r.raise_for_status()
137
+ return r.json()
138
+
139
+
140
+ @mcp.tool()
141
+ async def proxyml_list_surrogates(limit: int = 50, offset: int = 0) -> dict:
142
+ """List trained surrogate models, newest first.
143
+
144
+ Returns model metadata (version ID, task, metrics, name, trained_at).
145
+ Use version IDs from here with other tools.
146
+ """
147
+ async with _client() as c:
148
+ r = await c.get("/surrogate/models", params={"limit": limit, "offset": offset})
149
+ r.raise_for_status()
150
+ return r.json()
151
+
152
+
153
+ # ---------------------------------------------------------------------------
154
+ # Explanation tools
155
+ # ---------------------------------------------------------------------------
156
+
157
+ @mcp.tool()
158
+ async def proxyml_get_summary(version: str | None = None) -> dict:
159
+ """Get feature importances and model summary for a surrogate.
160
+
161
+ Omit version to use the most recently trained model.
162
+ """
163
+ async with _client() as c:
164
+ params = {"version": version} if version is not None else {}
165
+ r = await c.get("/explain/summary", params=params)
166
+ r.raise_for_status()
167
+ return r.json()
168
+
169
+
170
+ @mcp.tool()
171
+ async def proxyml_explain_local(
172
+ instance: list,
173
+ version: str | None = None,
174
+ ) -> dict:
175
+ """Per-feature contribution breakdown for a single instance.
176
+
177
+ Returns prediction, feature_contributions (sorted by abs contribution),
178
+ intercept, and optionally probabilities and per-class contributions.
179
+ """
180
+ payload: dict = {"instance": instance}
181
+ if version is not None:
182
+ payload["version"] = version
183
+ async with _client() as c:
184
+ r = await c.post("/explain/local", content=json.dumps(payload))
185
+ r.raise_for_status()
186
+ return r.json()
187
+
188
+
189
+ @mcp.tool()
190
+ async def proxyml_find_counterfactual(
191
+ instance: list,
192
+ target_label: float | str,
193
+ n_neighbors: int = 10000,
194
+ perturbation_scale: float = 0.1,
195
+ version: str | None = None,
196
+ ) -> dict:
197
+ """Find a counterfactual: the nearest point that flips the prediction to target_label.
198
+
199
+ A counterfactual is not guaranteed — check the 'counterfactual' field in the
200
+ response (None means none was found within the search budget).
201
+ """
202
+ payload: dict = {
203
+ "instance": instance,
204
+ "target_label": target_label,
205
+ "n_neighbors": n_neighbors,
206
+ "perturbation_scale": perturbation_scale,
207
+ }
208
+ if version is not None:
209
+ payload["version"] = version
210
+ async with _client() as c:
211
+ r = await c.post("/explain/counterfactual", content=json.dumps(payload))
212
+ r.raise_for_status()
213
+ return r.json()
214
+
215
+
216
+ @mcp.tool()
217
+ async def proxyml_diff_models(version_a: str, version_b: str) -> dict:
218
+ """Compare feature importances between two surrogate versions.
219
+
220
+ Both surrogates must share the same task type and at least one feature.
221
+ """
222
+ async with _client() as c:
223
+ r = await c.get("/explain/diff", params={"version_a": version_a, "version_b": version_b})
224
+ r.raise_for_status()
225
+ return r.json()
226
+
227
+
228
+ @mcp.tool()
229
+ async def proxyml_detect_drift(
230
+ version_a: str,
231
+ version_b: str,
232
+ coefficient_threshold: float = 0.1,
233
+ fidelity_threshold: float = 0.05,
234
+ ) -> dict:
235
+ """Detect behavioural drift between two surrogate versions.
236
+
237
+ Calls diff_models and applies thresholds to produce a structured pass/fail
238
+ suitable for use in CI/CD pipelines.
239
+
240
+ coefficient_threshold: flag features whose absolute coefficient delta exceeds this (default 0.1).
241
+ fidelity_threshold: flag metrics that drop by more than this amount (default 0.05).
242
+
243
+ Returns:
244
+ passed: False if any feature or metric breach a threshold, or if features were added/removed.
245
+ flagged_features: features whose |delta| exceeded coefficient_threshold, sorted by |delta| desc.
246
+ metric_changes: per-metric deltas with a 'flagged' key where the drop exceeded fidelity_threshold.
247
+ features_added / features_removed: schema changes between versions.
248
+ summary: human-readable explanation of the result.
249
+ """
250
+ async with _client() as c:
251
+ r = await c.get("/explain/diff", params={"version_a": version_a, "version_b": version_b})
252
+ r.raise_for_status()
253
+ diff = r.json()
254
+
255
+ return interpret_diff(diff, version_a, version_b, coefficient_threshold, fidelity_threshold)
256
+
257
+
258
+ # ---------------------------------------------------------------------------
259
+ # Surrogate predictions
260
+ # ---------------------------------------------------------------------------
261
+
262
+ @mcp.tool()
263
+ async def proxyml_predict_batch(
264
+ instances: list[list],
265
+ version: str | None = None,
266
+ ) -> dict:
267
+ """Get surrogate model predictions for a list of instances.
268
+
269
+ Returns predictions in the same order as instances, along with the
270
+ model version used. Useful for comparing surrogate predictions against
271
+ a dev model's output on the same synthetic samples.
272
+ """
273
+ payload: dict = {"inputs": instances}
274
+ if version is not None:
275
+ payload["version"] = version
276
+ async with _client() as c:
277
+ r = await c.post("/surrogate/predict/batch", content=json.dumps(payload))
278
+ r.raise_for_status()
279
+ return r.json()
280
+
281
+
282
+ # ---------------------------------------------------------------------------
283
+ # Account
284
+ # ---------------------------------------------------------------------------
285
+
286
+ @mcp.tool()
287
+ async def proxyml_get_usage() -> dict:
288
+ """Return current tier, request count, and quota for the authenticated account.
289
+
290
+ Useful as a pre-flight check before expensive operations like training or
291
+ large synthesis runs.
292
+ """
293
+ async with _client() as c:
294
+ r = await c.get("/account/usage")
295
+ r.raise_for_status()
296
+ return r.json()
297
+
298
+
299
+ # ---------------------------------------------------------------------------
300
+ # Surrogate export and batch explanation
301
+ # ---------------------------------------------------------------------------
302
+
303
+ @mcp.tool()
304
+ async def proxyml_export_surrogate(version: str) -> dict:
305
+ """Export the full surrogate model: coefficients, intercepts, scaler params, and classes.
306
+
307
+ Returns everything needed to reconstruct the surrogate outside ProxyML.
308
+ Richer than proxyml_get_summary — use this for audit trails and governance reports.
309
+ """
310
+ async with _client() as c:
311
+ r = await c.get(f"/surrogate/models/{version}/export")
312
+ r.raise_for_status()
313
+ return r.json()
314
+
315
+
316
+ @mcp.tool()
317
+ async def proxyml_explain_local_batch(
318
+ instances: list[list],
319
+ version: str | None = None,
320
+ ) -> dict:
321
+ """Per-feature contribution breakdown for multiple instances in one call.
322
+
323
+ Equivalent to calling proxyml_explain_local for each instance, but more
324
+ efficient. Returns a 'results' list in the same order as instances.
325
+ """
326
+ payload: dict = {"instances": instances}
327
+ if version is not None:
328
+ payload["version"] = version
329
+ async with _client() as c:
330
+ r = await c.post("/explain/local/batch", content=json.dumps(payload))
331
+ r.raise_for_status()
332
+ return r.json()
333
+
334
+
335
+ # ---------------------------------------------------------------------------
336
+
337
+ def main() -> None:
338
+ mcp.run()
339
+
340
+
341
+ if __name__ == "__main__":
342
+ main()
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: mcp-proxyml
3
+ Version: 0.1.0
4
+ Summary: MCP server for the ProxyML API
5
+ Requires-Python: >=3.12
6
+ License-File: LICENSE
7
+ Requires-Dist: mcp[cli]>=1.0.0
8
+ Requires-Dist: httpx>=0.27.0
9
+ Requires-Dist: pandas>=1.5.0
10
+ Requires-Dist: numpy>=1.23.0
11
+ Provides-Extra: dev
12
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
13
+ Dynamic: license-file
@@ -0,0 +1,10 @@
1
+ mcp_proxyml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mcp_proxyml/drift.py,sha256=yWhWSZLRYfWgIcET1w1EsIvYUh_HwO3wbRpWmC6A2yU,2433
3
+ mcp_proxyml/schema.py,sha256=rGsSGh2bi9t9MifqLDBWmwAOOBz4pCTwTfwT28eJ9hk,1916
4
+ mcp_proxyml/server.py,sha256=h0_UJhFEFbRFzwpD0AE90sRlkiB8kL6NZQvSZUmL0Co,11713
5
+ mcp_proxyml-0.1.0.dist-info/licenses/LICENSE,sha256=g3kg6VH6Fi9-VhRB0ZYTPsVKUAMx7D9UsoZMJ_KZtko,10196
6
+ mcp_proxyml-0.1.0.dist-info/METADATA,sha256=Kbs06kU52wa2PIUHe5gkLwPhy331r7h0hoEjkbC5M40,346
7
+ mcp_proxyml-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
8
+ mcp_proxyml-0.1.0.dist-info/entry_points.txt,sha256=NmXQeVAJJIZRlKkbA4iWp9e4uUnu6vuqmjfCey-2iGg,56
9
+ mcp_proxyml-0.1.0.dist-info/top_level.txt,sha256=n7UssK6mKe-493WWY_28vtXFK98fyD3zTw6V0UWVvE8,12
10
+ mcp_proxyml-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mcp-proxyml = mcp_proxyml.server:main
@@ -0,0 +1,183 @@
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 made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
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, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of developing and
55
+ discussing the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any other
81
+ Contribution incorporated within the Work constitutes patent or
82
+ contributory patent infringement, then any patent licenses granted to
83
+ You under this License for that Work shall terminate as of the date
84
+ such litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or in addition to the
115
+ NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the
121
+ Contribution and such Derivative Works.
122
+
123
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
124
+ any Contribution intentionally submitted for inclusion in the Work
125
+ by You to the Licensor shall be under the terms and conditions of
126
+ this License, without any additional terms or conditions.
127
+ Notwithstanding the above, nothing herein shall supersede or modify
128
+ the terms of any separate license agreement you may have executed
129
+ with Licensor regarding such Contributions.
130
+
131
+ 6. Trademarks. This License does not grant permission to use the trade
132
+ names, trademarks, service marks, or product names of the Licensor,
133
+ except as required for reasonable and customary use in describing the
134
+ origin of the Work and reproducing the content of the NOTICE file.
135
+
136
+ 7. Disclaimer of Warranty. Unless required by applicable law or
137
+ agreed to in writing, Licensor provides the Work (and each
138
+ Contributor provides its Contributions) on an "AS IS" BASIS,
139
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
140
+ implied, including, without limitation, any conditions of TITLE,
141
+ NONINFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
142
+ PURPOSE. You are solely responsible for determining the
143
+ appropriateness of using or reproducing the Work and assume any
144
+ risks associated with Your exercise of permissions under this License.
145
+
146
+ 8. Limitation of Liability. In no event and under no legal theory,
147
+ whether in tort (including negligence), contract, or otherwise,
148
+ unless required by applicable law (such as deliberate and grossly
149
+ negligent acts) or agreed to in writing, shall any Contributor be
150
+ liable to You for damages, including any direct, indirect, special,
151
+ incidental, or exemplary damages of any character arising as a
152
+ result of this License or out of the use or inability to use the
153
+ Work (including but not limited to damages for loss of goodwill,
154
+ work stoppage, computer failure or malfunction, or all other
155
+ commercial damages or losses), even if such Contributor has been
156
+ advised of the possibility of such damages.
157
+
158
+ 9. Accepting Warranty or Additional Liability. While redistributing
159
+ the Work or Derivative Works thereof, You may choose to offer,
160
+ and charge a fee for, acceptance of support, warranty, indemnity,
161
+ or other liability obligations and/or rights consistent with this
162
+ License. However, in accepting such obligations, You may charge only
163
+ on Your own behalf and on Your sole responsibility, not on behalf of
164
+ any other Contributor, and only if You agree to indemnify, defend,
165
+ and hold each Contributor harmless for any liability incurred by,
166
+ or claims asserted against, such Contributor by reason of your
167
+ accepting any warranty or additional liability.
168
+
169
+ END OF TERMS AND CONDITIONS
170
+
171
+ Copyright 2026 ProxyML
172
+
173
+ Licensed under the Apache License, Version 2.0 (the "License");
174
+ you may not use this file except in compliance with the License.
175
+ You may obtain a copy of the License at
176
+
177
+ http://www.apache.org/licenses/LICENSE-2.0
178
+
179
+ Unless required by applicable law or agreed to in writing, software
180
+ distributed under the License is distributed on an "AS IS" BASIS,
181
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
182
+ See the License for the specific language governing permissions and
183
+ limitations under the License.
@@ -0,0 +1 @@
1
+ mcp_proxyml