neuronto 1.0.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.
neuronto-1.0.0/LICENSE ADDED
@@ -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 Neuronto
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,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: neuronto
3
+ Version: 1.0.0
4
+ Summary: Find the MCP servers, skills, agents and APIs that can do a task, across every public Agentic Resource Discovery (ARD) registry at once.
5
+ Author: Neuronto
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://neuronto.com
8
+ Project-URL: Documentation, https://neuronto.com/connect
9
+ Project-URL: Source, https://github.com/neuronto/agentic-resource-discovery
10
+ Project-URL: Issues, https://github.com/neuronto/agentic-resource-discovery/issues
11
+ Keywords: mcp,mcp-server,ard,agentic-resource-discovery,discovery,tool-discovery,registry,agents,ai-agents,llm-tools,search
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
+ Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
17
+ Requires-Python: >=3.9
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: license-file
21
+
22
+ # neuronto
23
+
24
+ Find the MCP servers, skills, agents and APIs that can actually do a task.
25
+
26
+ One call searches this index **and every other public Agentic Resource Discovery
27
+ (ARD) registry at once**, fusing the rankings, so you get one answer across the
28
+ federation instead of a single catalogue's view.
29
+
30
+ No account, no API key, no signup. Python 3.9+. **No dependencies.**
31
+
32
+ ## Command line
33
+
34
+ ```bash
35
+ pip install neuronto
36
+
37
+ neuronto "read a PDF and extract tables"
38
+ neuronto tools "convert currency" # individual tools, not whole servers
39
+ neuronto stats # what the index holds, measured
40
+ neuronto dead # endpoints that stopped answering
41
+ ```
42
+
43
+ Options: `--limit N`, `--kind mcp|api|skill|agent`, `--local` (do not federate),
44
+ `--json`, `--key KEY`.
45
+
46
+ ## From code
47
+
48
+ ```python
49
+ from neuronto import find_resource, find_tool, registry_stats, liveness
50
+
51
+ out = find_resource("post a message to Slack", limit=5)
52
+ for r in out["results"]:
53
+ print(r["displayName"], r["url"], r["score"])
54
+
55
+ # Tool-level search. Names come from each server's own tools/list.
56
+ for t in find_tool("convert currency", limit=5):
57
+ print(t["tool"], "on", t["server"])
58
+ ```
59
+
60
+ ### `find_resource(query, *, limit, kind, federate, api_key)`
61
+
62
+ Returns `{"results": [...], "federation": {...} | None}`. `federation["registries"]`
63
+ says which registries answered and how long each took. A search sent with
64
+ `api_key` is **not recorded at all**.
65
+
66
+ ### `find_tool(query, *, limit)`
67
+
68
+ Results carry `tool` (the server's own name for it), `server`, `endpoint`,
69
+ `score`, `verified`.
70
+
71
+ ### `registry_stats()`
72
+
73
+ The measured state of the ecosystem: what share of probed endpoints answer, how
74
+ many expose the tools they claim, median response. The window the numbers come
75
+ from and their limitations travel in the payload, so a reader who quotes a
76
+ number also gets its caveats.
77
+
78
+ ### `liveness(*, dead=False, since=0, limit=500, cursor=0)`
79
+
80
+ Liveness observations, including the endpoints that stopped answering.
81
+ **Free to use, redistribute and build on. No key, no attribution required.**
82
+ If you run a registry, `dead=True` is the useful half.
83
+
84
+ ### `publish(*, endpoint="", domain="")`
85
+
86
+ Get an endpoint or a domain indexed. Verified rather than trusted: the endpoint
87
+ has to complete a handshake, or the domain has to serve a manifest that parses.
88
+
89
+ ## About the score
90
+
91
+ `score` is **semantic relevance only**. It is not a trust, safety or quality
92
+ rating and must not be presented as one. `verified` is separate and reports what
93
+ was observed by fetching.
94
+
95
+ ## Publishing your own resources
96
+
97
+ This package is the read side. To build and validate an ARD manifest for your own
98
+ domain, use [`ard-publish`](https://pypi.org/project/ard-publish/).
99
+
100
+ ## Privacy
101
+
102
+ There is no column for an IP address, and a keyed search is not recorded.
103
+ Detail, written from the running code: <https://neuronto.com/privacy>.
104
+
105
+ ## Pointing it elsewhere
106
+
107
+ Set `NEURONTO_BASE` to any other ARD registry's base URL; they implement the same
108
+ search interface. The list is at <https://neuronto.com/ard-registries>.
109
+
110
+ ## Licence
111
+
112
+ Apache-2.0.
@@ -0,0 +1,91 @@
1
+ # neuronto
2
+
3
+ Find the MCP servers, skills, agents and APIs that can actually do a task.
4
+
5
+ One call searches this index **and every other public Agentic Resource Discovery
6
+ (ARD) registry at once**, fusing the rankings, so you get one answer across the
7
+ federation instead of a single catalogue's view.
8
+
9
+ No account, no API key, no signup. Python 3.9+. **No dependencies.**
10
+
11
+ ## Command line
12
+
13
+ ```bash
14
+ pip install neuronto
15
+
16
+ neuronto "read a PDF and extract tables"
17
+ neuronto tools "convert currency" # individual tools, not whole servers
18
+ neuronto stats # what the index holds, measured
19
+ neuronto dead # endpoints that stopped answering
20
+ ```
21
+
22
+ Options: `--limit N`, `--kind mcp|api|skill|agent`, `--local` (do not federate),
23
+ `--json`, `--key KEY`.
24
+
25
+ ## From code
26
+
27
+ ```python
28
+ from neuronto import find_resource, find_tool, registry_stats, liveness
29
+
30
+ out = find_resource("post a message to Slack", limit=5)
31
+ for r in out["results"]:
32
+ print(r["displayName"], r["url"], r["score"])
33
+
34
+ # Tool-level search. Names come from each server's own tools/list.
35
+ for t in find_tool("convert currency", limit=5):
36
+ print(t["tool"], "on", t["server"])
37
+ ```
38
+
39
+ ### `find_resource(query, *, limit, kind, federate, api_key)`
40
+
41
+ Returns `{"results": [...], "federation": {...} | None}`. `federation["registries"]`
42
+ says which registries answered and how long each took. A search sent with
43
+ `api_key` is **not recorded at all**.
44
+
45
+ ### `find_tool(query, *, limit)`
46
+
47
+ Results carry `tool` (the server's own name for it), `server`, `endpoint`,
48
+ `score`, `verified`.
49
+
50
+ ### `registry_stats()`
51
+
52
+ The measured state of the ecosystem: what share of probed endpoints answer, how
53
+ many expose the tools they claim, median response. The window the numbers come
54
+ from and their limitations travel in the payload, so a reader who quotes a
55
+ number also gets its caveats.
56
+
57
+ ### `liveness(*, dead=False, since=0, limit=500, cursor=0)`
58
+
59
+ Liveness observations, including the endpoints that stopped answering.
60
+ **Free to use, redistribute and build on. No key, no attribution required.**
61
+ If you run a registry, `dead=True` is the useful half.
62
+
63
+ ### `publish(*, endpoint="", domain="")`
64
+
65
+ Get an endpoint or a domain indexed. Verified rather than trusted: the endpoint
66
+ has to complete a handshake, or the domain has to serve a manifest that parses.
67
+
68
+ ## About the score
69
+
70
+ `score` is **semantic relevance only**. It is not a trust, safety or quality
71
+ rating and must not be presented as one. `verified` is separate and reports what
72
+ was observed by fetching.
73
+
74
+ ## Publishing your own resources
75
+
76
+ This package is the read side. To build and validate an ARD manifest for your own
77
+ domain, use [`ard-publish`](https://pypi.org/project/ard-publish/).
78
+
79
+ ## Privacy
80
+
81
+ There is no column for an IP address, and a keyed search is not recorded.
82
+ Detail, written from the running code: <https://neuronto.com/privacy>.
83
+
84
+ ## Pointing it elsewhere
85
+
86
+ Set `NEURONTO_BASE` to any other ARD registry's base URL; they implement the same
87
+ search interface. The list is at <https://neuronto.com/ard-registries>.
88
+
89
+ ## Licence
90
+
91
+ Apache-2.0.
@@ -0,0 +1,137 @@
1
+ """Find the MCP servers, skills, agents and APIs that can do a task.
2
+
3
+ One call searches this index and every other public Agentic Resource Discovery
4
+ (ARD) registry at once, fusing the rankings, so you get one answer across the
5
+ federation rather than a single catalogue's view.
6
+
7
+ Thin on purpose. Ranking, federation and verification all happen server-side, so
8
+ a fatter client would only add ways for this library and the service to disagree
9
+ about what the index contains. Standard library only: a package whose job is
10
+ helping you find tools should not drag a tree of them in behind it.
11
+
12
+ from neuronto import find_resource
13
+ for r in find_resource("read a PDF and extract tables")["results"]:
14
+ print(r["displayName"], r["url"], r["score"])
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import json
19
+ import os
20
+ import urllib.error
21
+ import urllib.parse
22
+ import urllib.request
23
+
24
+ __version__ = "1.0.0"
25
+ __all__ = ["find_resource", "find_tool", "registry_stats", "liveness", "publish",
26
+ "NeurontoError", "BASE"]
27
+
28
+ BASE = os.environ.get("NEURONTO_BASE", "https://neuronto.com")
29
+ _UA = f"neuronto-python/{__version__} (+https://neuronto.com/connect)"
30
+
31
+
32
+ class NeurontoError(RuntimeError):
33
+ """The index refused or could not answer. Carries the status and body."""
34
+
35
+ def __init__(self, message: str, status: int = 0, body=None):
36
+ super().__init__(message)
37
+ self.status = status
38
+ self.body = body
39
+
40
+
41
+ def _request(path: str, payload=None, *, base: str | None = None,
42
+ api_key: str | None = None, timeout: float = 45.0):
43
+ url = (base or BASE) + path
44
+ data = json.dumps(payload).encode() if payload is not None else None
45
+ headers = {"User-Agent": _UA, "Accept": "application/json"}
46
+ if data:
47
+ headers["Content-Type"] = "application/json"
48
+ if api_key:
49
+ headers["Authorization"] = f"Bearer {api_key}"
50
+ req = urllib.request.Request(url, data=data, headers=headers,
51
+ method="POST" if data else "GET")
52
+ try:
53
+ with urllib.request.urlopen(req, timeout=timeout) as r:
54
+ raw = r.read().decode("utf-8", "replace")
55
+ except urllib.error.HTTPError as e:
56
+ raw = e.read().decode("utf-8", "replace")
57
+ try:
58
+ body = json.loads(raw)
59
+ except ValueError:
60
+ body = {"raw": raw}
61
+ raise NeurontoError(
62
+ body.get("detail") or body.get("error") or f"the index answered {e.code}",
63
+ e.code, body) from None
64
+ except Exception as e: # network, DNS, timeout
65
+ raise NeurontoError(str(e)) from None
66
+ return json.loads(raw) if raw else {}
67
+
68
+
69
+ def find_resource(query: str, *, limit: int = 10, kind: str | None = None,
70
+ federate: bool = True, api_key: str | None = None,
71
+ base: str | None = None, timeout: float = 45.0) -> dict:
72
+ """Search for something that can do a task.
73
+
74
+ `kind` is a media type, e.g. "application/mcp-server+json". `federate=False`
75
+ keeps the query on this index alone. A search sent with `api_key` is not
76
+ recorded at all.
77
+
78
+ Returns {"results": [...], "federation": {...} | None}. Each result carries
79
+ displayName, identifier, type, url, description, score and source. `score`
80
+ is semantic relevance only and is never a trust or safety rating.
81
+ """
82
+ q: dict = {"text": query}
83
+ if kind:
84
+ q["filter"] = {"type": [kind]}
85
+ body: dict = {"query": q, "pageSize": limit}
86
+ if not federate:
87
+ body["federation"] = "none"
88
+ d = _request("/search", body, base=base, api_key=api_key, timeout=timeout)
89
+ return {"results": d.get("results") or [], "federation": d.get("federation")}
90
+
91
+
92
+ def find_tool(query: str, *, limit: int = 10, api_key: str | None = None,
93
+ base: str | None = None, timeout: float = 45.0) -> list:
94
+ """Search individual tools rather than whole servers.
95
+
96
+ Every tool was read from that server's own tools/list, so results carry
97
+ `tool` (the server's own name for it), `server`, `endpoint`, `score` and
98
+ `verified`. Not `name`: that was assumed once and printed nothing.
99
+ """
100
+ d = _request("/tools", {"query": {"text": query}, "pageSize": limit},
101
+ base=base, api_key=api_key, timeout=timeout)
102
+ return d.get("results") or d.get("tools") or []
103
+
104
+
105
+ def registry_stats(*, base: str | None = None, timeout: float = 45.0) -> dict:
106
+ """The measured state of the ecosystem, with its window and limitations."""
107
+ return _request("/state-of-mcp", None, base=base, timeout=timeout)
108
+
109
+
110
+ def liveness(*, dead: bool = False, since: int = 0, limit: int = 500,
111
+ cursor: int = 0, base: str | None = None, timeout: float = 45.0) -> dict:
112
+ """Liveness observations, including endpoints that stopped answering.
113
+
114
+ Free to use, redistribute and build on. No key, no attribution required.
115
+ If you run a registry, `dead=True` is the useful half.
116
+ """
117
+ qs = {"limit": limit}
118
+ if dead:
119
+ qs["dead"] = 1
120
+ if since:
121
+ qs["since"] = since
122
+ if cursor:
123
+ qs["cursor"] = cursor
124
+ return _request("/liveness?" + urllib.parse.urlencode(qs), None,
125
+ base=base, timeout=timeout)
126
+
127
+
128
+ def publish(*, endpoint: str = "", domain: str = "", api_key: str | None = None,
129
+ base: str | None = None, timeout: float = 90.0) -> dict:
130
+ """Get an MCP endpoint or a manifest-publishing domain indexed.
131
+
132
+ Verified rather than trusted: the endpoint has to complete a handshake, or
133
+ the domain has to serve a manifest that parses. A busy index answers 202
134
+ with a queue id and retries on its own, which costs you nothing.
135
+ """
136
+ return _request("/submit", {"endpoint": endpoint, "domain": domain},
137
+ base=base, api_key=api_key, timeout=timeout)
@@ -0,0 +1,124 @@
1
+ """neuronto on the command line: python -m neuronto "read a PDF"."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import json
6
+ import sys
7
+
8
+ from . import (NeurontoError, find_resource, find_tool, liveness, registry_stats,
9
+ __version__)
10
+
11
+ KINDS = {
12
+ "mcp": "application/mcp-server+json",
13
+ "api": "application/vnd.oai.openapi+json",
14
+ "skill": "application/ai-skill+json",
15
+ "agent": "application/ai-agent+json",
16
+ }
17
+
18
+
19
+ def main(argv=None) -> int:
20
+ p = argparse.ArgumentParser(
21
+ prog="neuronto",
22
+ description="Find the MCP servers, skills, agents and APIs that can do a task, "
23
+ "across every public ARD registry at once.")
24
+ p.add_argument("command", nargs="?", default="find",
25
+ help="find (default) | tools | stats | dead")
26
+ p.add_argument("query", nargs="*", help="what you need it to do")
27
+ p.add_argument("--limit", type=int, default=10)
28
+ p.add_argument("--kind", choices=sorted(KINDS))
29
+ p.add_argument("--local", action="store_true",
30
+ help="this index only, do not federate to other ARD registries")
31
+ p.add_argument("--json", action="store_true", help="raw JSON, for piping")
32
+ p.add_argument("--key", help="a verified-domain key; keyed searches are not logged")
33
+ p.add_argument("--version", action="version", version=f"neuronto {__version__}")
34
+ a = p.parse_args(argv)
35
+
36
+ cmd, words = a.command, list(a.query)
37
+ if cmd not in ("find", "tools", "stats", "dead"):
38
+ words.insert(0, cmd)
39
+ cmd = "find"
40
+ query = " ".join(words).strip()
41
+
42
+ try:
43
+ if cmd == "stats":
44
+ s = registry_stats()
45
+ if a.json:
46
+ print(json.dumps(s, indent=2)); return 0
47
+ print(f"{s['index']['entries']:,} resources from "
48
+ f"{s['index']['publishers']:,} publishers")
49
+ print(f"{s['reachability']['share_answering_pct']}% of probed endpoints answer "
50
+ f"({s['reachability']['not_answering']:,} do not)")
51
+ print(f"{s['tools']['verified_tools_total']:,} verified tools, "
52
+ f"median {s['tools']['median_tools_per_server']} per server")
53
+ print(f"\nmeasured over {s['window']['days']} days, "
54
+ f"{s['window']['observations']:,} recorded changes")
55
+ return 0
56
+
57
+ if cmd == "dead":
58
+ d = liveness(dead=True, limit=a.limit)
59
+ if a.json:
60
+ print(json.dumps(d, indent=2)); return 0
61
+ print(f"{d['count']} endpoint(s) that stopped answering:\n")
62
+ for i in d["items"]:
63
+ print(f" {i['http_status'] or '---'} {i['url']}")
64
+ print("\nfree to reuse, no attribution required")
65
+ return 0
66
+
67
+ if not query:
68
+ p.print_help(); return 2
69
+
70
+ if cmd == "tools":
71
+ tools = find_tool(query, limit=a.limit, api_key=a.key)
72
+ if a.json:
73
+ print(json.dumps(tools, indent=2)); return 0
74
+ if not tools:
75
+ print(f'No verified tool matches "{query}".'); return 1
76
+ print(f'{len(tools)} tool(s) for "{query}":\n')
77
+ for i, t in enumerate(tools, 1):
78
+ print(f"{i:>2}. {t.get('tool') or 'unnamed'}")
79
+ if t.get("server"):
80
+ print(f" on {t['server']} {t.get('endpoint', '')}".rstrip())
81
+ if t.get("description"):
82
+ print(f" {str(t['description'])[:150]}")
83
+ print()
84
+ print("every tool above was read from that server's own tools/list")
85
+ return 0
86
+
87
+ out = find_resource(query, limit=a.limit, kind=KINDS.get(a.kind or ""),
88
+ federate=not a.local, api_key=a.key)
89
+ if a.json:
90
+ print(json.dumps(out, indent=2)); return 0
91
+ results = out["results"]
92
+ if not results:
93
+ print(f'Nothing matched "{query}" in this index or the registries it federates.')
94
+ return 1
95
+ fed = out.get("federation") or {}
96
+ regs = [r for r in (fed.get("registries") or []) if r.get("ok")]
97
+ extra = f", {len(regs)} registries answered" if regs else ""
98
+ print(f'{len(results)} match(es) for "{query}"{extra}:\n')
99
+ for i, r in enumerate(results, 1):
100
+ bits = []
101
+ if r.get("type"):
102
+ bits.append(str(r["type"]).replace("application/", ""))
103
+ if isinstance(r.get("score"), (int, float)):
104
+ bits.append(f"relevance {r['score']}")
105
+ print(f"{i:>2}. {r.get('displayName') or r.get('identifier') or 'unnamed'}")
106
+ if bits:
107
+ print(" " + " · ".join(bits))
108
+ if r.get("url"):
109
+ print(f" {r['url']}")
110
+ if r.get("description"):
111
+ print(f" {str(r['description'])[:150]}")
112
+ print()
113
+ print("score is relevance only, never a trust or safety rating")
114
+ return 0
115
+
116
+ except NeurontoError as e:
117
+ print(f"neuronto: {e}", file=sys.stderr)
118
+ return 1
119
+ except KeyboardInterrupt:
120
+ return 130
121
+
122
+
123
+ if __name__ == "__main__":
124
+ sys.exit(main())
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: neuronto
3
+ Version: 1.0.0
4
+ Summary: Find the MCP servers, skills, agents and APIs that can do a task, across every public Agentic Resource Discovery (ARD) registry at once.
5
+ Author: Neuronto
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://neuronto.com
8
+ Project-URL: Documentation, https://neuronto.com/connect
9
+ Project-URL: Source, https://github.com/neuronto/agentic-resource-discovery
10
+ Project-URL: Issues, https://github.com/neuronto/agentic-resource-discovery/issues
11
+ Keywords: mcp,mcp-server,ard,agentic-resource-discovery,discovery,tool-discovery,registry,agents,ai-agents,llm-tools,search
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
+ Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
17
+ Requires-Python: >=3.9
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: license-file
21
+
22
+ # neuronto
23
+
24
+ Find the MCP servers, skills, agents and APIs that can actually do a task.
25
+
26
+ One call searches this index **and every other public Agentic Resource Discovery
27
+ (ARD) registry at once**, fusing the rankings, so you get one answer across the
28
+ federation instead of a single catalogue's view.
29
+
30
+ No account, no API key, no signup. Python 3.9+. **No dependencies.**
31
+
32
+ ## Command line
33
+
34
+ ```bash
35
+ pip install neuronto
36
+
37
+ neuronto "read a PDF and extract tables"
38
+ neuronto tools "convert currency" # individual tools, not whole servers
39
+ neuronto stats # what the index holds, measured
40
+ neuronto dead # endpoints that stopped answering
41
+ ```
42
+
43
+ Options: `--limit N`, `--kind mcp|api|skill|agent`, `--local` (do not federate),
44
+ `--json`, `--key KEY`.
45
+
46
+ ## From code
47
+
48
+ ```python
49
+ from neuronto import find_resource, find_tool, registry_stats, liveness
50
+
51
+ out = find_resource("post a message to Slack", limit=5)
52
+ for r in out["results"]:
53
+ print(r["displayName"], r["url"], r["score"])
54
+
55
+ # Tool-level search. Names come from each server's own tools/list.
56
+ for t in find_tool("convert currency", limit=5):
57
+ print(t["tool"], "on", t["server"])
58
+ ```
59
+
60
+ ### `find_resource(query, *, limit, kind, federate, api_key)`
61
+
62
+ Returns `{"results": [...], "federation": {...} | None}`. `federation["registries"]`
63
+ says which registries answered and how long each took. A search sent with
64
+ `api_key` is **not recorded at all**.
65
+
66
+ ### `find_tool(query, *, limit)`
67
+
68
+ Results carry `tool` (the server's own name for it), `server`, `endpoint`,
69
+ `score`, `verified`.
70
+
71
+ ### `registry_stats()`
72
+
73
+ The measured state of the ecosystem: what share of probed endpoints answer, how
74
+ many expose the tools they claim, median response. The window the numbers come
75
+ from and their limitations travel in the payload, so a reader who quotes a
76
+ number also gets its caveats.
77
+
78
+ ### `liveness(*, dead=False, since=0, limit=500, cursor=0)`
79
+
80
+ Liveness observations, including the endpoints that stopped answering.
81
+ **Free to use, redistribute and build on. No key, no attribution required.**
82
+ If you run a registry, `dead=True` is the useful half.
83
+
84
+ ### `publish(*, endpoint="", domain="")`
85
+
86
+ Get an endpoint or a domain indexed. Verified rather than trusted: the endpoint
87
+ has to complete a handshake, or the domain has to serve a manifest that parses.
88
+
89
+ ## About the score
90
+
91
+ `score` is **semantic relevance only**. It is not a trust, safety or quality
92
+ rating and must not be presented as one. `verified` is separate and reports what
93
+ was observed by fetching.
94
+
95
+ ## Publishing your own resources
96
+
97
+ This package is the read side. To build and validate an ARD manifest for your own
98
+ domain, use [`ard-publish`](https://pypi.org/project/ard-publish/).
99
+
100
+ ## Privacy
101
+
102
+ There is no column for an IP address, and a keyed search is not recorded.
103
+ Detail, written from the running code: <https://neuronto.com/privacy>.
104
+
105
+ ## Pointing it elsewhere
106
+
107
+ Set `NEURONTO_BASE` to any other ARD registry's base URL; they implement the same
108
+ search interface. The list is at <https://neuronto.com/ard-registries>.
109
+
110
+ ## Licence
111
+
112
+ Apache-2.0.
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ neuronto/__init__.py
5
+ neuronto/__main__.py
6
+ neuronto.egg-info/PKG-INFO
7
+ neuronto.egg-info/SOURCES.txt
8
+ neuronto.egg-info/dependency_links.txt
9
+ neuronto.egg-info/entry_points.txt
10
+ neuronto.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ neuronto = neuronto.__main__:main
@@ -0,0 +1 @@
1
+ neuronto
@@ -0,0 +1,34 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "neuronto"
7
+ version = "1.0.0"
8
+ description = "Find the MCP servers, skills, agents and APIs that can do a task, across every public Agentic Resource Discovery (ARD) registry at once."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = "Apache-2.0"
12
+ authors = [{ name = "Neuronto" }]
13
+ keywords = ["mcp", "mcp-server", "ard", "agentic-resource-discovery", "discovery",
14
+ "tool-discovery", "registry", "agents", "ai-agents", "llm-tools", "search"]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Developers",
18
+ "Programming Language :: Python :: 3",
19
+ "Topic :: Software Development :: Libraries :: Python Modules",
20
+ "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
21
+ ]
22
+ dependencies = []
23
+
24
+ [project.urls]
25
+ Homepage = "https://neuronto.com"
26
+ Documentation = "https://neuronto.com/connect"
27
+ Source = "https://github.com/neuronto/agentic-resource-discovery"
28
+ Issues = "https://github.com/neuronto/agentic-resource-discovery/issues"
29
+
30
+ [project.scripts]
31
+ neuronto = "neuronto.__main__:main"
32
+
33
+ [tool.setuptools]
34
+ packages = ["neuronto"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+