vamsi-purecipher commited on
Commit
b0c52ab
·
verified ·
1 Parent(s): fe5ef46

Deploy tested PureCipher build b8f75f12f0f1f7331917a7785111bd3b1ffd4a06

Browse files
.dockerignore CHANGED
@@ -2,3 +2,5 @@
2
  !Dockerfile
3
  !wheels/
4
  !wheels/**
 
 
 
2
  !Dockerfile
3
  !wheels/
4
  !wheels/**
5
+ !space_app.py
6
+ !index.html
.gitattributes CHANGED
@@ -7,3 +7,5 @@ wheels/fastmcp-0.0.1.dev4086+8374a541-py3-none-any.whl filter=lfs diff=lfs merge
7
  wheels/fastmcp_slim-0.0.1.dev4086+8374a541-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
8
  wheels/fastmcp-0.0.1.dev4087+67f290ef-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
9
  wheels/fastmcp_slim-0.0.1.dev4087+67f290ef-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
 
 
 
7
  wheels/fastmcp_slim-0.0.1.dev4086+8374a541-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
8
  wheels/fastmcp-0.0.1.dev4087+67f290ef-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
9
  wheels/fastmcp_slim-0.0.1.dev4087+67f290ef-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
10
+ wheels/fastmcp-0.0.1.dev4088+b8f75f12-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
11
+ wheels/fastmcp_slim-0.0.1.dev4088+b8f75f12-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -22,6 +22,7 @@ RUN uv pip install --system --no-cache --constraint /tmp/wheels/constraints.txt
22
  && rm -rf /tmp/wheels \
23
  && node --version && npx --version && uv --version && uvx --version && docker --version
24
 
 
25
  RUN useradd --create-home --uid 1000 app
26
  USER 1000
27
  WORKDIR /home/app
@@ -29,4 +30,4 @@ ENV UV_CACHE_DIR=/home/app/.cache/uv NPM_CONFIG_CACHE=/home/app/.npm
29
  EXPOSE 8000
30
  # Supply DATABASE_URL for durable PostgreSQL storage. Without it the registry
31
  # uses ephemeral storage. Set PURECIPHER_SIGNING_SECRET at deployment time.
32
- CMD ["purecipher-registry", "--host", "0.0.0.0", "--port", "8000"]
 
22
  && rm -rf /tmp/wheels \
23
  && node --version && npx --version && uv --version && uvx --version && docker --version
24
 
25
+ COPY space_app.py index.html /app/
26
  RUN useradd --create-home --uid 1000 app
27
  USER 1000
28
  WORKDIR /home/app
 
30
  EXPOSE 8000
31
  # Supply DATABASE_URL for durable PostgreSQL storage. Without it the registry
32
  # uses ephemeral storage. Set PURECIPHER_SIGNING_SECRET at deployment time.
33
+ CMD ["python", "/app/space_app.py"]
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: green
5
  colorTo: blue
6
  sdk: docker
7
  app_port: 8000
8
- base_path: /registry/health
9
  pinned: false
10
  license: apache-2.0
11
  short_description: Security and governance for MCP registries
@@ -50,7 +50,7 @@ For example, consider an assistant working with customer records: MCP carries th
50
 
51
  This Space hosts the **PureCipher Registry backend API** in a Docker container. It supports tool listings, publisher information, certification checks, moderation, and configurable access control.
52
 
53
- The App tab opens the backend’s health-status response. The web console is maintained and deployed separately in [xregistry](https://github.com/PureCipher/xregistry); the backend’s legacy UI is disabled by default.
54
 
55
  | Endpoint | Purpose |
56
  | --- | --- |
@@ -96,8 +96,8 @@ The container runs as user 1000 and listens on port 8000. It installs the tested
96
 
97
  | Field | Value |
98
  | --- | --- |
99
- | GitHub source | [`67f290eff491`](https://github.com/PureCipher/xsecuremcp2.0/commit/67f290eff4917c6046b1e135e005cb04f59ab64d) |
100
- | Package version | `0.0.1.dev4087+67f290ef` |
101
  | Build metadata | [`build.json`](https://huggingface.co/spaces/purecipher/xsecuremcp/blob/main/build.json) |
102
 
103
  Pushes to the GitHub repository’s `main` branch trigger tests, static checks, clean wheel installation checks, and Docker health checks before publication. Successful builds update this Space and replace its current wheel files. Hub history is retained.
 
5
  colorTo: blue
6
  sdk: docker
7
  app_port: 8000
8
+ base_path: /
9
  pinned: false
10
  license: apache-2.0
11
  short_description: Security and governance for MCP registries
 
50
 
51
  This Space hosts the **PureCipher Registry backend API** in a Docker container. It supports tool listings, publisher information, certification checks, moderation, and configurable access control.
52
 
53
+ The App tab displays this guide. Use the health-status link to inspect the running backend. The web console is maintained and deployed separately in [xregistry](https://github.com/PureCipher/xregistry); the backend’s legacy UI is disabled by default.
54
 
55
  | Endpoint | Purpose |
56
  | --- | --- |
 
96
 
97
  | Field | Value |
98
  | --- | --- |
99
+ | GitHub source | [`b8f75f12f0f1`](https://github.com/PureCipher/xsecuremcp2.0/commit/b8f75f12f0f1f7331917a7785111bd3b1ffd4a06) |
100
+ | Package version | `0.0.1.dev4088+b8f75f12` |
101
  | Build metadata | [`build.json`](https://huggingface.co/spaces/purecipher/xsecuremcp/blob/main/build.json) |
102
 
103
  Pushes to the GitHub repository’s `main` branch trigger tests, static checks, clean wheel installation checks, and Docker health checks before publication. Successful builds update this Space and replace its current wheel files. Hub history is retained.
build.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
  "repository": "PureCipher/xsecuremcp2.0",
3
- "commit": "67f290eff4917c6046b1e135e005cb04f59ab64d",
4
- "version": "0.0.1.dev4087+67f290ef"
5
  }
 
1
  {
2
  "repository": "PureCipher/xsecuremcp2.0",
3
+ "commit": "b8f75f12f0f1f7331917a7785111bd3b1ffd4a06",
4
+ "version": "0.0.1.dev4088+b8f75f12"
5
  }
index.html ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="description" content="Learn how to use xSecureMCP: MCP servers, execution policies, receipts, and registry governance." />
7
+ <title>xSecureMCP — Guide &amp; documentation</title>
8
+ <style>
9
+ :root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #213344; background: #f5f7f9; line-height: 1.7; }
10
+ * { box-sizing: border-box; }
11
+ body { margin: 0; }
12
+ a { color: #087b77; text-decoration-thickness: 1px; text-underline-offset: 3px; }
13
+ a:hover { color: #064f4d; }
14
+ a:focus-visible { outline: 3px solid #36b7b0; outline-offset: 4px; }
15
+ .topbar { background: #112c3d; color: #fff; padding: 18px max(24px, calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
16
+ .brand { color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
17
+ .brand span { color: #8cb2c3; font-size: 11px; letter-spacing: 2px; margin-right: 18px; }
18
+ .topbar nav { display: flex; gap: 24px; font-size: 14px; }
19
+ .topbar nav a { color: #d5e7ee; }
20
+ .layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; max-width: 1200px; padding: 48px 24px 80px; margin: auto; }
21
+ aside { position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; font-size: 13px; }
22
+ aside p { font-weight: 700; color: #5e7484; text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px; margin: 0 0 16px; }
23
+ aside a { display: block; color: #526777; text-decoration: none; padding: 7px 0 7px 14px; border-left: 2px solid #dce5e9; line-height: 1.5; }
24
+ aside a:hover { color: #087b77; border-color: #087b77; }
25
+ main { background: white; border: 1px solid #e0e7ec; border-radius: 12px; padding: 40px 44px; min-width: 0; }
26
+ h1, h2, h3 { color: #132f41; line-height: 1.25; scroll-margin-top: 24px; }
27
+ h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1.5px; margin: 0 0 14px; }
28
+ h1 + p { font-size: 19px; color: #4b687b; }
29
+ h2 { font-size: 25px; letter-spacing: -.5px; border-top: 1px solid #e2e9ed; margin: 42px 0 18px; padding-top: 30px; }
30
+ h3 { font-size: 19px; margin-top: 28px; }
31
+ p { margin: 0 0 18px; }
32
+ ul, ol { padding-left: 24px; }
33
+ li { padding-left: 4px; margin: 10px 0; }
34
+ code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; background: #edf3f5; border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }
35
+ pre { padding: 20px; border: 1px solid #dce7eb; border-radius: 8px; background: #f3f7f9; overflow-x: auto; line-height: 1.6; }
36
+ pre code { background: none; padding: 0; overflow-wrap: normal; }
37
+ .table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid #dce6eb; border-radius: 8px; }
38
+ table { border-collapse: collapse; width: 100%; font-size: 14px; }
39
+ th { text-align: left; background: #edf4f6; color: #24475a; }
40
+ th, td { padding: 13px 16px; vertical-align: top; border-bottom: 1px solid #e3ebef; min-width: 140px; }
41
+ tr:last-child td { border-bottom: 0; }
42
+ td:first-child { min-width: 150px; }
43
+ blockquote { border-left: 3px solid #159b94; margin: 24px 0; padding: 12px 20px; background: #eff8f7; }
44
+ footer { border-top: 1px solid #e0e7ec; margin-top: 36px; padding-top: 20px; color: #637a89; font-size: 13px; }
45
+ .skip { position: absolute; left: -9999px; }
46
+ .skip:focus { position: fixed; left: 20px; top: 12px; background: white; padding: 12px; z-index: 2; }
47
+ @media (max-width: 850px) { .layout { display: block; padding: 24px 16px; } aside { position: static; max-height: none; margin-bottom: 24px; } aside nav { display: flex; gap: 8px; flex-wrap: wrap; } aside a { padding: 6px 10px; border: 1px solid #dae4e9; border-radius: 6px; background: white; } main { padding: 28px 22px; } .brand span { display: block; margin: 0 0 2px; } }
48
+ @media print { .topbar, aside { display: none; } .layout { display: block; padding: 0; } main { border: 0; padding: 0; } }
49
+ </style>
50
+ </head>
51
+ <body id="top">
52
+ <a class="skip" href="#readme">Skip to guide</a>
53
+ <header class="topbar">
54
+ <a class="brand" href="#top"><span>PURECIPHER</span>xSecureMCP</a>
55
+ <nav aria-label="Project links">
56
+ <a href="https://github.com/PureCipher/xsecuremcp2.0" target="_blank" rel="noopener noreferrer">GitHub ↗</a>
57
+ <a href="https://github.com/PureCipher/xsecuremcp2.0/releases/tag/build-latest" target="_blank" rel="noopener noreferrer">Downloads ↗</a>
58
+ <a href="/registry/health" target="_blank" rel="noopener noreferrer">API health ↗</a>
59
+ </nav>
60
+ </header>
61
+ <div class="layout">
62
+ <aside><p>On this page</p><nav aria-label="Guide sections"><a href="#what-changes-beyond-mcp-and-why">What changes beyond MCP, and why</a>
63
+ <a href="#how-to-use-the-project">How to use the project</a>
64
+ <a href="#what-this-space-runs">What this Space runs</a>
65
+ <a href="#use-the-python-packages">Use the Python packages</a>
66
+ <a href="#configure-your-own-deployment">Configure your own deployment</a>
67
+ <a href="#build-provenance">Build provenance</a>
68
+ <a href="#license-and-attribution">License and attribution</a></nav></aside>
69
+ <main id="readme">
70
+ <h1 id="xsecuremcp">xSecureMCP</h1>
71
+ <p><strong>Security and governance for MCP servers and tool registries.</strong></p>
72
+ <p>xSecureMCP is PureCipher’s platform for building MCP servers, applying execution policies, recording evidence, and publishing tools through a governed registry. It builds on FastMCP and includes the SecureMCP Python server layer, PureCipher Registry, and PureCipher Publisher CLI.</p>
73
+ <p><a href="https://github.com/PureCipher/xsecuremcp2.0" target="_blank" rel="noopener noreferrer">GitHub project</a> · <a href="https://github.com/PureCipher/xsecuremcp2.0/releases/tag/build-latest" target="_blank" rel="noopener noreferrer">Python downloads</a> · <a href="https://github.com/PureCipher/xregistry" target="_blank" rel="noopener noreferrer">Registry console</a> · <a href="https://github.com/PureCipher/xsecuremcp2.0/tree/main/docs/servers/security" target="_blank" rel="noopener noreferrer">Documentation</a></p>
74
+ <h2 id="what-changes-beyond-mcp-and-why">What changes beyond MCP, and why</h2>
75
+ <p><strong>MCP is the protocol; FastMCP is a Python framework; xSecureMCP adds configurable security and governance components on top.</strong> xSecureMCP does not define a replacement wire protocol. MCP clients still discover and call tools using MCP messages.</p>
76
+ <p>MCP already describes <a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization" target="_blank" rel="noopener noreferrer">authorization for HTTP transports</a>, user consent, and <a href="https://modelcontextprotocol.io/specification/2025-11-25" target="_blank" rel="noopener noreferrer">security responsibilities for implementers</a>. FastMCP already provides server/client APIs, middleware, and authentication integration. The additions below are implementation features in this fork, not claims that MCP or FastMCP lack security.</p>
77
+ <div class="table-wrap"><table>
78
+ <thead>
79
+ <tr>
80
+ <th>Area</th>
81
+ <th>xSecureMCP adds</th>
82
+ <th>Why it matters</th>
83
+ </tr>
84
+ </thead>
85
+ <tbody>
86
+ <tr>
87
+ <td><strong>Execution policy</strong></td>
88
+ <td>Configurable policy providers that evaluate operations and can deny execution, with fail-closed handling when configured.</td>
89
+ <td>Being authenticated does not mean a caller should be allowed to perform every operation. For example, an assistant may read a record while being forbidden to reset it.</td>
90
+ </tr>
91
+ <tr>
92
+ <td><strong>Consent and contracts</strong></td>
93
+ <td>Consent graphs and contract checks that applications can connect to their identity, approval, and resource rules.</td>
94
+ <td>Access can depend on who owns the data, what was approved, and the permitted scope of use—not just whether a request is well formed.</td>
95
+ </tr>
96
+ <tr>
97
+ <td><strong>Provenance and execution receipts</strong></td>
98
+ <td>Ledger records and portable receipts with outcome claims, input/output digests, and integrity proofs.</td>
99
+ <td>Operators and clients can inspect evidence about an observed execution when debugging or reviewing an incident.</td>
100
+ </tr>
101
+ <tr>
102
+ <td><strong>Publication and certification</strong></td>
103
+ <td>Publisher manifests, validation, certification checks, registry listings, and optional moderation.</td>
104
+ <td>Teams need a review process for what enters their tool catalog, with publisher and trust information alongside connection details.</td>
105
+ </tr>
106
+ <tr>
107
+ <td><strong>Monitoring and response</strong></td>
108
+ <td>Configurable behavioral analysis, security events, and escalation components.</td>
109
+ <td>A tool that passed an initial review can still need investigation when observed behavior changes.</td>
110
+ </tr>
111
+ <tr>
112
+ <td><strong>Operational governance</strong></td>
113
+ <td>Policy audit trails, registry roles, and governance views in the companion console.</td>
114
+ <td>Administrators need to review access decisions and manage the tool lifecycle across a team.</td>
115
+ </tr>
116
+ </tbody>
117
+ </table></div>
118
+ <p>These features only cover the execution paths and evidence sources connected to them. A catalog listing does not instrument a remote server. Tool annotations are not enforcement, a receipt is not a guarantee of truthful output, and enabling a policy module does not automatically establish regulatory compliance or process isolation.</p>
119
+ <p>For example, consider an assistant working with customer records: MCP carries the tool call; authentication establishes the caller; a configured policy decides whether that caller may read or change the record; consent and contract checks evaluate applicable permissions; provenance records the execution that reaches it. Each control answers a different question. Their coverage and ordering depend on the server configuration.</p>
120
+ <h2 id="how-to-use-the-project">How to use the project</h2>
121
+ <ol>
122
+ <li><strong>Try the backend:</strong> use the health request below to inspect this Space. It is the registry service, not a general-purpose agent or the calculator example.</li>
123
+ <li><strong>Build a server:</strong> install the matching fork packages, define your tools, and configure <code>SecurityConfig</code> for the controls your application needs.</li>
124
+ <li><strong>Connect a client:</strong> point an MCP client at your server’s endpoint. The <a href="https://github.com/PureCipher/xsecuremcp2.0#build-an-mcp-server" target="_blank" rel="noopener noreferrer">server-and-client quickstart</a> demonstrates a tool call and receipt verification.</li>
125
+ <li><strong>Check enforcement:</strong> follow the <a href="https://github.com/PureCipher/xsecuremcp2.0/blob/main/docs/using-xsecuremcp.md" target="_blank" rel="noopener noreferrer">worked usage guide</a> to allow one operation, deny another, and understand the resulting evidence.</li>
126
+ <li><strong>Share and operate:</strong> use PureCipher Publisher to submit projects to your chosen registry, and the separate xregistry console to manage it. Configure authentication, moderation, and persistent storage for your deployment.</li>
127
+ </ol>
128
+ <h2 id="what-this-space-runs">What this Space runs</h2>
129
+ <p>This Space hosts the <strong>PureCipher Registry backend API</strong> in a Docker container. It supports tool listings, publisher information, certification checks, moderation, and configurable access control.</p>
130
+ <p>The App tab displays this guide. Use the health-status link to inspect the running backend. The web console is maintained and deployed separately in <a href="https://github.com/PureCipher/xregistry" target="_blank" rel="noopener noreferrer">xregistry</a>; the backend’s legacy UI is disabled by default.</p>
131
+ <div class="table-wrap"><table>
132
+ <thead>
133
+ <tr>
134
+ <th>Endpoint</th>
135
+ <th>Purpose</th>
136
+ </tr>
137
+ </thead>
138
+ <tbody>
139
+ <tr>
140
+ <td><a href="https://purecipher-xsecuremcp.hf.space/registry/health" target="_blank" rel="noopener noreferrer"><code>/registry/health</code></a></td>
141
+ <td>Service status, authentication status, and registry counts.</td>
142
+ </tr>
143
+ <tr>
144
+ <td><a href="https://purecipher-xsecuremcp.hf.space/mcp" target="_blank" rel="noopener noreferrer"><code>/mcp</code></a></td>
145
+ <td>Streamable HTTP endpoint for MCP clients.</td>
146
+ </tr>
147
+ </tbody>
148
+ </table></div>
149
+ <p>Check the running service:</p>
150
+ <pre><code class="language-bash">curl https://purecipher-xsecuremcp.hf.space/registry/health
151
+ </code></pre>
152
+ <p>A running service or a registry listing does not by itself establish that a tool is safe or that its execution has been observed.</p>
153
+ <h2 id="use-the-python-packages">Use the Python packages</h2>
154
+ <p>In a Python virtual environment, install the four matching fork distributions from the latest tested GitHub build:</p>
155
+ <pre><code class="language-bash">python -m pip install --upgrade -r https://github.com/PureCipher/xsecuremcp2.0/releases/download/build-latest/requirements.txt
156
+ </code></pre>
157
+ <p>The distributions retain the names <code>fastmcp</code>, <code>fastmcp-slim</code>, <code>fastmcp-remote</code>, and <code>fastmcp-tasks</code> for compatibility. They include the <code>securemcp</code> and <code>purecipher</code> modules. Python 3.10 or later is required; builds are validated on Python 3.12.</p>
158
+ <p>See the <a href="https://github.com/PureCipher/xsecuremcp2.0#build-an-mcp-server" target="_blank" rel="noopener noreferrer">GitHub quickstart</a> to build a server, or the <a href="https://github.com/PureCipher/xsecuremcp2.0/blob/main/docs/servers/security/purecipher-publisher.mdx" target="_blank" rel="noopener noreferrer">publisher guide</a> to package and submit a project. The <a href="https://github.com/PureCipher/xsecuremcp2.0/releases/tag/build-latest" target="_blank" rel="noopener noreferrer">GitHub Release</a> also provides a ZIP bundle, checksums, and source distributions.</p>
159
+ <h2 id="configure-your-own-deployment">Configure your own deployment</h2>
160
+ <p>Set configuration in <strong>Space Settings → Variables and secrets</strong>. Keep credentials in secrets.</p>
161
+ <div class="table-wrap"><table>
162
+ <thead>
163
+ <tr>
164
+ <th>Setting</th>
165
+ <th>Purpose</th>
166
+ </tr>
167
+ </thead>
168
+ <tbody>
169
+ <tr>
170
+ <td><code>PURECIPHER_SIGNING_SECRET</code></td>
171
+ <td>Required signing key for the registry.</td>
172
+ </tr>
173
+ <tr>
174
+ <td><code>DATABASE_URL</code></td>
175
+ <td>PostgreSQL connection string for persistent state. Without it, registry data is ephemeral and can be lost on restart.</td>
176
+ </tr>
177
+ <tr>
178
+ <td><code>PURECIPHER_ENABLE_AUTH</code></td>
179
+ <td>Enable registry authentication with <code>true</code>, together with the user and JWT configuration in the registry guide.</td>
180
+ </tr>
181
+ <tr>
182
+ <td><code>PURECIPHER_REQUIRE_MODERATION</code></td>
183
+ <td>Require review before accepted submissions become public by setting <code>true</code>.</td>
184
+ </tr>
185
+ </tbody>
186
+ </table></div>
187
+ <p>Authentication is disabled unless configured; a signing secret alone does not enable it. Check the live health response for the current authentication status. See the <a href="https://github.com/PureCipher/xsecuremcp2.0/blob/main/docs/servers/security/purecipher-registry.mdx" target="_blank" rel="noopener noreferrer">registry guide</a> for deployment and access-control settings.</p>
188
+ <p>The container runs as user 1000 and listens on port 8000. It installs the tested Python wheels uploaded to this Space rather than rebuilding the packages from the older source files retained in the repository.</p>
189
+ <h2 id="build-provenance">Build provenance</h2>
190
+ <div class="table-wrap"><table>
191
+ <thead>
192
+ <tr>
193
+ <th>Field</th>
194
+ <th>Value</th>
195
+ </tr>
196
+ </thead>
197
+ <tbody>
198
+ <tr>
199
+ <td>GitHub source</td>
200
+ <td><a href="https://github.com/PureCipher/xsecuremcp2.0/commit/b8f75f12f0f1f7331917a7785111bd3b1ffd4a06" target="_blank" rel="noopener noreferrer"><code>b8f75f12f0f1</code></a></td>
201
+ </tr>
202
+ <tr>
203
+ <td>Package version</td>
204
+ <td><code>0.0.1.dev4088+b8f75f12</code></td>
205
+ </tr>
206
+ <tr>
207
+ <td>Build metadata</td>
208
+ <td><a href="https://huggingface.co/spaces/purecipher/xsecuremcp/blob/main/build.json" target="_blank" rel="noopener noreferrer"><code>build.json</code></a></td>
209
+ </tr>
210
+ </tbody>
211
+ </table></div>
212
+ <p>Pushes to the GitHub repository’s <code>main</code> branch trigger tests, static checks, clean wheel installation checks, and Docker health checks before publication. Successful builds update this Space and replace its current wheel files. Hub history is retained.</p>
213
+ <p>FastMCP release updates are reviewed and merged manually. The publishing workflow does not write to the upstream FastMCP repository.</p>
214
+ <h2 id="license-and-attribution">License and attribution</h2>
215
+ <p>Maintained by PureCipher. Built on <a href="https://github.com/PrefectHQ/fastmcp" target="_blank" rel="noopener noreferrer">FastMCP</a> and distributed under the <a href="https://github.com/PureCipher/xsecuremcp2.0/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">Apache 2.0 license</a>.</p>
216
+
217
+ <footer>Published from the versioned xSecureMCP README. <a href="#top">Back to top ↑</a></footer>
218
+ </main>
219
+ </div>
220
+ </body>
221
+ </html>
space_app.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Serve the Space README alongside the installed registry backend."""
2
+
3
+ from pathlib import Path
4
+
5
+ from starlette.requests import Request
6
+ from starlette.responses import FileResponse
7
+
8
+ from fastmcp.server.security.storage.pg_pool import is_postgres_dsn
9
+ from purecipher.cli import build_parser, build_registry_from_args
10
+ from purecipher.registry import PureCipherRegistry
11
+
12
+
13
+ def create_registry(page: Path) -> PureCipherRegistry:
14
+ if not page.is_file():
15
+ raise FileNotFoundError(f"Missing Space README page: {page}")
16
+ args = build_parser().parse_args(["--host", "0.0.0.0", "--port", "8000"])
17
+ target = args.database_url or args.database_path
18
+ # Match the registry CLI: PostgreSQL persists; other targets are ephemeral.
19
+ args.database_path = target if target and is_postgres_dsn(target) else None
20
+ registry = build_registry_from_args(args)
21
+
22
+ @registry.custom_route("/", methods=["GET", "HEAD"])
23
+ async def readme_page(request: Request) -> FileResponse:
24
+ return FileResponse(
25
+ page,
26
+ media_type="text/html",
27
+ headers={
28
+ "Cache-Control": "no-cache",
29
+ "X-Content-Type-Options": "nosniff",
30
+ "Content-Security-Policy": (
31
+ "default-src 'none'; style-src 'unsafe-inline'; "
32
+ "base-uri 'none'; form-action 'none'"
33
+ ),
34
+ },
35
+ )
36
+
37
+ return registry
38
+
39
+
40
+ if __name__ == "__main__":
41
+ create_registry(Path(__file__).with_name("index.html")).run(
42
+ transport="streamable-http", host="0.0.0.0", port=8000
43
+ )
wheels/{fastmcp-0.0.1.dev4087+67f290ef-py3-none-any.whl → fastmcp-0.0.1.dev4088+b8f75f12-py3-none-any.whl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:33f7a09fce5c5fa5a0de1fc9559e21c81172817573f2ea7085e0d08c6c75fc16
3
- size 358066
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fabc181bffa0b8c208d24f98bad2eaf2e559f0a577eb00cc631be717461d26f2
3
+ size 358097
wheels/{fastmcp_remote-0.0.1.dev4087+67f290ef-py3-none-any.whl → fastmcp_remote-0.0.1.dev4088+b8f75f12-py3-none-any.whl} RENAMED
Binary files a/wheels/fastmcp_remote-0.0.1.dev4087+67f290ef-py3-none-any.whl and b/wheels/fastmcp_remote-0.0.1.dev4088+b8f75f12-py3-none-any.whl differ
 
wheels/{fastmcp_slim-0.0.1.dev4087+67f290ef-py3-none-any.whl → fastmcp_slim-0.0.1.dev4088+b8f75f12-py3-none-any.whl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ac8c6ae37d6b5e28e73d5eba5af7e9f1753a2e0dba78f31b5803e7fc5747408
3
- size 1339330
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31e663759d38acd877a62f61c8cc710a2e32487b58062fa0f2196cdb36d865d8
3
+ size 1339331
wheels/{fastmcp_tasks-0.0.1.dev4087+67f290ef-py3-none-any.whl → fastmcp_tasks-0.0.1.dev4088+b8f75f12-py3-none-any.whl} RENAMED
Binary files a/wheels/fastmcp_tasks-0.0.1.dev4087+67f290ef-py3-none-any.whl and b/wheels/fastmcp_tasks-0.0.1.dev4088+b8f75f12-py3-none-any.whl differ