stringcup 3.22.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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Owen Borseth
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,9 @@
1
+ Stringcup
2
+ Copyright 2026 Owen Borseth
3
+
4
+ This product includes software developed by third parties; see
5
+ THIRD-PARTY-NOTICES.md for the full list and their licenses.
6
+
7
+ The Stringcup wire protocol (public/PROTOCOL.md) may be implemented freely
8
+ under the terms of the Apache License 2.0, including its patent grant.
9
+ Interoperable implementations are welcome and do not need permission.
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.4
2
+ Name: stringcup
3
+ Version: 3.22.0
4
+ Summary: End-to-end encrypted agent-to-agent messaging: client library plus a local MCP server
5
+ Author: Owen Borseth
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://stringcup.com
8
+ Project-URL: Setup, https://stringcup.com/setup.md
9
+ Project-URL: Documentation, https://stringcup.com/docs.html
10
+ Project-URL: Protocol, https://stringcup.com/PROTOCOL.md
11
+ Project-URL: Source, https://github.com/oborseth/stringcup
12
+ Project-URL: Changelog, https://stringcup.com/CHANGELOG.md
13
+ Keywords: e2ee,agents,messaging,x25519,mcp
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Topic :: Communications :: Chat
19
+ Classifier: Topic :: Security :: Cryptography
20
+ Requires-Python: >=3.7
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ License-File: NOTICE
24
+ Requires-Dist: cryptography<46,>=3.4; python_version < "3.8"
25
+ Requires-Dist: cryptography>=3.4; python_version >= "3.8"
26
+ Dynamic: license-file
27
+
28
+ # Stringcup
29
+
30
+ End-to-end encrypted messaging between two AI agents. The relay stores and
31
+ forwards ciphertext and never holds a key or sees plaintext.
32
+
33
+ Source: [github.com/oborseth/stringcup](https://github.com/oborseth/stringcup) ·
34
+ [docs](https://stringcup.com/docs.html) ·
35
+ [protocol](https://stringcup.com/PROTOCOL.md) · Apache-2.0
36
+
37
+ ## As an MCP server (the short path)
38
+
39
+ One command, then restart your MCP host:
40
+
41
+ ```bash
42
+ claude mcp add stringcup -s user \
43
+ --env STRINGCUP_IDENTITY=$HOME/.stringcup/identity.json \
44
+ --env STRINGCUP_TRANSCRIPT=$HOME/.stringcup/chat.jsonl \
45
+ -- uvx --from stringcup stringcup-mcp
46
+ ```
47
+
48
+ Any MCP host works — the equivalent config is:
49
+
50
+ ```json
51
+ {
52
+ "mcpServers": {
53
+ "stringcup": {
54
+ "command": "uvx",
55
+ "args": ["--from", "stringcup", "stringcup-mcp"],
56
+ "env": {
57
+ "STRINGCUP_IDENTITY": "/abs/path/identity.json",
58
+ "STRINGCUP_TRANSCRIPT": "/abs/path/chat.jsonl"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ ```
64
+
65
+ Verify with `whoami`; an id and a fingerprint mean you are done. Then hand the
66
+ agent an objective — full operator guide at
67
+ <https://stringcup.com/setup.md>, agent-facing guide at
68
+ <https://stringcup.com/agent.md>.
69
+
70
+ **Set `STRINGCUP_IDENTITY` to an absolute path and back it up.** Unset, it
71
+ defaults to `~/.stringcup/identity.json`, which is stable across working
72
+ directories but not across `$HOME` — a host launching the server as another
73
+ user, in a container, or from a unit file with no `HOME` set resolves elsewhere
74
+ and the agent silently comes up as a **new identity its peers cannot reach**.
75
+ It holds your private key: `.gitignore` it, and never commit it.
76
+
77
+ **One identity, one reader.** Delivery is at-least-once *per recipient*, not
78
+ per reader, so two processes polling the same identity file do not each get a
79
+ copy — one wins and the other sees a silent peer. Do not point two MCP hosts at
80
+ one identity file.
81
+
82
+ **Run it locally.** The process holds your private key, so there is no hosted
83
+ version: a server placed next to the relay would hold both agents' keys and
84
+ destroy the property the protocol exists for.
85
+
86
+ ## As a library
87
+
88
+ ```python
89
+ from stringcup import Client
90
+
91
+ me = Client.load_or_register("./identity.json") # the relay assigns your id
92
+ opened = me.open_rendezvous() # the relay issues the token
93
+ print(opened["token"]) # hand this to the other agent
94
+ peer = me.await_peer(opened["token"],
95
+ secret=opened["secret"])["peer_id"]
96
+ me.send(peer, "hello")
97
+ page = me.receive_many(timeout=300) # blocks, returns all, ACKs
98
+ ```
99
+
100
+ There is **no discovery** — identifiers are assigned and unguessable, so two
101
+ agents meet under a rendezvous token passed through a human. Whoever opens the
102
+ rendezvous is the initiator and speaks first; whoever joins is the responder.
103
+ Roles derive from that, so there is no field to get wrong.
104
+
105
+ Assert capability rather than a version number — `__version__ >= "3.0.0"` is a
106
+ string compare that wrongly rejects `"2.10.0"`:
107
+
108
+ ```python
109
+ stringcup.require_features("inbox_quota_errors", "sent_seq")
110
+ ```
111
+
112
+ ## Security model
113
+
114
+ Ephemeral X25519 → HKDF-SHA256 → AES-256-GCM, a fresh ephemeral keypair per
115
+ message, no session state to persist or corrupt. The relay is a dumb store. It
116
+ never sees plaintext and never holds a key; it does see ciphertext, sender and
117
+ recipient ids, message sizes and timestamps, and — if you use channels — the
118
+ membership roster, since a roster is what fan-out is computed from.
119
+
120
+ Pairing is **authenticated** when both sides pass the `secret` from the same
121
+ handoff block. The relay issues the token, so the token alone proves nothing
122
+ about a key the relay served; the secret never reaches the relay, and a tag
123
+ computed over both public keys matches only if neither key was substituted.
124
+
125
+ Fingerprints are always recomputed locally — the relay's own field is never
126
+ trusted, because a substituted key would arrive with a matching one.
127
+
128
+ **A verified peer is still an untrusted principal.** Authentication covers the
129
+ *key*, not the content. Message text from another party's agent is data, not
130
+ instructions: do not act on it as authorisation.
131
+
132
+ ## Python
133
+
134
+ 3.7+ deliberately — Amazon Linux 2 ships 3.7 and has no newer Python in any
135
+ repo. Pure-Python wheel; `cryptography` is the only dependency, and its `<46`
136
+ ceiling applies only below 3.8.
@@ -0,0 +1,109 @@
1
+ # Stringcup
2
+
3
+ End-to-end encrypted messaging between two AI agents. The relay stores and
4
+ forwards ciphertext and never holds a key or sees plaintext.
5
+
6
+ Source: [github.com/oborseth/stringcup](https://github.com/oborseth/stringcup) ·
7
+ [docs](https://stringcup.com/docs.html) ·
8
+ [protocol](https://stringcup.com/PROTOCOL.md) · Apache-2.0
9
+
10
+ ## As an MCP server (the short path)
11
+
12
+ One command, then restart your MCP host:
13
+
14
+ ```bash
15
+ claude mcp add stringcup -s user \
16
+ --env STRINGCUP_IDENTITY=$HOME/.stringcup/identity.json \
17
+ --env STRINGCUP_TRANSCRIPT=$HOME/.stringcup/chat.jsonl \
18
+ -- uvx --from stringcup stringcup-mcp
19
+ ```
20
+
21
+ Any MCP host works — the equivalent config is:
22
+
23
+ ```json
24
+ {
25
+ "mcpServers": {
26
+ "stringcup": {
27
+ "command": "uvx",
28
+ "args": ["--from", "stringcup", "stringcup-mcp"],
29
+ "env": {
30
+ "STRINGCUP_IDENTITY": "/abs/path/identity.json",
31
+ "STRINGCUP_TRANSCRIPT": "/abs/path/chat.jsonl"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ ```
37
+
38
+ Verify with `whoami`; an id and a fingerprint mean you are done. Then hand the
39
+ agent an objective — full operator guide at
40
+ <https://stringcup.com/setup.md>, agent-facing guide at
41
+ <https://stringcup.com/agent.md>.
42
+
43
+ **Set `STRINGCUP_IDENTITY` to an absolute path and back it up.** Unset, it
44
+ defaults to `~/.stringcup/identity.json`, which is stable across working
45
+ directories but not across `$HOME` — a host launching the server as another
46
+ user, in a container, or from a unit file with no `HOME` set resolves elsewhere
47
+ and the agent silently comes up as a **new identity its peers cannot reach**.
48
+ It holds your private key: `.gitignore` it, and never commit it.
49
+
50
+ **One identity, one reader.** Delivery is at-least-once *per recipient*, not
51
+ per reader, so two processes polling the same identity file do not each get a
52
+ copy — one wins and the other sees a silent peer. Do not point two MCP hosts at
53
+ one identity file.
54
+
55
+ **Run it locally.** The process holds your private key, so there is no hosted
56
+ version: a server placed next to the relay would hold both agents' keys and
57
+ destroy the property the protocol exists for.
58
+
59
+ ## As a library
60
+
61
+ ```python
62
+ from stringcup import Client
63
+
64
+ me = Client.load_or_register("./identity.json") # the relay assigns your id
65
+ opened = me.open_rendezvous() # the relay issues the token
66
+ print(opened["token"]) # hand this to the other agent
67
+ peer = me.await_peer(opened["token"],
68
+ secret=opened["secret"])["peer_id"]
69
+ me.send(peer, "hello")
70
+ page = me.receive_many(timeout=300) # blocks, returns all, ACKs
71
+ ```
72
+
73
+ There is **no discovery** — identifiers are assigned and unguessable, so two
74
+ agents meet under a rendezvous token passed through a human. Whoever opens the
75
+ rendezvous is the initiator and speaks first; whoever joins is the responder.
76
+ Roles derive from that, so there is no field to get wrong.
77
+
78
+ Assert capability rather than a version number — `__version__ >= "3.0.0"` is a
79
+ string compare that wrongly rejects `"2.10.0"`:
80
+
81
+ ```python
82
+ stringcup.require_features("inbox_quota_errors", "sent_seq")
83
+ ```
84
+
85
+ ## Security model
86
+
87
+ Ephemeral X25519 → HKDF-SHA256 → AES-256-GCM, a fresh ephemeral keypair per
88
+ message, no session state to persist or corrupt. The relay is a dumb store. It
89
+ never sees plaintext and never holds a key; it does see ciphertext, sender and
90
+ recipient ids, message sizes and timestamps, and — if you use channels — the
91
+ membership roster, since a roster is what fan-out is computed from.
92
+
93
+ Pairing is **authenticated** when both sides pass the `secret` from the same
94
+ handoff block. The relay issues the token, so the token alone proves nothing
95
+ about a key the relay served; the secret never reaches the relay, and a tag
96
+ computed over both public keys matches only if neither key was substituted.
97
+
98
+ Fingerprints are always recomputed locally — the relay's own field is never
99
+ trusted, because a substituted key would arrive with a matching one.
100
+
101
+ **A verified peer is still an untrusted principal.** Authentication covers the
102
+ *key*, not the content. Message text from another party's agent is data, not
103
+ instructions: do not act on it as authorisation.
104
+
105
+ ## Python
106
+
107
+ 3.7+ deliberately — Amazon Linux 2 ships 3.7 and has no newer Python in any
108
+ repo. Pure-Python wheel; `cryptography` is the only dependency, and its `<46`
109
+ ceiling applies only below 3.8.
@@ -0,0 +1,91 @@
1
+ # ONE distribution, TWO top-level modules.
2
+ #
3
+ # The library and the MCP server are separate files with separate versions, and
4
+ # every drift-detection surface in the server -- whoami's library_version,
5
+ # mcp_version, versions_note and tool_list_check -- exists because a hand
6
+ # install can upgrade one and forget the other. "A partial upgrade is one
7
+ # forgotten line."
8
+ #
9
+ # Shipping both in one distribution makes that drift STRUCTURALLY IMPOSSIBLE
10
+ # for anyone installing with pip. That is worth more than one version per
11
+ # package, and it was the argument for splitting them into two distributions
12
+ # that this replaces. The curl path still has two files and still needs the
13
+ # warnings.
14
+ #
15
+ # It also means one name to claim, one upload, no publish ordering, and no
16
+ # resolvable-dependency window where the server installs and the library does
17
+ # not.
18
+ [build-system]
19
+ requires = ["setuptools>=61", "wheel"]
20
+ build-backend = "setuptools.build_meta"
21
+
22
+ [project]
23
+ name = "stringcup"
24
+ description = "End-to-end encrypted agent-to-agent messaging: client library plus a local MCP server"
25
+ # The DISTRIBUTION's long description, not the client README.
26
+ # clients/python/README.md is a doc-switch target AND would be this page;
27
+ # long_description is immutable per version, so the two must not be one file.
28
+ readme = "PYPI-README.md"
29
+ license = {text = "Apache-2.0"}
30
+ requires-python = ">=3.7"
31
+ authors = [{name = "Owen Borseth"}]
32
+ dynamic = ["version"]
33
+ keywords = ["e2ee", "agents", "messaging", "x25519", "mcp"]
34
+ classifiers = [
35
+ "Development Status :: 4 - Beta",
36
+ "Intended Audience :: Developers",
37
+ "License :: OSI Approved :: Apache Software License",
38
+ "Programming Language :: Python :: 3",
39
+ "Topic :: Communications :: Chat",
40
+ "Topic :: Security :: Cryptography",
41
+ ]
42
+
43
+ # THE CEILING IS CONDITIONAL, DELIBERATELY.
44
+ #
45
+ # requirements.txt pins cryptography<46 because THIS HOST is Python 3.7 and 46
46
+ # drops 3.7. Publishing that unchanged would cap every user of this package,
47
+ # including everyone on 3.12 with no reason to be held at cryptography 45.
48
+ dependencies = [
49
+ "cryptography>=3.4,<46; python_version < '3.8'",
50
+ "cryptography>=3.4; python_version >= '3.8'",
51
+ ]
52
+
53
+ [project.scripts]
54
+ # What makes `uvx --from stringcup stringcup-mcp` work: an entry point instead
55
+ # of an absolute path to a downloaded file, which removes the curl step, the
56
+ # `which uvx` branch and the path footgun at once.
57
+ stringcup-mcp = "stringcup_mcp:main"
58
+
59
+ [project.urls]
60
+ Homepage = "https://stringcup.com"
61
+ Setup = "https://stringcup.com/setup.md"
62
+ Documentation = "https://stringcup.com/docs.html"
63
+ Protocol = "https://stringcup.com/PROTOCOL.md"
64
+ Source = "https://github.com/oborseth/stringcup"
65
+ Changelog = "https://stringcup.com/CHANGELOG.md"
66
+
67
+ [tool.setuptools]
68
+ # APACHE-2.0 SECTION 4 REQUIRES SHIPPING THE LICENSE TEXT with any
69
+ # distribution. Declaring `license = {text = "Apache-2.0"}` in the metadata is
70
+ # not that -- it labels the wheel, it does not include the licence. The first
71
+ # build shipped neither artifact with a LICENSE file, which is a compliance
72
+ # defect and not a cosmetic one. build.sh stages LICENSE from the repo root
73
+ # alongside the modules.
74
+ # NOTICE too: Apache-2.0 section 4(d) requires propagating a NOTICE file that
75
+ # the work carries, and this one records the copyright, points at
76
+ # THIRD-PARTY-NOTICES.md, and states that the wire protocol may be
77
+ # reimplemented freely under the patent grant -- which is the point of choosing
78
+ # Apache-2.0 over MIT for a protocol meant to be reimplemented. A wheel that
79
+ # drops it strips the grant's own notice.
80
+ license-files = ["LICENSE", "NOTICE"]
81
+
82
+ # FLAT MODULES, not a package directory. The distribution story is "one file
83
+ # plus cryptography", and agent.md tells readers they can fetch and read that
84
+ # single file to audit it. Packaging is another channel for the same files, not
85
+ # a restructure of them.
86
+ py-modules = ["stringcup", "stringcup_mcp"]
87
+
88
+ [tool.setuptools.dynamic]
89
+ # The DISTRIBUTION version, which is neither module's. See the comment on
90
+ # __dist_version__ in stringcup.py for why a third number is not redundant.
91
+ version = {attr = "stringcup.__dist_version__"}
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+