sigrix-launcher 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sigrix_launcher-0.1.0/.gitignore +8 -0
- sigrix_launcher-0.1.0/CHANGELOG.md +22 -0
- sigrix_launcher-0.1.0/LICENSE +201 -0
- sigrix_launcher-0.1.0/NOTICE +15 -0
- sigrix_launcher-0.1.0/PKG-INFO +114 -0
- sigrix_launcher-0.1.0/README.md +88 -0
- sigrix_launcher-0.1.0/pyproject.toml +67 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/__init__.py +43 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/__main__.py +6 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/_postern/__init__.py +63 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/_postern/describe.py +561 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/_postern/entitlement.py +900 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/_postern/errors.py +228 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/_postern/pull.py +626 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/_postern/transport.py +211 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/cli.py +47 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/installer.py +135 -0
- sigrix_launcher-0.1.0/src/sigrix_launcher/launcher.py +587 -0
- sigrix_launcher-0.1.0/tests/conftest.py +237 -0
- sigrix_launcher-0.1.0/tests/test_launcher.py +366 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are recorded here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the versioning is
|
|
5
|
+
described in `VERSIONING.md`.
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.0] — 2026-09-23
|
|
10
|
+
|
|
11
|
+
First release, reading package format `1`.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `sigrix-launcher run <seller>/<listing-id>`: check the purchase, fetch and
|
|
16
|
+
verify the package, install it into an environment of its own and start the
|
|
17
|
+
seller's server on stdio. Arguments after the identifier go to the server.
|
|
18
|
+
- A cache per listing: each version started, and the last purchase answer
|
|
19
|
+
(with a fingerprint of the token), so a start offline inside the grace period
|
|
20
|
+
uses the version installed last.
|
|
21
|
+
- The Postern reference runner's client code, copied in, for the purchase check
|
|
22
|
+
and the verified download.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Sigrix
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
sigrix-launcher
|
|
2
|
+
Copyright 2026 Sigrix
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
src/sigrix_launcher/_postern/ is a copy of the Postern reference runner's
|
|
7
|
+
client code (the entitlement check, the verified download and the transport
|
|
8
|
+
they share), under the same licence. It is changed upstream and copied here,
|
|
9
|
+
never edited in place.
|
|
10
|
+
|
|
11
|
+
Trademarks. "Sigrix" and the Sigrix logo are trademarks of Sigrix. The Apache
|
|
12
|
+
License does not grant permission to use them. The name of this repository and
|
|
13
|
+
package identifies the marketplace the launcher fetches from; it does not imply
|
|
14
|
+
endorsement of a derivative work. A fork or a derived launcher must not present
|
|
15
|
+
itself as Sigrix or as published by Sigrix.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: sigrix-launcher
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Start a Sigrix-delivered MCP server you bought from the MCP client you already use: checks the purchase, fetches and verifies the package, installs it and hands over stdio.
|
|
5
|
+
Project-URL: Homepage, https://github.com/sigrix-io/sigrix-launcher
|
|
6
|
+
Project-URL: Issues, https://github.com/sigrix-io/sigrix-launcher/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/sigrix-io/sigrix-launcher/blob/main/CHANGELOG.md
|
|
8
|
+
Author: Sigrix
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Keywords: claude-code,mcp,model-context-protocol,postern,sigrix
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
24
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# sigrix-launcher
|
|
28
|
+
|
|
29
|
+
Start an MCP server you bought on [Sigrix](https://sigrix.io) from the client you already use — Claude Code, Claude Desktop, Cursor, or any MCP client that starts a server over stdio.
|
|
30
|
+
|
|
31
|
+
Some Sigrix listings are delivered by Sigrix rather than installed from a public registry: the seller's server is a package only its buyers can download. This launcher is what your client starts for one. On every start it:
|
|
32
|
+
|
|
33
|
+
1. asks Sigrix whether your token owns the listing;
|
|
34
|
+
2. downloads the seller's package and verifies it before anything is written;
|
|
35
|
+
3. installs it into an environment of its own, once per version;
|
|
36
|
+
4. starts the seller's server on its own stdio, so your client talks to the server directly.
|
|
37
|
+
|
|
38
|
+
It speaks [Postern](https://github.com/sigrix-io/postern), the open protocol for checking a purchase and fetching what was bought, using the protocol's reference client code.
|
|
39
|
+
|
|
40
|
+
## Configure your client
|
|
41
|
+
|
|
42
|
+
The listing's page shows this with its identifier filled in, once you own it — copy it from there. `<seller>/<listing-id>` below is that identifier, and `YOUR_SIGRIX_TOKEN` is where your token goes.
|
|
43
|
+
|
|
44
|
+
**Claude Code**
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
claude mcp add modelwatch -e SIGRIX_TOKEN=YOUR_SIGRIX_TOKEN -- uvx sigrix-launcher run <seller>/<listing-id>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Claude Desktop** (`claude_desktop_config.json`) and **Cursor** (`.cursor/mcp.json`)
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"mcpServers": {
|
|
55
|
+
"modelwatch": {
|
|
56
|
+
"command": "uvx",
|
|
57
|
+
"args": [
|
|
58
|
+
"sigrix-launcher",
|
|
59
|
+
"run",
|
|
60
|
+
"<seller>/<listing-id>"
|
|
61
|
+
],
|
|
62
|
+
"env": {
|
|
63
|
+
"SIGRIX_TOKEN": "YOUR_SIGRIX_TOKEN"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
`uvx` comes with [uv](https://pypi.org/project/uv/). `pipx run sigrix-launcher run <seller>/<listing-id>` works as well. Python 3.11 or newer.
|
|
71
|
+
|
|
72
|
+
Arguments after the identifier are passed to the seller's server: `... run <seller>/<listing-id> -- --verbose`. Any other variable in the `env` block (an API key the listing asks for, say) reaches the server as it is.
|
|
73
|
+
|
|
74
|
+
## Your token
|
|
75
|
+
|
|
76
|
+
`SIGRIX_TOKEN` is a runner token for this listing: create one under **Runner tokens** on your Sigrix account's plugins page, <https://sigrix.io/account/plugins>, one for each machine. It covers this one listing, and revoking it there stops this configuration and nothing else. The plugin feed token on the same page works too and covers everything you bought, but regenerating it replaces it everywhere at once.
|
|
77
|
+
|
|
78
|
+
The launcher sends it only in the `Authorization` header of its two requests to Sigrix, never writes it to disk, and starts the seller's server without it — nor any other `SIGRIX_` or `POSTERN_` variable.
|
|
79
|
+
|
|
80
|
+
## When it does not start
|
|
81
|
+
|
|
82
|
+
It prints one sentence on stderr saying why and exits; your client shows it in the server's log.
|
|
83
|
+
|
|
84
|
+
- **Not owned.** The token has not bought this listing, the purchase was refunded, or the token has since been regenerated. Sigrix answers all three the same way on purpose, so the message names all three. Nothing is downloaded.
|
|
85
|
+
- **Offline.** If Sigrix confirmed your purchase within its grace period (a day, for Sigrix) and a version is already installed here, that version starts. Otherwise the launcher asks you to reconnect.
|
|
86
|
+
- **Nothing to install yet.** The seller's newest version may still be waiting for Sigrix's review, or a version may have been withdrawn. A withdrawn version is not started from the cache either.
|
|
87
|
+
- **Withdrawn listing.** Buyers of a listing its seller withdrew keep access for a year; after that, the message gives the date it ended.
|
|
88
|
+
|
|
89
|
+
A refund takes effect at the next start: the purchase is checked when the server starts, not while it runs.
|
|
90
|
+
|
|
91
|
+
## What it keeps on your machine
|
|
92
|
+
|
|
93
|
+
Everything is under one folder: `~/.cache/sigrix-launcher` on Linux, `~/Library/Caches/sigrix-launcher` on macOS, `%LOCALAPPDATA%\sigrix-launcher` on Windows. `SIGRIX_LAUNCHER_HOME` moves it. For each listing: every version you have started, each in its own environment, and Sigrix's last answer about your purchase, stored with a fingerprint of the token rather than the token. Delete the folder whenever you like; the next start downloads again.
|
|
94
|
+
|
|
95
|
+
## Variables
|
|
96
|
+
|
|
97
|
+
| Variable | |
|
|
98
|
+
| --- | --- |
|
|
99
|
+
| `SIGRIX_TOKEN` | Required. A runner token for this listing, from the plugins page. |
|
|
100
|
+
| `SIGRIX_LAUNCHER_HOME` | Optional. Where installed versions are kept. |
|
|
101
|
+
| `POSTERN_DISTRIBUTOR` | Optional; defaults to `https://sigrix.io`. For testing against another distributor. Plain `http://` is accepted only to a loopback address. |
|
|
102
|
+
|
|
103
|
+
## Development
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
pip install -e ".[dev]"
|
|
107
|
+
ruff check . && ruff format --check . && pytest
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The tests run a distributor on loopback and, for one of them, install a real wheel and talk to the started server over a real pipe. `src/sigrix_launcher/_postern/` is a copy of the Postern reference runner's client code; change it upstream, never here.
|
|
111
|
+
|
|
112
|
+
## Licence
|
|
113
|
+
|
|
114
|
+
Apache-2.0. The Sigrix name and logo are not covered by the licence — see `NOTICE`.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# sigrix-launcher
|
|
2
|
+
|
|
3
|
+
Start an MCP server you bought on [Sigrix](https://sigrix.io) from the client you already use — Claude Code, Claude Desktop, Cursor, or any MCP client that starts a server over stdio.
|
|
4
|
+
|
|
5
|
+
Some Sigrix listings are delivered by Sigrix rather than installed from a public registry: the seller's server is a package only its buyers can download. This launcher is what your client starts for one. On every start it:
|
|
6
|
+
|
|
7
|
+
1. asks Sigrix whether your token owns the listing;
|
|
8
|
+
2. downloads the seller's package and verifies it before anything is written;
|
|
9
|
+
3. installs it into an environment of its own, once per version;
|
|
10
|
+
4. starts the seller's server on its own stdio, so your client talks to the server directly.
|
|
11
|
+
|
|
12
|
+
It speaks [Postern](https://github.com/sigrix-io/postern), the open protocol for checking a purchase and fetching what was bought, using the protocol's reference client code.
|
|
13
|
+
|
|
14
|
+
## Configure your client
|
|
15
|
+
|
|
16
|
+
The listing's page shows this with its identifier filled in, once you own it — copy it from there. `<seller>/<listing-id>` below is that identifier, and `YOUR_SIGRIX_TOKEN` is where your token goes.
|
|
17
|
+
|
|
18
|
+
**Claude Code**
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
claude mcp add modelwatch -e SIGRIX_TOKEN=YOUR_SIGRIX_TOKEN -- uvx sigrix-launcher run <seller>/<listing-id>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Claude Desktop** (`claude_desktop_config.json`) and **Cursor** (`.cursor/mcp.json`)
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"mcpServers": {
|
|
29
|
+
"modelwatch": {
|
|
30
|
+
"command": "uvx",
|
|
31
|
+
"args": [
|
|
32
|
+
"sigrix-launcher",
|
|
33
|
+
"run",
|
|
34
|
+
"<seller>/<listing-id>"
|
|
35
|
+
],
|
|
36
|
+
"env": {
|
|
37
|
+
"SIGRIX_TOKEN": "YOUR_SIGRIX_TOKEN"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`uvx` comes with [uv](https://pypi.org/project/uv/). `pipx run sigrix-launcher run <seller>/<listing-id>` works as well. Python 3.11 or newer.
|
|
45
|
+
|
|
46
|
+
Arguments after the identifier are passed to the seller's server: `... run <seller>/<listing-id> -- --verbose`. Any other variable in the `env` block (an API key the listing asks for, say) reaches the server as it is.
|
|
47
|
+
|
|
48
|
+
## Your token
|
|
49
|
+
|
|
50
|
+
`SIGRIX_TOKEN` is a runner token for this listing: create one under **Runner tokens** on your Sigrix account's plugins page, <https://sigrix.io/account/plugins>, one for each machine. It covers this one listing, and revoking it there stops this configuration and nothing else. The plugin feed token on the same page works too and covers everything you bought, but regenerating it replaces it everywhere at once.
|
|
51
|
+
|
|
52
|
+
The launcher sends it only in the `Authorization` header of its two requests to Sigrix, never writes it to disk, and starts the seller's server without it — nor any other `SIGRIX_` or `POSTERN_` variable.
|
|
53
|
+
|
|
54
|
+
## When it does not start
|
|
55
|
+
|
|
56
|
+
It prints one sentence on stderr saying why and exits; your client shows it in the server's log.
|
|
57
|
+
|
|
58
|
+
- **Not owned.** The token has not bought this listing, the purchase was refunded, or the token has since been regenerated. Sigrix answers all three the same way on purpose, so the message names all three. Nothing is downloaded.
|
|
59
|
+
- **Offline.** If Sigrix confirmed your purchase within its grace period (a day, for Sigrix) and a version is already installed here, that version starts. Otherwise the launcher asks you to reconnect.
|
|
60
|
+
- **Nothing to install yet.** The seller's newest version may still be waiting for Sigrix's review, or a version may have been withdrawn. A withdrawn version is not started from the cache either.
|
|
61
|
+
- **Withdrawn listing.** Buyers of a listing its seller withdrew keep access for a year; after that, the message gives the date it ended.
|
|
62
|
+
|
|
63
|
+
A refund takes effect at the next start: the purchase is checked when the server starts, not while it runs.
|
|
64
|
+
|
|
65
|
+
## What it keeps on your machine
|
|
66
|
+
|
|
67
|
+
Everything is under one folder: `~/.cache/sigrix-launcher` on Linux, `~/Library/Caches/sigrix-launcher` on macOS, `%LOCALAPPDATA%\sigrix-launcher` on Windows. `SIGRIX_LAUNCHER_HOME` moves it. For each listing: every version you have started, each in its own environment, and Sigrix's last answer about your purchase, stored with a fingerprint of the token rather than the token. Delete the folder whenever you like; the next start downloads again.
|
|
68
|
+
|
|
69
|
+
## Variables
|
|
70
|
+
|
|
71
|
+
| Variable | |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| `SIGRIX_TOKEN` | Required. A runner token for this listing, from the plugins page. |
|
|
74
|
+
| `SIGRIX_LAUNCHER_HOME` | Optional. Where installed versions are kept. |
|
|
75
|
+
| `POSTERN_DISTRIBUTOR` | Optional; defaults to `https://sigrix.io`. For testing against another distributor. Plain `http://` is accepted only to a loopback address. |
|
|
76
|
+
|
|
77
|
+
## Development
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
pip install -e ".[dev]"
|
|
81
|
+
ruff check . && ruff format --check . && pytest
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The tests run a distributor on loopback and, for one of them, install a real wheel and talk to the started server over a real pipe. `src/sigrix_launcher/_postern/` is a copy of the Postern reference runner's client code; change it upstream, never here.
|
|
85
|
+
|
|
86
|
+
## Licence
|
|
87
|
+
|
|
88
|
+
Apache-2.0. The Sigrix name and logo are not covered by the licence — see `NOTICE`.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.25"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sigrix-launcher"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Start a Sigrix-delivered MCP server you bought from the MCP client you already use: checks the purchase, fetches and verifies the package, installs it and hands over stdio."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
authors = [{ name = "Sigrix" }]
|
|
14
|
+
keywords = ["mcp", "model-context-protocol", "sigrix", "postern", "claude-code"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Environment :: Console",
|
|
18
|
+
"Intended Audience :: End Users/Desktop",
|
|
19
|
+
"License :: OSI Approved :: Apache Software License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
]
|
|
25
|
+
# Standard library only, like the runner code it carries: the launcher is
|
|
26
|
+
# started by `uvx` on every client start, and nothing here needs more.
|
|
27
|
+
dependencies = []
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
dev = [
|
|
31
|
+
"pytest>=8",
|
|
32
|
+
"ruff>=0.6",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
sigrix-launcher = "sigrix_launcher.cli:main"
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Homepage = "https://github.com/sigrix-io/sigrix-launcher"
|
|
40
|
+
Issues = "https://github.com/sigrix-io/sigrix-launcher/issues"
|
|
41
|
+
Changelog = "https://github.com/sigrix-io/sigrix-launcher/blob/main/CHANGELOG.md"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.wheel]
|
|
44
|
+
packages = ["src/sigrix_launcher"]
|
|
45
|
+
|
|
46
|
+
[tool.hatch.build.targets.sdist]
|
|
47
|
+
include = ["src/sigrix_launcher", "tests", "README.md", "LICENSE", "NOTICE", "CHANGELOG.md"]
|
|
48
|
+
|
|
49
|
+
[tool.ruff]
|
|
50
|
+
line-length = 120
|
|
51
|
+
target-version = "py311"
|
|
52
|
+
# Vendored from the Postern reference runner and linted there; a change to it
|
|
53
|
+
# belongs upstream, never here (see the header of each file).
|
|
54
|
+
extend-exclude = ["src/sigrix_launcher/_postern"]
|
|
55
|
+
|
|
56
|
+
[tool.ruff.lint]
|
|
57
|
+
select = ["E", "F", "I", "B", "UP", "S"]
|
|
58
|
+
ignore = ["E501"]
|
|
59
|
+
|
|
60
|
+
[tool.ruff.lint.per-file-ignores]
|
|
61
|
+
# S105 and S108 are the fixtures' fake token and fake cache path, which
|
|
62
|
+
# name nothing real.
|
|
63
|
+
"tests/*" = ["S101", "S105", "S108", "S603", "S607"]
|
|
64
|
+
"src/sigrix_launcher/installer.py" = ["S603"]
|
|
65
|
+
|
|
66
|
+
[tool.pytest.ini_options]
|
|
67
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Start a Sigrix-delivered MCP server you bought, from the MCP client you already use.
|
|
2
|
+
|
|
3
|
+
What happens on every start, in order:
|
|
4
|
+
|
|
5
|
+
1. **The purchase is checked.** ``SIGRIX_TOKEN`` is presented to the
|
|
6
|
+
distributor's entitlement check, through the Postern runner's own client
|
|
7
|
+
(``_postern/entitlement.py``): its declared staleness window, its grace
|
|
8
|
+
when the distributor cannot be reached, and a ``404`` as a final answer.
|
|
9
|
+
2. **The package is fetched and verified.** The seller's wheel and its
|
|
10
|
+
manifest arrive as one zip, held in memory until its ``Repr-Digest``
|
|
11
|
+
agrees, then checked again against the checksum in the manifest. Nothing
|
|
12
|
+
is written before both agree, and a version already installed is reused.
|
|
13
|
+
3. **It is installed into an environment of its own** — one per version,
|
|
14
|
+
under the launcher's cache — with ``uv`` when it is on the path and
|
|
15
|
+
``venv`` and ``pip`` otherwise.
|
|
16
|
+
4. **The seller's server is started on this process's stdio**, with the
|
|
17
|
+
launcher's own variables removed from its environment.
|
|
18
|
+
|
|
19
|
+
The launcher writes nothing to stdout: that stream is the MCP connection. It
|
|
20
|
+
never writes the token anywhere; its cache holds a fingerprint of it, so a
|
|
21
|
+
rotated token is a new question rather than an old answer.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
__version__ = "0.1.0"
|
|
25
|
+
|
|
26
|
+
#: The file beside the wheel in a served package, and the only two values of it
|
|
27
|
+
#: this launcher can read. A newer format is refused by name rather than guessed
|
|
28
|
+
#: at — upgrading the launcher is the fix, and the message says so.
|
|
29
|
+
MANIFEST_FILENAME = "sigrix-package.json"
|
|
30
|
+
MANIFEST_KIND = "sigrix-mcp-package"
|
|
31
|
+
SUPPORTED_MANIFEST_FORMAT = 1
|
|
32
|
+
|
|
33
|
+
#: How the launcher names itself on the entitlement check, so the distributor
|
|
34
|
+
#: can tell a package launched on a buyer's machine from a runner bundle.
|
|
35
|
+
DELIVERY_MODE = "connector-local"
|
|
36
|
+
|
|
37
|
+
__all__ = [
|
|
38
|
+
"DELIVERY_MODE",
|
|
39
|
+
"MANIFEST_FILENAME",
|
|
40
|
+
"MANIFEST_KIND",
|
|
41
|
+
"SUPPORTED_MANIFEST_FORMAT",
|
|
42
|
+
"__version__",
|
|
43
|
+
]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Vendored from the Postern reference runner's `sigrix_runtime.postern` package.
|
|
2
|
+
# Do not edit this copy: a change belongs upstream, and is re-vendored from there.
|
|
3
|
+
"""Postern v0 for a Sigrix listing bundle — the reference implementation.
|
|
4
|
+
|
|
5
|
+
Postern (``sigrix-io/postern``) is the open execution and entitlement
|
|
6
|
+
protocol for packaged AI agents: four verbs over local HTTP —
|
|
7
|
+
``describe`` / ``run`` / ``stream`` / ``status`` — and one entitlement flow.
|
|
8
|
+
This package serves them for the bundle it is started inside::
|
|
9
|
+
|
|
10
|
+
python -m sigrix_runtime.postern
|
|
11
|
+
|
|
12
|
+
It is also what the ``sigrix/runner`` image runs as its entrypoint. Those
|
|
13
|
+
are two deployment shapes of one codebase rather than two implementations;
|
|
14
|
+
if they ever diverge, that is the bug.
|
|
15
|
+
|
|
16
|
+
**Nothing here is a second execution path.** ``run`` and ``stream`` reach
|
|
17
|
+
the agent through ``sigrix_runtime.execution``, which is the same function
|
|
18
|
+
``python main.py "…"`` calls. A crew's kickoff inputs are a contract
|
|
19
|
+
spanning several files, and a server that built its own ``crew.kickoff``
|
|
20
|
+
would be one more place for it to drift.
|
|
21
|
+
|
|
22
|
+
**Zero dependencies beyond the standard library.** The bundle's
|
|
23
|
+
``requirements.txt`` is something a buyer installs on their own machine,
|
|
24
|
+
and four routes on loopback do not justify adding a web framework and its
|
|
25
|
+
tree to it. ``http.server`` serves them; ``http.client`` makes the one
|
|
26
|
+
outbound call this protocol defines.
|
|
27
|
+
|
|
28
|
+
Layout:
|
|
29
|
+
|
|
30
|
+
``errors`` the specification's error envelope, as exceptions
|
|
31
|
+
``describe`` the agent's contract: shipped by the distributor, or derived
|
|
32
|
+
``transport`` the one outbound connection, and SPEC 7's rule on it
|
|
33
|
+
``entitlement`` the distributor client and the state machine of SPEC 5.7
|
|
34
|
+
``pull`` bundle retrieval (SPEC 5.6), which is the image's boot step
|
|
35
|
+
``execution`` the run engine — a subprocess per run, so a timeout is real
|
|
36
|
+
``server`` the HTTP surface: routing, CORS, and the SSE framing
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
from __future__ import annotations
|
|
40
|
+
|
|
41
|
+
# The specification version every payload carries. The ``/postern/v0/``
|
|
42
|
+
# path prefix is deliberately coarser than this (SPEC 5.3, VERSIONING.md):
|
|
43
|
+
# the prefix moves only on a breaking revision, and this field is the only
|
|
44
|
+
# sanctioned way to know exactly what you are talking to.
|
|
45
|
+
POSTERN_VERSION = "0.1"
|
|
46
|
+
|
|
47
|
+
# SPEC 3. This runner implements all four verbs, so it reports Level 3.
|
|
48
|
+
# ``stream`` emits no ``delta`` — see ``server`` for why that is conformant
|
|
49
|
+
# rather than a shortfall.
|
|
50
|
+
CONFORMANCE_LEVEL = 3
|
|
51
|
+
|
|
52
|
+
PATH_PREFIX = "/postern/v0"
|
|
53
|
+
|
|
54
|
+
DEFAULT_PORT = 8787
|
|
55
|
+
DEFAULT_HOST = "127.0.0.1"
|
|
56
|
+
|
|
57
|
+
__all__ = [
|
|
58
|
+
"CONFORMANCE_LEVEL",
|
|
59
|
+
"DEFAULT_HOST",
|
|
60
|
+
"DEFAULT_PORT",
|
|
61
|
+
"PATH_PREFIX",
|
|
62
|
+
"POSTERN_VERSION",
|
|
63
|
+
]
|