scientific-toolkit 0.5.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.
- scientific_toolkit-0.5.0.dist-info/METADATA +429 -0
- scientific_toolkit-0.5.0.dist-info/RECORD +16 -0
- scientific_toolkit-0.5.0.dist-info/WHEEL +5 -0
- scientific_toolkit-0.5.0.dist-info/entry_points.txt +3 -0
- scientific_toolkit-0.5.0.dist-info/licenses/LICENSE +21 -0
- scientific_toolkit-0.5.0.dist-info/top_level.txt +1 -0
- scientific_toolkit_mcp/__init__.py +3 -0
- scientific_toolkit_mcp/__main__.py +4 -0
- scientific_toolkit_mcp/catalog.py +91 -0
- scientific_toolkit_mcp/http_server.py +409 -0
- scientific_toolkit_mcp/oauth.py +113 -0
- scientific_toolkit_mcp/production_probe.py +182 -0
- scientific_toolkit_mcp/py.typed +0 -0
- scientific_toolkit_mcp/server.py +172 -0
- scientific_toolkit_mcp/strict_json.py +52 -0
- scientific_toolkit_mcp/tools.py +654 -0
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: scientific-toolkit
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Provider-neutral MCP gateway for Furox-Art scientific and verification tools
|
|
5
|
+
Author: Furox-Art
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Furox-Art/scientific-toolkit
|
|
8
|
+
Project-URL: Issues, https://github.com/Furox-Art/scientific-toolkit/issues
|
|
9
|
+
Project-URL: Documentation, https://github.com/Furox-Art/scientific-toolkit/blob/main/README.md
|
|
10
|
+
Project-URL: Source, https://github.com/Furox-Art/scientific-toolkit
|
|
11
|
+
Project-URL: Repository, https://github.com/Furox-Art/scientific-toolkit
|
|
12
|
+
Keywords: model-context-protocol,mcp,mcp-server,mcp-gateway,scientific-computing,ai-agents,research-tools,python,interoperability,agent-skills
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Provides-Extra: oauth
|
|
25
|
+
Requires-Dist: PyJWT[crypto]<3,>=2.15.1; extra == "oauth"
|
|
26
|
+
Provides-Extra: test
|
|
27
|
+
Requires-Dist: pytest>=9.1.1; extra == "test"
|
|
28
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == "test"
|
|
29
|
+
Requires-Dist: mcp<3,>=2.3.0; extra == "test"
|
|
30
|
+
Requires-Dist: setuptools>=84.2.0; extra == "test"
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# Furox Scientific Toolkit ÔÇö MCP Gateway
|
|
34
|
+
|
|
35
|
+
**Provider-neutral Model Context Protocol gateway with 10 adapters and a catalog of 13 public Furox-Art projects.**
|
|
36
|
+
The upstream packages stay independent, with their original names and version histories.
|
|
37
|
+
This repository is an integration hub, not a merge of source trees.
|
|
38
|
+
|
|
39
|
+
Project website: [Furox Scientific Toolkit](https://www.furoxscientifictoolkit.lovie.me/).
|
|
40
|
+
Published Python package: [scientific-toolkit on PyPI](https://pypi.org/project/scientific-toolkit/).
|
|
41
|
+
|
|
42
|
+
## Names
|
|
43
|
+
|
|
44
|
+
The repository, PyPI project, import module and console script use different
|
|
45
|
+
spellings. They all refer to this one gateway.
|
|
46
|
+
|
|
47
|
+
| Surface | Name |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| GitHub repository | `scientific-toolkit` |
|
|
50
|
+
| PyPI project | `scientific-toolkit` |
|
|
51
|
+
| Python import | `scientific_toolkit_mcp` |
|
|
52
|
+
| Console script | `scientific-toolkit` |
|
|
53
|
+
| Legacy console script | `scientific-toolkit-mcp` |
|
|
54
|
+
| Source version | 0.5.0 |
|
|
55
|
+
|
|
56
|
+
The distribution is published as `scientific-toolkit`. The legacy
|
|
57
|
+
`scientific-toolkit-mcp` project remains available for existing installs;
|
|
58
|
+
both point to the same import module `scientific_toolkit_mcp`.
|
|
59
|
+
|
|
60
|
+
The earlier `furox-scientific-toolkit-mcp` project was removed from PyPI and is
|
|
61
|
+
no longer installable; `scientific-toolkit` replaces it with the same import
|
|
62
|
+
name and console script.
|
|
63
|
+
|
|
64
|
+
**Status:** local stdio and authenticated stateless Streamable HTTP transports
|
|
65
|
+
are implemented. The public Render deployment
|
|
66
|
+
[`https://scientific-toolkit.onrender.com/health`](https://scientific-toolkit.onrender.com/health)
|
|
67
|
+
publishes only `status` and `transport`, not a version or tool inventory, so it
|
|
68
|
+
cannot attest which release is deployed. CI checks that endpoint and the
|
|
69
|
+
anonymous-401 refusal of MCP calls on every run; those checks prove deployment
|
|
70
|
+
plumbing, **not** scientific correctness or external Claude/ChatGPT client login.
|
|
71
|
+
The 0.5.0 source is awaiting deployment verification on that service. OAuth
|
|
72
|
+
issuer/JWKS remains **not configured**.
|
|
73
|
+
|
|
74
|
+
## Public projects and MCP adapters
|
|
75
|
+
|
|
76
|
+
| Public repository | Role | MCP tool(s) |
|
|
77
|
+
| --- | --- | --- |
|
|
78
|
+
| [axiomize](https://github.com/Furox-Art/axiomize) | Scientific models and verification | `axiomize_intake`, `axiomize_model` |
|
|
79
|
+
| [scientific-computing-system](https://github.com/Furox-Art/scientific-computing-system) | Pure-Python numerical computation | `cds_stats` |
|
|
80
|
+
| [scientific-computing-system-2.0](https://github.com/Furox-Art/scientific-computing-system-2.0) | NumPy/SciPy computation | `cds2_stats` |
|
|
81
|
+
| [plan-auditor](https://github.com/Furox-Art/plan-auditor) | Independent execution verification | `plan_auditor_inspect`, `plan_auditor_audit` |
|
|
82
|
+
| [quantum-reasoning-skill](https://github.com/Furox-Art/quantum-reasoning-skill) | Reasoning protocol/skill inspector | `quantum_skill_validate` |
|
|
83
|
+
| [axiomize-quantum-skills-2.0](https://github.com/Furox-Art/axiomize-quantum-skills-2.0) | Bundled modeling + branch-scoring controller | `axiomize_reason_score` |
|
|
84
|
+
| [eq-layer](https://github.com/Furox-Art/eq-layer) | Response-control and intent routing | `eq_layer_route` |
|
|
85
|
+
| [literature-evidence-mcp](https://github.com/Furox-Art/literature-evidence-mcp) | Literature search and evidence-provenance checks over MCP stdio | `literature_evidence_search`, `literature_evidence_verify_quote` |
|
|
86
|
+
| [evidence-ledger-policy-gate](https://github.com/Furox-Art/evidence-ledger-policy-gate) | Deterministic security reasoning, evidence ledger and fail-closed policy gate | `nomosguard_decide` |
|
|
87
|
+
| [scientific-reasoning-auditor](https://github.com/Furox-Art/scientific-reasoning-auditor) | Offline Markdown manuscript and evidence screening | `sra_audit_manuscript` |
|
|
88
|
+
| [polyglot-python](https://github.com/Furox-Art/polyglot-python) | Localized Python keywords | Independent CLI |
|
|
89
|
+
| [polyglot-code-guard](https://github.com/Furox-Art/polyglot-code-guard) | Local build and test verification | Independent CLI |
|
|
90
|
+
| [deterministic-recipe-scaffolder](https://github.com/Furox-Art/deterministic-recipe-scaffolder) | Python project scaffolding from validated specs | Independent CLI |
|
|
91
|
+
|
|
92
|
+
`axiomize-quantum-skills-2.0` already packages Axiomize, so this hub does **not**
|
|
93
|
+
register its Axiomize MCP tools a second time. `quantum-reasoning-skill` is a skill
|
|
94
|
+
protocol, not a quantum computer or a validated performance improvement. EQ-Layer is
|
|
95
|
+
communication-control infrastructure, not a scientific data validator. The two MCP-native
|
|
96
|
+
upstreams are driven over stdio by the gateway; `literature_evidence_search` needs
|
|
97
|
+
network access. Quote verification, evidence-ledger-policy-gate decisions, and manuscript audits run locally.
|
|
98
|
+
For manuscript audits, send inline Markdown in the `content` field (up to 12,000 characters).
|
|
99
|
+
The audit returns advisory findings with evidence references. The three independent
|
|
100
|
+
developer CLIs are listed in the catalog and installed separately.
|
|
101
|
+
|
|
102
|
+
## Local installation
|
|
103
|
+
|
|
104
|
+
Requires **Python 3.11+**. Install the published MCP gateway from PyPI,
|
|
105
|
+
or install it in editable mode from a source checkout for development:
|
|
106
|
+
|
|
107
|
+
```sh
|
|
108
|
+
python -m pip install scientific-toolkit
|
|
109
|
+
# For a source checkout instead: python -m pip install -e .
|
|
110
|
+
# Select upstream packages you actually need:
|
|
111
|
+
python -m pip install axiomize scientific-computing-system
|
|
112
|
+
python -m pip install scientific-computing-system-2.0
|
|
113
|
+
python -m pip install plan-auditor quantum-reasoning-skill eq-layer
|
|
114
|
+
python -m pip install literature-evidence-mcp evidence-ledger-policy-gate scientific-reasoning-auditor
|
|
115
|
+
# The bundled Axiomize/quantum package may replace the standalone
|
|
116
|
+
# Axiomize CLI. Install it in a separate environment (below).
|
|
117
|
+
python -m scientific_toolkit_mcp
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
To enable the bundled reasoning controller separately, create a dedicated virtual
|
|
121
|
+
environment and install `axiomize-quantum-skills-2.0` there. Then set
|
|
122
|
+
`SCITOOL_REASON_BIN` to that environment's `axiomize-reason` executable.
|
|
123
|
+
This avoids the shared `axiomize` CLI clashing with standalone Axiomize.
|
|
124
|
+
|
|
125
|
+
The final command starts an **MCP stdio process**. It waits for JSON-RPC requests on
|
|
126
|
+
stdin and writes JSON-RPC only to stdout; it is not a text chat or HTTP server.
|
|
127
|
+
|
|
128
|
+
**Any compatible local stdio MCP client:** add this server to your MCP
|
|
129
|
+
configuration (adjust `python` or use the absolute path to the correct venv Python):
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"mcpServers": {
|
|
134
|
+
"scientific-toolkit": {
|
|
135
|
+
"command": "python",
|
|
136
|
+
"args": ["-m", "scientific_toolkit_mcp"]
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
In a running MCP client, call `toolkit_catalog` to see all 13 projects, and
|
|
143
|
+
`toolkit_doctor` to check which upstream executables and module servers are installed. Missing packages
|
|
144
|
+
produce explicit `NOT_INSTALLED` errors rather than fabricated data.
|
|
145
|
+
|
|
146
|
+
The npm package provides a command for the matching Python install. Install the
|
|
147
|
+
Python package in an active environment, then install the Node command with
|
|
148
|
+
`npm install -g scientific-toolkit`. Set `SCITOOL_PYTHON` to select a Python executable.
|
|
149
|
+
|
|
150
|
+
## Remote MCP: provider-neutral Streamable HTTP
|
|
151
|
+
|
|
152
|
+
The 13-project catalog is available through compatible remote MCP clients using
|
|
153
|
+
`POST /mcp` (stateless JSON-RPC), when authenticated. `GET /health` is public.
|
|
154
|
+
A Render deployment currently serves `https://scientific-toolkit.onrender.com/mcp`;
|
|
155
|
+
use the private credential configured in Render and **never publish that token**.
|
|
156
|
+
To run your own instance instead:
|
|
157
|
+
|
|
158
|
+
```sh
|
|
159
|
+
# Generate a long random secret outside the repo and store it as a provider secret.
|
|
160
|
+
# Supply SCITOOL_MCP_BEARER_TOKEN through environment configuration.
|
|
161
|
+
python -m scientific_toolkit_mcp.http_server
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Required variable: `SCITOOL_MCP_BEARER_TOKEN` (nonempty, kept outside Git).
|
|
165
|
+
Optional variables: `PORT` (default `8000`) and `SCITOOL_ALLOWED_ORIGINS`
|
|
166
|
+
(comma-separated exact origin URLs). **No web origin is allowed by default.**
|
|
167
|
+
Non-browser clients normally omit `Origin`; browser-origin requests require a
|
|
168
|
+
configured allowlist entry and receive restricted CORS headers. Do not put
|
|
169
|
+
bearer secrets in browser JavaScript or check them into a Git repository.
|
|
170
|
+
Set `SCITOOL_TRUST_PROXY=1` only when a reverse proxy appends the peer address
|
|
171
|
+
to a single `X-Forwarded-For` header; rate limiting then keys on its rightmost
|
|
172
|
+
valid address instead of the proxy's socket address. Leave it unset when
|
|
173
|
+
clients can reach the server directly.
|
|
174
|
+
Use TLS/HTTPS at the hosting reverse proxy and restrict access to trusted users.
|
|
175
|
+
|
|
176
|
+
Remote clients must support **MCP Streamable HTTP and an explicit bearer-token
|
|
177
|
+
header**. Use the URL `https://YOUR-HOST/mcp` and set
|
|
178
|
+
`Authorization: Bearer YOUR_SECRET` in that client's supported configuration.
|
|
179
|
+
Some clients require OAuth discovery/registration instead and therefore **cannot
|
|
180
|
+
connect directly** to this bearer-only server without an OAuth-compatible proxy.
|
|
181
|
+
This is a client capability distinction, not a Claude/ChatGPT/Cursor restriction.
|
|
182
|
+
|
|
183
|
+
The `toolkit_catalog` covers all 13 projects. Authenticated HTTP clients
|
|
184
|
+
may call the **read-only** `plan_auditor_inspect` only after the administrator
|
|
185
|
+
configures `SCITOOL_WORKSPACE_DIR` to a trusted existing project directory.
|
|
186
|
+
`plan_auditor_audit` can execute arbitrary project verification code and therefore
|
|
187
|
+
remains **local-only** (14 remote tools out of 15 local tools). Setting
|
|
188
|
+
`SCITOOL_ALLOW_AUDIT_EXECUTION=1` does **not** override this HTTP safeguard. Missing upstream CLI packages return
|
|
189
|
+
`NOT_INSTALLED`, never a fabricated PASS. Install the desired upstream packages
|
|
190
|
+
in your deployment and use isolated environments for colliding Axiomize CLIs.
|
|
191
|
+
No hosting fees are necessary to use the local stdio gateway.
|
|
192
|
+
|
|
193
|
+
### Portability
|
|
194
|
+
|
|
195
|
+
- Local: Claude Desktop, Cursor, Codex, and other stdio-capable MCP clients
|
|
196
|
+
(configure each with its own supported launcher settings). This is protocol-level
|
|
197
|
+
portability, not proof that a particular client's end-to-end setup was tested.
|
|
198
|
+
- Remote: any Streamable-HTTP MCP client that accepts a custom bearer header.
|
|
199
|
+
- Model-agnostic: the MCP server performs no proprietary LLM calls or inference.
|
|
200
|
+
- Cross-application compatibility still requires live client-specific testing.
|
|
201
|
+
|
|
202
|
+
## Optional executable overrides
|
|
203
|
+
|
|
204
|
+
For independent virtual environments, set environment variables to **executable
|
|
205
|
+
paths only**, not commands with arguments:
|
|
206
|
+
|
|
207
|
+
| Environment variable | Default executable |
|
|
208
|
+
| --- | --- |
|
|
209
|
+
| `SCITOOL_AXIOMIZE_BIN` | `axiomize` |
|
|
210
|
+
| `SCITOOL_CDS_BIN` | `cds` |
|
|
211
|
+
| `SCITOOL_CDS2_BIN` | `cds2` |
|
|
212
|
+
| `SCITOOL_AUDITOR_BIN` | `plan-auditor` |
|
|
213
|
+
| `SCITOOL_QUANTUM_BIN` | `quantum-reasoning` |
|
|
214
|
+
| `SCITOOL_REASON_BIN` | `axiomize-reason` |
|
|
215
|
+
| `SCITOOL_EQ_BIN` | `eq-layer` |
|
|
216
|
+
| `SCITOOL_LIT_EVIDENCE_BIN` | `literature-evidence-mcp` |
|
|
217
|
+
| `SCITOOL_SRA_BIN` | `sra` |
|
|
218
|
+
| `SCITOOL_NOMOSGUARD_BIN` | the running Python interpreter (`python -m nomosguard.mcp_stdio`) |
|
|
219
|
+
|
|
220
|
+
### Upstream distribution pins
|
|
221
|
+
|
|
222
|
+
The bundled Axiomize variant installs its own top-level `axiomize` module, so
|
|
223
|
+
an isolated install directory that reaches `sys.path` (for example through
|
|
224
|
+
`PYTHONPATH`) can silently replace the standalone Axiomize distribution. The
|
|
225
|
+
gateway therefore treats `axiomize` as a **pinned distribution**: when more than
|
|
226
|
+
one `sys.path` entry provides the `axiomize` module, `axiomize` tool calls fail
|
|
227
|
+
with a loud `BAD_CONFIGURATION` error instead of running whichever distribution
|
|
228
|
+
happens to come first. `SCITOOL_PIN_AXIOMIZE` additionally pins the exact
|
|
229
|
+
expected version (for example `SCITOOL_PIN_AXIOMIZE=1.12.5`), and a resolved
|
|
230
|
+
version that differs fails the call. A missing executable still reports
|
|
231
|
+
`NOT_INSTALLED`.
|
|
232
|
+
|
|
233
|
+
### Verification safety
|
|
234
|
+
|
|
235
|
+
The Plan Auditor `audit` operation executes the plan's configured checks. It is
|
|
236
|
+
**disabled by default**. To opt in for a trusted local workspace, configure both:
|
|
237
|
+
|
|
238
|
+
- `SCITOOL_WORKSPACE_DIR`: an already-existing trusted project directory
|
|
239
|
+
- `SCITOOL_ALLOW_AUDIT_EXECUTION=1`: grants the audit tool permission to run those checks
|
|
240
|
+
|
|
241
|
+
`plan_auditor_inspect` also requires the configured workspace but does not
|
|
242
|
+
assert task completion. All executable commands use fixed allowlisted command
|
|
243
|
+
forms and `subprocess` **without a shell**. No user-selected paths or arbitrary
|
|
244
|
+
command strings are accepted via MCP. Restrict access to the client session:
|
|
245
|
+
the HTTP gateway requires authentication and never exposes the executable audit tool.
|
|
246
|
+
It exposes read-only plan inspection only for a configured trusted workspace.
|
|
247
|
+
|
|
248
|
+
## Scope, evidence, and limitations
|
|
249
|
+
|
|
250
|
+
- Axiomize `model` operations require the actual upstream Model IR request; the
|
|
251
|
+
gateway does not invent missing model assumptions or validation outcomes.
|
|
252
|
+
- The two numerical packages have independent statistics adapters; their
|
|
253
|
+
outputs and numerical algorithms are not silently conflated.
|
|
254
|
+
- Each subprocess response includes exit code and stdout. Nonzero exit codes
|
|
255
|
+
are MCP errors, and `UNKNOWN` is never promoted to a successful verification.
|
|
256
|
+
- The bundled reasoning tool's thresholds remain uncalibrated reference defaults.
|
|
257
|
+
- Any compatible AI client can serve as an **orchestrator**, not the validator:
|
|
258
|
+
scientific claims still require reproducible numerical and empirical evidence.
|
|
259
|
+
- This repo does not represent an incorporated legal company or promise Claude
|
|
260
|
+
startup program eligibility. No deployment costs have been paid.
|
|
261
|
+
|
|
262
|
+
## Tests
|
|
263
|
+
|
|
264
|
+
```sh
|
|
265
|
+
python -m pip install -e ".[test]"
|
|
266
|
+
python -m pytest -q -rs tests/
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
The `test` extra is declared in `pyproject.toml` and matches the CI install
|
|
270
|
+
(pytest, pytest-cov, `mcp>=2,<3` and setuptools).
|
|
271
|
+
|
|
272
|
+
CI exercises JSON-RPC initialization, list/call, 13-project catalog,
|
|
273
|
+
input validation, fail-closed audit defaults, upstream failures, and fake-CLI
|
|
274
|
+
transport. The fake executable tests validate the **integration plumbing**;
|
|
275
|
+
actual upstream numerical correctness remains the responsibility of each
|
|
276
|
+
repository's own tests and a future cross-package integration suite.
|
|
277
|
+
|
|
278
|
+
The availability-report unit test (`tests/test_availability_report.py`) is
|
|
279
|
+
**hermetic**: it regenerates the report inside a fixed synthetic environment
|
|
280
|
+
where nothing upstream is installed ÔÇö an empty `PATH` and working directory,
|
|
281
|
+
every `SCITOOL_*` variable removed and each executable override pointed at a
|
|
282
|
+
nonexistent sentinel program (this also neutralises the module-server
|
|
283
|
+
`sys.executable` default), `PYTHONPATH` cleared, and the report's package
|
|
284
|
+
metadata handle stubbed so no distribution looks registered. Real upstream
|
|
285
|
+
CLIs present on the host ÔÇö or overrides exported by CI ÔÇö therefore cannot
|
|
286
|
+
change the outcome: all ten upstream records must be unverified KNOWN GAPs
|
|
287
|
+
and all nine fail-closed checks must still refuse in-process with their
|
|
288
|
+
documented markers. No upstream subprocess or network call is reached.
|
|
289
|
+
Capturing *real-machine* availability remains the job of
|
|
290
|
+
`scripts/availability_report.py` and of `tests/e2e`, which deliberately drive
|
|
291
|
+
the installed tools.
|
|
292
|
+
|
|
293
|
+
## Independent integration evidence
|
|
294
|
+
|
|
295
|
+
Three CI suites provide progressively stronger, but limited, verification:
|
|
296
|
+
|
|
297
|
+
1. [Protocol/unit tests](https://github.com/Furox-Art/scientific-toolkit/actions/workflows/tests.yml)
|
|
298
|
+
check stdio and authenticated HTTP handling, argument validation, safe defaults,
|
|
299
|
+
and fail-closed errors. Fake CLI tests are plumbing tests, not scientific evidence.
|
|
300
|
+
2. [Upstream source smoke checks](https://github.com/Furox-Art/scientific-toolkit/actions/workflows/real-upstream.yml)
|
|
301
|
+
install all ten adapter projects from GitHub source separately and invoke their real
|
|
302
|
+
adapters (CLIs or MCP stdio servers) through the gateway. The Plan Auditor profile checks the installed CLI and refusal
|
|
303
|
+
to audit an unconfigured plan, *not* successful verification of research.
|
|
304
|
+
This workflow also checks the live Render `/health` route and ensures that
|
|
305
|
+
unauthenticated MCP tool calls receive HTTP 401.
|
|
306
|
+
3. [Official SDK interoperability](https://github.com/Furox-Art/scientific-toolkit/actions/workflows/sdk-client.yml)
|
|
307
|
+
starts a temporary authenticated HTTP server, connects with the official MCP
|
|
308
|
+
Python client, negotiates a session, enumerates the fourteen remote-safe tools,
|
|
309
|
+
and calls `toolkit_catalog`. A generated CI-only token is used.
|
|
310
|
+
|
|
311
|
+
**Deployment scope:** CI tests both isolated packages and all ten adapters installed
|
|
312
|
+
in one environment. The live Render `/health` route proves only that the service
|
|
313
|
+
answers with `status: ok` and `transport: streamable-http`, and that an anonymous
|
|
314
|
+
MCP call receives HTTP 401; neither check reveals the deployed version or the
|
|
315
|
+
installed tool set. The 0.5.0 probe expects ten upstream adapters and fourteen remote tools.
|
|
316
|
+
No external ChatGPT/Claude OAuth sign-in was tested. The optional OAuth
|
|
317
|
+
resource verifier is implemented, but a trusted authorization server
|
|
318
|
+
must still be connected before OAuth-based clients can log in. Never
|
|
319
|
+
publish or transmit the production bearer secret in GitHub or screenshots.
|
|
320
|
+
|
|
321
|
+
## Deploy the ten upstream adapter packages on Render
|
|
322
|
+
|
|
323
|
+
The currently published Render service originally installed only the MCP gateway
|
|
324
|
+
with `pip install -e .`. This repository now includes a separate installation
|
|
325
|
+
script that installs eight upstream distributions into the system environment and
|
|
326
|
+
the bundled Axiomize variant into an isolated package directory. To apply this to the
|
|
327
|
+
**existing** service, set its **Build Command** in Render to:
|
|
328
|
+
|
|
329
|
+
```sh
|
|
330
|
+
bash scripts/render-build.sh
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
Keep its **Start Command** unchanged:
|
|
334
|
+
|
|
335
|
+
```sh
|
|
336
|
+
python -m scientific_toolkit_mcp.http_server
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Do **not** replace or reveal the existing `SCITOOL_MCP_BEARER_TOKEN`.
|
|
340
|
+
Rebuild/redeploy the existing free service after changing the build command.
|
|
341
|
+
**Reproducibility.** `scripts/render-build.sh` is not pinned the same way in both
|
|
342
|
+
branches. Under GitHub Actions (`GITHUB_ACTIONS=true`) it installs the eight sibling
|
|
343
|
+
projects from immutable full commit SHAs, each annotated with the release tag it
|
|
344
|
+
resolves to; on Render it installs the released PyPI distributions without commit
|
|
345
|
+
pins. A Render rebuild therefore reflects registry state at build time, while the CI
|
|
346
|
+
full-stack workflow is reproducible against the recorded commits.
|
|
347
|
+
|
|
348
|
+
The [full-stack installation workflow](https://github.com/Furox-Art/scientific-toolkit/actions/workflows/full-stack-install.yml)
|
|
349
|
+
checks eight real adapter invocations plus a fail-closed plan-auditor smoke check in one CI
|
|
350
|
+
environment. That does not prove all
|
|
351
|
+
dependencies fit the Render Free 512 MB runtime limit or that production has
|
|
352
|
+
installed them: inspect Render build logs and run authenticated calls separately.
|
|
353
|
+
If the host runs out of memory, use separate workers or a larger instance rather
|
|
354
|
+
than claiming all ten upstream adapters are running.
|
|
355
|
+
|
|
356
|
+
## Optional OAuth 2.1 resource-server support
|
|
357
|
+
|
|
358
|
+
The public HTTP gateway supports **opt-in verification** of RS256-signed OAuth
|
|
359
|
+
access tokens from an actual independently configured identity provider. It
|
|
360
|
+
exposes `/.well-known/oauth-protected-resource/mcp` and includes protected
|
|
361
|
+
resource metadata in unauthorized responses **only when configured**.
|
|
362
|
+
|
|
363
|
+
The OAuth verifier requires `pip install -e '.[oauth]'` (included in the Render
|
|
364
|
+
build script) and all of these private Render environment settings:
|
|
365
|
+
|
|
366
|
+
| Environment variable | Configuration |
|
|
367
|
+
| --- | --- |
|
|
368
|
+
| `SCITOOL_OAUTH_ISSUER` | Trusted provider's HTTPS issuer URI |
|
|
369
|
+
| `SCITOOL_OAUTH_JWKS_URI` | Provider's HTTPS public JWKS endpoint |
|
|
370
|
+
| `SCITOOL_OAUTH_RESOURCE_URI` | `https://scientific-toolkit.onrender.com/mcp` |
|
|
371
|
+
| `SCITOOL_OAUTH_REQUIRED_SCOPE` | `mcp:tools` (provider must issue it) |
|
|
372
|
+
|
|
373
|
+
The gateway checks signature, audience, issuer, subject, expiration and scope,
|
|
374
|
+
and still recognizes the administrator's original bearer token. The server
|
|
375
|
+
does **not** issue tokens, run an OAuth consent screen or register clients.
|
|
376
|
+
A production identity provider must separately support proper OAuth 2.1,
|
|
377
|
+
PKCE, client registration/metadata and audience-bound access tokens.
|
|
378
|
+
An OAuth login via Claude or ChatGPT is **not yet confirmed** and must not
|
|
379
|
+
be advertised as active without a real IdP and app-specific authentication test.
|
|
380
|
+
|
|
381
|
+
## Python package and PyPI publishing
|
|
382
|
+
|
|
383
|
+
The gateway's Python distribution is named [`scientific-toolkit-mcp`](https://pypi.org/project/scientific-toolkit-mcp/)
|
|
384
|
+
at source version `0.5.0`,
|
|
385
|
+
with import name `scientific_toolkit_mcp`.
|
|
386
|
+
|
|
387
|
+
```sh
|
|
388
|
+
python -m pip install scientific-toolkit
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
Publishing the MCP gateway does not by itself verify integration with Claude
|
|
392
|
+
or any other hosted AI client. Claude may be used as an orchestration client
|
|
393
|
+
where MCP transport and authentication are properly configured; a production
|
|
394
|
+
Claude OAuth sign-in and end-to-end client integration have not been verified.
|
|
395
|
+
|
|
396
|
+
The token-free GitHub Actions release workflow includes tests, sdist/wheel
|
|
397
|
+
building, metadata validation, and an installed-wheel smoke test. See
|
|
398
|
+
[PyPI publishing setup](docs/pypi-publishing.md) for the exact publisher fields
|
|
399
|
+
and release procedure.
|
|
400
|
+
|
|
401
|
+
Installing the gateway does not install the ten upstream adapters:
|
|
402
|
+
use `toolkit_doctor` to distinguish available programs from missing ones.
|
|
403
|
+
|
|
404
|
+
## Related projects
|
|
405
|
+
|
|
406
|
+
Part of the Furox scientific-computing portfolio: independently versioned projects that pair agent-facing interfaces (MCP servers and Agent Skills) with deterministic, fail-closed verification.
|
|
407
|
+
|
|
408
|
+
- [scientific-computing-system](https://github.com/Furox-Art/scientific-computing-system) ÔÇö zero-dependency Python numerics with run manifests.
|
|
409
|
+
- [scientific-computing-system-2.0](https://github.com/Furox-Art/scientific-computing-system-2.0) ÔÇö NumPy/SciPy/pandas build with replayable fit records.
|
|
410
|
+
- [axiomize](https://github.com/Furox-Art/axiomize) ÔÇö unit-checked modeling engine with SBML, CellML and Modelica export.
|
|
411
|
+
- [axiomize-quantum-skills-2.0](https://github.com/Furox-Art/axiomize-quantum-skills-2.0) ÔÇö modeling engine plus quantum-inspired reasoning bundle.
|
|
412
|
+
- [quantum-reasoning-skill](https://github.com/Furox-Art/quantum-reasoning-skill) ÔÇö agent skill that keeps competing hypotheses alive.
|
|
413
|
+
- [plan-auditor](https://github.com/Furox-Art/plan-auditor) ÔÇö evidence-based completion gate for coding agents.
|
|
414
|
+
- [evidence-ledger-policy-gate](https://github.com/Furox-Art/evidence-ledger-policy-gate) ÔÇö deterministic security decision layer with a hash-chained ledger.
|
|
415
|
+
- [eq-layer](https://github.com/Furox-Art/eq-layer) ÔÇö interaction-policy layer that decides how an agent speaks.
|
|
416
|
+
- [literature-evidence-mcp](https://github.com/Furox-Art/literature-evidence-mcp) ÔÇö literature MCP server with a hash-chained evidence ledger.
|
|
417
|
+
- [deterministic-recipe-scaffolder](https://github.com/Furox-Art/deterministic-recipe-scaffolder) ÔÇö byte-deterministic project scaffolding.
|
|
418
|
+
|
|
419
|
+
## Repository and license
|
|
420
|
+
|
|
421
|
+
Project: https://github.com/Furox-Art/scientific-toolkit
|
|
422
|
+
|
|
423
|
+
The MCP gateway is licensed under **MIT License**, as recorded in the
|
|
424
|
+
repository root `LICENSE`. Previously published releases retain their original
|
|
425
|
+
licenses. The public upstream repositories retain their own
|
|
426
|
+
independent licenses, names and version histories. Public Render health and
|
|
427
|
+
anonymous access controls have been checked by CI; authorized production calls
|
|
428
|
+
against upstream scientific programs have not yet been confirmed.
|
|
429
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
scientific_toolkit-0.5.0.dist-info/licenses/LICENSE,sha256=rePd-DcKxPV5SPxL3xwf4cfmbN-qg10F8u1u9v36IwQ,1087
|
|
2
|
+
scientific_toolkit_mcp/__init__.py,sha256=8LWrWhijnURlF26OZaoBOrWBWKz2qCbsuCyWEPbUWzQ,76
|
|
3
|
+
scientific_toolkit_mcp/__main__.py,sha256=tsUTknY-RMVcmeThCU7_f58cuicrPOSGRGmGD7zLjCU,68
|
|
4
|
+
scientific_toolkit_mcp/catalog.py,sha256=sfs2DxROtQUpCxcLWOmqTnzVNYguQ-LewTueC6Hzr9U,3708
|
|
5
|
+
scientific_toolkit_mcp/http_server.py,sha256=pULERm2G7YbBVTqoUGQf_dN9ogVBC7OKa5SKf9eCht8,17547
|
|
6
|
+
scientific_toolkit_mcp/oauth.py,sha256=RNyRnA102KC8SllQ8agoEB_MeuDMpwdlGMw_LgupzRc,4669
|
|
7
|
+
scientific_toolkit_mcp/production_probe.py,sha256=xl9seVchKnWI6leY3ZOqJ5YY3SC_LokYg7m9JC8vcBE,8234
|
|
8
|
+
scientific_toolkit_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
scientific_toolkit_mcp/server.py,sha256=mK84lDVRSpiZxroHvkhorjACAn2O-c_llFMXJAai6Ek,9815
|
|
10
|
+
scientific_toolkit_mcp/strict_json.py,sha256=Q0nugom4L-ag1YI61TcgUgYeyfcHDNgiR_MaqHOTRlk,1739
|
|
11
|
+
scientific_toolkit_mcp/tools.py,sha256=co1GV6SIsoNp-5D_E3SMQfnqNN-dvU-J5CoQo4C9wKI,29584
|
|
12
|
+
scientific_toolkit-0.5.0.dist-info/METADATA,sha256=Dc1_q7F9pkAIzsI7rNZBdP_0vLiSHs4f8E9PZqes-M0,24840
|
|
13
|
+
scientific_toolkit-0.5.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
14
|
+
scientific_toolkit-0.5.0.dist-info/entry_points.txt,sha256=KbX6Ka9Nayjpmxe9NMBhWPsnUp7GXbsMWmD13k78W-Q,134
|
|
15
|
+
scientific_toolkit-0.5.0.dist-info/top_level.txt,sha256=dYmfbfMcx0cfwUKboxXoCQXRuapqOxGVjCdNkdJNQXI,23
|
|
16
|
+
scientific_toolkit-0.5.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Furox-Art
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
scientific_toolkit_mcp
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"""Explicit catalog: original repositories remain independent and unchanged."""
|
|
2
|
+
|
|
3
|
+
from copy import deepcopy
|
|
4
|
+
|
|
5
|
+
REPOSITORIES = (
|
|
6
|
+
{
|
|
7
|
+
"name": "axiomize",
|
|
8
|
+
"role": "Model specification, simulation, falsification, and numerical verification",
|
|
9
|
+
"interface": "axiomize CLI (also has its own MCP server)",
|
|
10
|
+
"tools": ["axiomize_intake", "axiomize_model"],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "scientific-computing-system",
|
|
14
|
+
"role": "Pure-Python computational science and statistics",
|
|
15
|
+
"interface": "cds CLI",
|
|
16
|
+
"tools": ["cds_stats"],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "scientific-computing-system-2.0",
|
|
20
|
+
"role": "NumPy/SciPy-backed scientific computing",
|
|
21
|
+
"interface": "cds2 CLI",
|
|
22
|
+
"tools": ["cds2_stats"],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "plan-auditor",
|
|
26
|
+
"role": "Independent agent plan verification and completion gating",
|
|
27
|
+
"interface": "plan-auditor CLI; audit execution requires explicit local opt-in",
|
|
28
|
+
"tools": ["plan_auditor_inspect", "plan_auditor_audit"],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "quantum-reasoning-skill",
|
|
32
|
+
"role": "Model-agnostic reasoning protocol; package contract verification",
|
|
33
|
+
"interface": "quantum-reasoning CLI (inspector, not an LLM)",
|
|
34
|
+
"tools": ["quantum_skill_validate"],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "axiomize-quantum-skills-2.0",
|
|
38
|
+
"role": "Bundled Axiomize plus quantum-inspired branching; no duplicate Axiomize MCP registration",
|
|
39
|
+
"interface": "axiomize-reason CLI",
|
|
40
|
+
"tools": ["axiomize_reason_score"],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "eq-layer",
|
|
44
|
+
"role": "Intent, affect, and conversational control selection; not scientific validation",
|
|
45
|
+
"interface": "eq-layer CLI, local heuristic/learned routing",
|
|
46
|
+
"tools": ["eq_layer_route"],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "literature-evidence-mcp",
|
|
50
|
+
"role": "Evidence-provenance-first scientific literature search, quote verification, and methodology screening",
|
|
51
|
+
"interface": "literature-evidence-mcp stdio MCP server; live search requires network access",
|
|
52
|
+
"tools": ["literature_evidence_search", "literature_evidence_verify_quote"],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "nomosguard",
|
|
56
|
+
"role": "Deterministic security reasoning: hash-chained evidence ledger, rule engine, fail-closed policy gate",
|
|
57
|
+
"interface": "python -m nomosguard.mcp_stdio; deterministic, no model calls",
|
|
58
|
+
"tools": ["nomosguard_decide"],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "scientific-reasoning-auditor",
|
|
62
|
+
"role": "Scientific manuscript reasoning and evidence-graph screening",
|
|
63
|
+
"interface": "sra CLI; offline audit of inline Markdown",
|
|
64
|
+
"tools": ["sra_audit_manuscript"],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "polyglot-python",
|
|
68
|
+
"role": "Deterministic translation of localized Python keywords",
|
|
69
|
+
"interface": "Independent polyglot-python CLI",
|
|
70
|
+
"tools": [],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "polyglot-code-guard",
|
|
74
|
+
"role": "Build and test evidence verification for local projects",
|
|
75
|
+
"interface": "Independent polyguard CLI",
|
|
76
|
+
"tools": [],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "repocraft",
|
|
80
|
+
"role": "Deterministic Python project scaffolding from validated specifications",
|
|
81
|
+
"interface": "Independent repocraft CLI",
|
|
82
|
+
"tools": [],
|
|
83
|
+
},
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def catalog() -> list[dict]:
|
|
88
|
+
# A shallow dict() would share the nested "tools" lists with REPOSITORIES,
|
|
89
|
+
# so one caller appending to a returned entry would change later responses.
|
|
90
|
+
return [{**deepcopy(item), "url": f"https://github.com/Furox-Art/{item['name']}"}
|
|
91
|
+
for item in REPOSITORIES]
|