eclipse-bazaar 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eclipse_bazaar/__init__.py +15 -0
- eclipse_bazaar/_version.py +2 -0
- eclipse_bazaar/catalog.py +166 -0
- eclipse_bazaar/check.py +233 -0
- eclipse_bazaar/cli.py +178 -0
- eclipse_bazaar/client.py +53 -0
- eclipse_bazaar/configparse.py +314 -0
- eclipse_bazaar/data/catalog.json +1 -0
- eclipse_bazaar/data/corpus.jsonl +101 -0
- eclipse_bazaar/data/corpus.manifest.json +8 -0
- eclipse_bazaar/data/verdict_snapshot.json +1825 -0
- eclipse_bazaar/integrations/__init__.py +3 -0
- eclipse_bazaar/integrations/crewai_tools.py +44 -0
- eclipse_bazaar/integrations/langchain_tools.py +43 -0
- eclipse_bazaar/mcp_server.py +314 -0
- eclipse_bazaar-0.1.0.dist-info/METADATA +109 -0
- eclipse_bazaar-0.1.0.dist-info/RECORD +21 -0
- eclipse_bazaar-0.1.0.dist-info/WHEEL +5 -0
- eclipse_bazaar-0.1.0.dist-info/entry_points.txt +3 -0
- eclipse_bazaar-0.1.0.dist-info/licenses/LICENSE +21 -0
- eclipse_bazaar-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Eclipse Bazaar · © 2026 Cyan Eclipse Technologies LLC · cetech.ai
|
|
2
|
+
"""CrewAI adapter — the Bazaar SDK as CrewAI tools, so a crew agent can
|
|
3
|
+
query the marketplace mid-task without an MCP client configured.
|
|
4
|
+
|
|
5
|
+
Install: pip install "eclipse-bazaar[crewai]"
|
|
6
|
+
Usage:
|
|
7
|
+
from eclipse_bazaar.integrations.crewai_tools import make_crewai_tools
|
|
8
|
+
tools = make_crewai_tools()
|
|
9
|
+
"""
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from ..client import Bazaar
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def make_crewai_tools(bazaar: Bazaar = None):
|
|
16
|
+
try:
|
|
17
|
+
from crewai.tools import BaseTool
|
|
18
|
+
except ImportError as e: # pragma: no cover - optional extra
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
"crewai is not installed — "
|
|
21
|
+
"pip install 'eclipse-bazaar[crewai]'") from e
|
|
22
|
+
bz = bazaar or Bazaar()
|
|
23
|
+
|
|
24
|
+
class BazaarSearchTool(BaseTool):
|
|
25
|
+
name: str = "bazaar_search"
|
|
26
|
+
description: str = (
|
|
27
|
+
"Search Eclipse Bazaar (Cyan Eclipse Technologies' catalog of "
|
|
28
|
+
"tested MCP products) by keyword. Input: a search query string. "
|
|
29
|
+
"Returns listings with status and Test Bench verdicts.")
|
|
30
|
+
|
|
31
|
+
def _run(self, query: str) -> str:
|
|
32
|
+
return json.dumps(bz.search(query), indent=1)
|
|
33
|
+
|
|
34
|
+
class BazaarListingTool(BaseTool):
|
|
35
|
+
name: str = "bazaar_get_listing"
|
|
36
|
+
description: str = (
|
|
37
|
+
"Full Eclipse Bazaar catalog entry for one product id, "
|
|
38
|
+
"including its certification block and what was NOT tested. "
|
|
39
|
+
"Input: the product id.")
|
|
40
|
+
|
|
41
|
+
def _run(self, product_id: str) -> str:
|
|
42
|
+
return json.dumps(bz.get_listing(product_id), indent=1)
|
|
43
|
+
|
|
44
|
+
return [BazaarSearchTool(), BazaarListingTool()]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Eclipse Bazaar · © 2026 Cyan Eclipse Technologies LLC · cetech.ai
|
|
2
|
+
"""LangChain adapter — the Bazaar SDK as LangChain tools, so an agent
|
|
3
|
+
mid-task can query the marketplace without an MCP client configured.
|
|
4
|
+
|
|
5
|
+
Install: pip install "eclipse-bazaar[langchain]"
|
|
6
|
+
Usage:
|
|
7
|
+
from eclipse_bazaar.integrations.langchain_tools import make_langchain_tools
|
|
8
|
+
tools = make_langchain_tools()
|
|
9
|
+
"""
|
|
10
|
+
import json
|
|
11
|
+
|
|
12
|
+
from ..client import Bazaar
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def make_langchain_tools(bazaar: Bazaar = None):
|
|
16
|
+
try:
|
|
17
|
+
from langchain_core.tools import BaseTool
|
|
18
|
+
except ImportError as e: # pragma: no cover - optional extra
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
"langchain-core is not installed — "
|
|
21
|
+
"pip install 'eclipse-bazaar[langchain]'") from e
|
|
22
|
+
bz = bazaar or Bazaar()
|
|
23
|
+
|
|
24
|
+
class BazaarSearchTool(BaseTool):
|
|
25
|
+
name: str = "bazaar_search"
|
|
26
|
+
description: str = (
|
|
27
|
+
"Search Eclipse Bazaar (Cyan Eclipse Technologies' catalog of "
|
|
28
|
+
"tested MCP products) by keyword. Returns listings with status "
|
|
29
|
+
"and Test Bench verdicts, plus why each matched.")
|
|
30
|
+
|
|
31
|
+
def _run(self, query: str) -> str:
|
|
32
|
+
return json.dumps(bz.search(query), indent=1)
|
|
33
|
+
|
|
34
|
+
class BazaarListingTool(BaseTool):
|
|
35
|
+
name: str = "bazaar_get_listing"
|
|
36
|
+
description: str = (
|
|
37
|
+
"Full Eclipse Bazaar catalog entry for one product id, "
|
|
38
|
+
"including its certification block and what was NOT tested.")
|
|
39
|
+
|
|
40
|
+
def _run(self, product_id: str) -> str:
|
|
41
|
+
return json.dumps(bz.get_listing(product_id), indent=1)
|
|
42
|
+
|
|
43
|
+
return [BazaarSearchTool(), BazaarListingTool()]
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# Eclipse Bazaar MCP
|
|
3
|
+
# Copyright © 2026 Cyan Eclipse Technologies LLC · cetech.ai
|
|
4
|
+
|
|
5
|
+
"""Eclipse Bazaar MCP — the agent-facing discovery layer for
|
|
6
|
+
Eclipse Bazaar, Cyan Eclipse Technologies' tested MCP marketplace.
|
|
7
|
+
|
|
8
|
+
Powered by Cyan Eclipse Technologies (cetech.ai).
|
|
9
|
+
|
|
10
|
+
Why this exists: agents shop by problem, not by product name. A listing
|
|
11
|
+
in a registry tells an agent a server exists; it does not tell it what
|
|
12
|
+
problem the tool solves, whether anyone tested it, or — just as
|
|
13
|
+
important — what was NOT tested. This server answers those questions
|
|
14
|
+
from the Bazaar catalog:
|
|
15
|
+
|
|
16
|
+
* search_products — keyword search with transparent match reasons
|
|
17
|
+
* find_solutions — problem-first matching with fit explanations
|
|
18
|
+
* get_product — full entry incl. certification + not-tested list
|
|
19
|
+
* compare_products — status / pricing / certification side by side
|
|
20
|
+
* get_certification — latest Test Bench verdict + scorecard summary
|
|
21
|
+
* list_categories — catalog shape, counts by status
|
|
22
|
+
|
|
23
|
+
Honesty rules (inherited from the Bazaar concept): a product with no
|
|
24
|
+
Test Bench verdict says so; spec-stage products are labelled spec and
|
|
25
|
+
never certified; nothing in the catalog is invented — every entry is
|
|
26
|
+
seeded from a bazaar-manifest.json, a Test Bench scorecard, or the
|
|
27
|
+
CETech MCP product slate (see catalog.json "sources").
|
|
28
|
+
|
|
29
|
+
v0.1.0 scope: CETech catalog only. Third-party listings are P2.
|
|
30
|
+
No purchasing yet — purchase hooks are future work: x402 pay-per-call
|
|
31
|
+
for paid tools and an Agent Wallet policy check before any charge.
|
|
32
|
+
|
|
33
|
+
Transport: MCP over stdio (newline-delimited JSON-RPC 2.0), stdlib only.
|
|
34
|
+
Catalog: bundled snapshot (repo mode: the repo-root catalog.json;
|
|
35
|
+
override with $BAZAAR_CATALOG). Scorecards: the stamped verdict
|
|
36
|
+
snapshot bundled in eclipse_bazaar/data (gate A1 — an installed wheel
|
|
37
|
+
never reaches for ../test-bench/results/); repo mode falls back to the
|
|
38
|
+
referenced card when the snapshot lacks the ref.
|
|
39
|
+
"""
|
|
40
|
+
import json
|
|
41
|
+
import re
|
|
42
|
+
import sys
|
|
43
|
+
|
|
44
|
+
from ._version import __version__
|
|
45
|
+
from .catalog import catalog_dict, freshness, scorecard_summary
|
|
46
|
+
|
|
47
|
+
STOP = {"a", "an", "the", "i", "my", "me", "to", "for", "of", "is", "it",
|
|
48
|
+
"can", "do", "does", "need", "want", "give", "get", "with",
|
|
49
|
+
"without", "and", "or", "on", "in", "an", "agent", "agents",
|
|
50
|
+
"mcp", "tool", "tools", "ai"}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class ToolError(Exception):
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def load_catalog() -> dict:
|
|
58
|
+
try:
|
|
59
|
+
return catalog_dict()
|
|
60
|
+
except FileNotFoundError as e:
|
|
61
|
+
raise ToolError(f"catalog not found: {e.filename}")
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def toks(text: str) -> list:
|
|
65
|
+
return [t for t in re.findall(r"[a-z0-9][a-z0-9\-]*", text.lower())
|
|
66
|
+
if len(t) >= 3 and t not in STOP]
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def match_terms(qtoks: list, text: str) -> list:
|
|
70
|
+
tt = set(toks(text))
|
|
71
|
+
return [t for t in qtoks if t in tt]
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def brief(p: dict) -> dict:
|
|
75
|
+
c = p["certification"]
|
|
76
|
+
return {"id": p["id"], "name": p["name"], "vendor": p["vendor"],
|
|
77
|
+
"tagline": p["tagline"], "status": p["status"],
|
|
78
|
+
"pricing_model": p["pricing_model"],
|
|
79
|
+
"categories": p["categories"], "platforms": p["platforms"],
|
|
80
|
+
"certification": {"bench_verdict": c["bench_verdict"],
|
|
81
|
+
"certified": c["certified"]}}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def score_product(p: dict, qtoks: list, weights: dict):
|
|
85
|
+
"""Returns (score, match_reasons[]). weights keyed by field."""
|
|
86
|
+
score, reasons = 0, []
|
|
87
|
+
fields = [("name", p["name"]), ("tagline", p["tagline"]),
|
|
88
|
+
("categories", " ".join(p["categories"])),
|
|
89
|
+
("capabilities", " ".join(p["capabilities"])),
|
|
90
|
+
("problem_statements", " ".join(p["problem_statements"]))]
|
|
91
|
+
for field, text in fields:
|
|
92
|
+
hits = match_terms(qtoks, text)
|
|
93
|
+
if hits:
|
|
94
|
+
score += weights[field] * len(hits)
|
|
95
|
+
reasons.append(f"{field} matched: {', '.join(sorted(set(hits)))}")
|
|
96
|
+
return score, reasons
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# --------------------------------------------------------------------- tools
|
|
100
|
+
def t_search_products(args, cat=None):
|
|
101
|
+
query = str(args.get("query", "")).strip()
|
|
102
|
+
if not query:
|
|
103
|
+
raise ToolError("query is required")
|
|
104
|
+
category = str(args.get("category", "")).strip().lower()
|
|
105
|
+
cat = cat if cat is not None else load_catalog()
|
|
106
|
+
qt = toks(query)
|
|
107
|
+
weights = {"name": 5, "categories": 4, "capabilities": 3,
|
|
108
|
+
"problem_statements": 2, "tagline": 2}
|
|
109
|
+
hits = []
|
|
110
|
+
for p in cat["products"]:
|
|
111
|
+
if category and category not in [c.lower() for c in p["categories"]]:
|
|
112
|
+
continue
|
|
113
|
+
s, reasons = score_product(p, qt, weights)
|
|
114
|
+
if s > 0:
|
|
115
|
+
h = brief(p)
|
|
116
|
+
h["score"] = s
|
|
117
|
+
h["match_reasons"] = reasons
|
|
118
|
+
hits.append(h)
|
|
119
|
+
hits.sort(key=lambda h: (-h["score"], h["name"]))
|
|
120
|
+
return {"query": query, "count": len(hits), "results": hits,
|
|
121
|
+
"data_freshness": freshness(cat)}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def t_find_solutions(args, cat=None):
|
|
125
|
+
problem = str(args.get("problem", "")).strip()
|
|
126
|
+
if not problem:
|
|
127
|
+
raise ToolError("problem is required")
|
|
128
|
+
cat = cat if cat is not None else load_catalog()
|
|
129
|
+
qt = toks(problem)
|
|
130
|
+
weights = {"problem_statements": 4, "capabilities": 3, "categories": 2,
|
|
131
|
+
"name": 2, "tagline": 2}
|
|
132
|
+
out = []
|
|
133
|
+
for p in cat["products"]:
|
|
134
|
+
s, reasons = score_product(p, qt, weights)
|
|
135
|
+
if s > 0:
|
|
136
|
+
c = p["certification"]
|
|
137
|
+
badge = c["bench_verdict"] or (
|
|
138
|
+
"not certified (spec-stage)" if p["status"] == "spec"
|
|
139
|
+
else "not yet certified")
|
|
140
|
+
out.append({
|
|
141
|
+
"id": p["id"], "name": p["name"], "score": s,
|
|
142
|
+
"fit": f"{p['name']} — {p['tagline']} "
|
|
143
|
+
f"Matched on: {'; '.join(reasons)}.",
|
|
144
|
+
"match_reasons": reasons, "status": p["status"],
|
|
145
|
+
"certification_badge": badge,
|
|
146
|
+
"certified": c["certified"],
|
|
147
|
+
"pricing_model": p["pricing_model"],
|
|
148
|
+
"top_capabilities": p["capabilities"][:3]})
|
|
149
|
+
out.sort(key=lambda h: (-h["score"], h["name"]))
|
|
150
|
+
return {"problem": problem, "count": len(out), "solutions": out[:8],
|
|
151
|
+
"data_freshness": freshness(cat)}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def _get(cat, pid):
|
|
155
|
+
for p in cat["products"]:
|
|
156
|
+
if p["id"] == pid:
|
|
157
|
+
return p
|
|
158
|
+
raise ToolError(f"unknown product id: {pid}")
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def t_get_product(args, cat=None):
|
|
162
|
+
pid = str(args.get("id", "")).strip()
|
|
163
|
+
if not pid:
|
|
164
|
+
raise ToolError("id is required")
|
|
165
|
+
cat = cat if cat is not None else load_catalog()
|
|
166
|
+
p = dict(_get(cat, pid))
|
|
167
|
+
p["honesty_note"] = (
|
|
168
|
+
"certification.bench_verdict is null when no Test Bench run exists; "
|
|
169
|
+
"not_tested lists what the bench did not cover — absence of a verdict "
|
|
170
|
+
"is stated, never implied.")
|
|
171
|
+
return {"product": p, "data_freshness": freshness(cat)}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def t_compare_products(args, cat=None):
|
|
175
|
+
ids = args.get("ids") or []
|
|
176
|
+
if not isinstance(ids, list) or len(ids) < 2:
|
|
177
|
+
raise ToolError("ids must be a list of at least two product ids")
|
|
178
|
+
cat = cat if cat is not None else load_catalog()
|
|
179
|
+
rows = []
|
|
180
|
+
for pid in ids:
|
|
181
|
+
p = _get(cat, str(pid))
|
|
182
|
+
c = p["certification"]
|
|
183
|
+
rows.append({"id": p["id"], "name": p["name"], "status": p["status"],
|
|
184
|
+
"pricing_model": p["pricing_model"],
|
|
185
|
+
"certification": c["bench_verdict"] or "none on record",
|
|
186
|
+
"certified": c["certified"],
|
|
187
|
+
"certified_scope": c["certified_scope"],
|
|
188
|
+
"platforms": p["platforms"],
|
|
189
|
+
"categories": p["categories"],
|
|
190
|
+
"capability_count": len(p["capabilities"]),
|
|
191
|
+
"tools": p["tools"]})
|
|
192
|
+
return {"comparison": rows, "data_freshness": freshness(cat)}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def t_get_certification(args, cat=None):
|
|
196
|
+
pid = str(args.get("id", "")).strip()
|
|
197
|
+
if not pid:
|
|
198
|
+
raise ToolError("id is required")
|
|
199
|
+
cat = cat if cat is not None else load_catalog()
|
|
200
|
+
p = _get(cat, pid)
|
|
201
|
+
c = p["certification"]
|
|
202
|
+
base = {"id": p["id"], "name": p["name"], "status": p["status"],
|
|
203
|
+
"bench_verdict": c["bench_verdict"], "certified": c["certified"],
|
|
204
|
+
"certified_scope": c["certified_scope"],
|
|
205
|
+
"scorecard_ref": c["scorecard_ref"],
|
|
206
|
+
"not_tested": c["not_tested"],
|
|
207
|
+
"data_freshness": freshness(cat)}
|
|
208
|
+
if not c["bench_verdict"]:
|
|
209
|
+
base["certification_status"] = (
|
|
210
|
+
"NOT YET CERTIFIED — no Test Bench verdict on record for this "
|
|
211
|
+
"product. " + ("This product is spec-stage (not built), so no "
|
|
212
|
+
"bench run is possible yet." if p["status"] == "spec"
|
|
213
|
+
else "A bench run is pending; treat all capability "
|
|
214
|
+
"claims as vendor-stated, not bench-verified."))
|
|
215
|
+
base["scorecard_summary"] = None
|
|
216
|
+
return base
|
|
217
|
+
base["certification_status"] = (
|
|
218
|
+
f"Bench verdict on record: {c['bench_verdict']} — scope and "
|
|
219
|
+
f"not_tested state exactly what that verdict does and does not cover.")
|
|
220
|
+
ref = c.get("scorecard_ref")
|
|
221
|
+
base["scorecard_summary"] = scorecard_summary(ref) if ref else None
|
|
222
|
+
return base
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def t_list_categories(args, cat=None):
|
|
226
|
+
cat = cat if cat is not None else load_catalog()
|
|
227
|
+
cats = {}
|
|
228
|
+
for p in cat["products"]:
|
|
229
|
+
for cname in p["categories"]:
|
|
230
|
+
e = cats.setdefault(cname, {"category": cname, "total": 0,
|
|
231
|
+
"by_status": {}, "products": []})
|
|
232
|
+
e["total"] += 1
|
|
233
|
+
e["by_status"][p["status"]] = e["by_status"].get(p["status"], 0) + 1
|
|
234
|
+
e["products"].append(p["id"])
|
|
235
|
+
return {"categories": sorted(cats.values(), key=lambda e: e["category"]),
|
|
236
|
+
"product_total": len(cat["products"]),
|
|
237
|
+
"data_freshness": freshness(cat)}
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
TOOLS = {
|
|
241
|
+
"search_products": (t_search_products,
|
|
242
|
+
"Keyword search over the Bazaar catalog (names, capabilities, categories, problem statements). Every hit carries match_reasons — why it matched is never hidden. Optional category filter.",
|
|
243
|
+
{"query": {"type": "string"}, "category": {"type": "string"}}, ["query"]),
|
|
244
|
+
"find_solutions": (t_find_solutions,
|
|
245
|
+
"Describe a problem in plain language; get ranked products with a fit explanation, status, and certification badge inline. Spec-stage products are labelled spec-stage, uncertified products say so.",
|
|
246
|
+
{"problem": {"type": "string"}}, ["problem"]),
|
|
247
|
+
"get_product": (t_get_product,
|
|
248
|
+
"Full catalog entry for one product id: capabilities, problem statements, pricing model, platforms, tools, and the certification block including what was NOT tested.",
|
|
249
|
+
{"id": {"type": "string"}}, ["id"]),
|
|
250
|
+
"compare_products": (t_compare_products,
|
|
251
|
+
"Side-by-side comparison of 2+ product ids: status, pricing model, certification verdict and scope, platforms, categories.",
|
|
252
|
+
{"ids": {"type": "array", "items": {"type": "string"}}}, ["ids"]),
|
|
253
|
+
"get_certification": (t_get_certification,
|
|
254
|
+
"The latest Test Bench verdict for a product, with a live scorecard summary, the certified scope, and the not_tested list. Returns an explicit NOT YET CERTIFIED answer when no verdict exists.",
|
|
255
|
+
{"id": {"type": "string"}}, ["id"]),
|
|
256
|
+
"list_categories": (t_list_categories,
|
|
257
|
+
"All catalog categories with product counts broken down by status (live / dogfood / in-development / spec).",
|
|
258
|
+
{}, []),
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def tool_list():
|
|
263
|
+
return [{"name": name,
|
|
264
|
+
"description": desc,
|
|
265
|
+
"inputSchema": {"type": "object", "properties": props, "required": req}}
|
|
266
|
+
for name, (_, desc, props, req) in TOOLS.items()]
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def handle(req: dict):
|
|
270
|
+
method, rid = req.get("method", ""), req.get("id")
|
|
271
|
+
if method == "initialize":
|
|
272
|
+
return {"jsonrpc": "2.0", "id": rid, "result": {
|
|
273
|
+
"protocolVersion": req.get("params", {}).get("protocolVersion", "2025-03-26"),
|
|
274
|
+
"capabilities": {"tools": {}},
|
|
275
|
+
"serverInfo": {"name": "eclipse-bazaar", "version": __version__}}}
|
|
276
|
+
if method == "ping":
|
|
277
|
+
return {"jsonrpc": "2.0", "id": rid, "result": {}}
|
|
278
|
+
if method == "tools/list":
|
|
279
|
+
return {"jsonrpc": "2.0", "id": rid, "result": {"tools": tool_list()}}
|
|
280
|
+
if method == "tools/call":
|
|
281
|
+
name = req["params"]["name"]
|
|
282
|
+
args = req["params"].get("arguments", {})
|
|
283
|
+
if name not in TOOLS:
|
|
284
|
+
return {"jsonrpc": "2.0", "id": rid, "error": {"code": -32602, "message": f"unknown tool {name}"}}
|
|
285
|
+
try:
|
|
286
|
+
out = TOOLS[name][0](args)
|
|
287
|
+
return {"jsonrpc": "2.0", "id": rid, "result": {
|
|
288
|
+
"content": [{"type": "text", "text": json.dumps(out, indent=1)}]}}
|
|
289
|
+
except ToolError as e:
|
|
290
|
+
return {"jsonrpc": "2.0", "id": rid, "result": {
|
|
291
|
+
"content": [{"type": "text", "text": json.dumps({"error": str(e)})}], "isError": True}}
|
|
292
|
+
if rid is not None:
|
|
293
|
+
return {"jsonrpc": "2.0", "id": rid, "error": {"code": -32601, "message": f"method not found: {method}"}}
|
|
294
|
+
return None # notification
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
def main():
|
|
298
|
+
for line in sys.stdin:
|
|
299
|
+
line = line.strip()
|
|
300
|
+
if not line:
|
|
301
|
+
continue
|
|
302
|
+
try:
|
|
303
|
+
resp = handle(json.loads(line))
|
|
304
|
+
except Exception as e: # never crash the transport
|
|
305
|
+
resp = {"jsonrpc": "2.0", "id": None, "error": {"code": -32603, "message": str(e)}}
|
|
306
|
+
if resp is not None:
|
|
307
|
+
sys.stdout.write(json.dumps(resp) + "\n")
|
|
308
|
+
sys.stdout.flush()
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
if __name__ == "__main__":
|
|
312
|
+
main()
|
|
313
|
+
|
|
314
|
+
# Eclipse Bazaar MCP · © 2026 Cyan Eclipse Technologies LLC · cetech.ai
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eclipse-bazaar
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Eclipse Bazaar — Cyan Eclipse Technologies' catalog of tested MCP products: MCP server, CLI, and Python SDK in one distribution.
|
|
5
|
+
Author: Cyan Eclipse Technologies LLC
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://eclipsebazaar.com
|
|
8
|
+
Project-URL: Repository, https://github.com/CYAN-ECLIPSE-TECHNOLOGIES-LLC/bazaar-mcp
|
|
9
|
+
Project-URL: Vendor, https://cetech.ai
|
|
10
|
+
Keywords: mcp,model-context-protocol,marketplace,catalog,agent-tools
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Provides-Extra: langchain
|
|
20
|
+
Requires-Dist: langchain-core>=0.3; extra == "langchain"
|
|
21
|
+
Provides-Extra: crewai
|
|
22
|
+
Requires-Dist: crewai>=0.80; extra == "crewai"
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# eclipse-bazaar
|
|
26
|
+
|
|
27
|
+
**Eclipse Bazaar is Cyan Eclipse Technologies' own catalog** of tested
|
|
28
|
+
MCP products — at v0.1.0 it lists Cyan Eclipse Technologies products
|
|
29
|
+
only (86 listings). It is not a general index of every MCP server, and
|
|
30
|
+
this package does not claim to be one. Third-party listings are future
|
|
31
|
+
work (P2 on the server's own roadmap).
|
|
32
|
+
|
|
33
|
+
One distribution, three surfaces:
|
|
34
|
+
|
|
35
|
+
## 1. The Bazaar MCP server
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{ "mcpServers": { "eclipse-bazaar": { "command": "uvx", "args": ["eclipse-bazaar"] } } }
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Six tools — `search_products`, `find_solutions`, `get_product`,
|
|
42
|
+
`compare_products`, `get_certification`, `list_categories` — that let an
|
|
43
|
+
agent shop by *problem*, with transparent match reasons. Every listing
|
|
44
|
+
carries its Test Bench verdict and scope, or states plainly that it has
|
|
45
|
+
none; every entry carries a `not_tested` list. A product labelled
|
|
46
|
+
spec-stage is a spec, not a product; an uncertified product says so.
|
|
47
|
+
|
|
48
|
+
Catalog data ships as a stamped snapshot bundled in the wheel, and
|
|
49
|
+
verdict summaries ship as a hash-pinned verdict snapshot generated from
|
|
50
|
+
the Test Bench cards — an installed run never reads files outside the
|
|
51
|
+
package.
|
|
52
|
+
|
|
53
|
+
## 2. The `bazaar` CLI
|
|
54
|
+
|
|
55
|
+
```console
|
|
56
|
+
$ bazaar search "certificate renewal"
|
|
57
|
+
$ bazaar product certbridge-mcp
|
|
58
|
+
$ bazaar categories
|
|
59
|
+
$ bazaar check # classify your configured MCP servers
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`bazaar check` reads your MCP client configs, extracts each configured
|
|
63
|
+
server's *identity* (package / image / URL / local path), and joins it
|
|
64
|
+
locally against the published Bazaar corpus — downloaded whole and
|
|
65
|
+
verified against its sha256 manifest first. Each entry is classified
|
|
66
|
+
`CERTIFIED` (listed, Tier-2 verdict on record), `LISTED` (in the
|
|
67
|
+
catalog, no verdict yet), `NOT LISTED` (no record — a neutral fact), or
|
|
68
|
+
`UNRESOLVABLE` (no identity could be extracted, with the reason).
|
|
69
|
+
Version pins that differ from the listed version are flagged as drift.
|
|
70
|
+
|
|
71
|
+
Privacy, by construction: config `env` **values are never read, copied,
|
|
72
|
+
hashed, logged, or transmitted** — the parser redacts them structurally
|
|
73
|
+
before anything else runs. There is no telemetry. The check never
|
|
74
|
+
executes a configured server and never contacts one.
|
|
75
|
+
|
|
76
|
+
## 3. The Python SDK
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
from eclipse_bazaar import Bazaar
|
|
80
|
+
|
|
81
|
+
bz = Bazaar() # bundled snapshot, works offline
|
|
82
|
+
bz.search("ssl certificate") # same ranking/reasons as the MCP tool
|
|
83
|
+
bz.get_listing("certbridge-mcp")
|
|
84
|
+
bz.check() # the Phase-1 standing check, as a dict
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Optional framework adapters (standard adapter pattern):
|
|
88
|
+
|
|
89
|
+
```console
|
|
90
|
+
$ pip install "eclipse-bazaar[langchain]" # or [crewai]
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
from eclipse_bazaar.integrations.langchain_tools import make_langchain_tools
|
|
95
|
+
tools = make_langchain_tools()
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Scope and honesty
|
|
99
|
+
|
|
100
|
+
- Statuses and verdicts are as of the catalog build date stamped in
|
|
101
|
+
every response (`data_freshness`).
|
|
102
|
+
- Spec-stage listings are labelled spec; in-development listings say
|
|
103
|
+
so; absence of a verdict is stated, never implied.
|
|
104
|
+
- `bazaar check` v0.1 is Phase 1: it speaks only about listing and
|
|
105
|
+
Tier-2 verdict records. Further record classes join the vocabulary
|
|
106
|
+
only when the underlying records themselves are public.
|
|
107
|
+
|
|
108
|
+
Powered by Cyan Eclipse Technologies LLC (cetech.ai) — a Veteran-Owned
|
|
109
|
+
Small Business. MIT licensed.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
eclipse_bazaar/__init__.py,sha256=E5zjKG3MNxJiHZ3wCU4HHP66YR89sOcvXnEJwLLeTDI,592
|
|
2
|
+
eclipse_bazaar/_version.py,sha256=wBlRCELbe_bSWnl6oI25jkE4Wxe61ex-OHqDafxrSls,93
|
|
3
|
+
eclipse_bazaar/catalog.py,sha256=bY7xSTaEUJBrsA-oggePG5RSO59fYYVtVGGZRd9vPDU,6514
|
|
4
|
+
eclipse_bazaar/check.py,sha256=aQA7dDmdDtM3ZT1-IpvZSlU3CW6oX8993WmUgPok-Ko,10185
|
|
5
|
+
eclipse_bazaar/cli.py,sha256=ednopR5KWk4EhRzSCnIyBinw64d0D85aUjKNuYrMHBM,7005
|
|
6
|
+
eclipse_bazaar/client.py,sha256=k2zuY10-Det9l2ghNZpEOjm4zd4sZt5GcydYvFib1is,2284
|
|
7
|
+
eclipse_bazaar/configparse.py,sha256=Gg3ESRKQNLnAywoQ6K2fDWreQVsYHteP1GgFn_uvc_E,12515
|
|
8
|
+
eclipse_bazaar/mcp_server.py,sha256=FqLzXDspR5NTGMAnsqzZUGu1eLxKBmPoJ9HPtN9R8EU,13818
|
|
9
|
+
eclipse_bazaar/data/catalog.json,sha256=mTtlPp6JXqJzuu0s9hBRi6PrPdvUs-7Y4Zw7KG59xPI,444067
|
|
10
|
+
eclipse_bazaar/data/corpus.jsonl,sha256=hZihUiOjcX4G-Wbe0kGBdXcim0Aoa8k_KZiTSAfKYqk,138121
|
|
11
|
+
eclipse_bazaar/data/corpus.manifest.json,sha256=k3_W6iqIz1w6ZBQk2qU5LR580lZG8Yvvq_ZZ14hoLBM,235
|
|
12
|
+
eclipse_bazaar/data/verdict_snapshot.json,sha256=qLslwAsBjXuBUBgmLQGZyyRCKHel8ZJRKTOnhgEt0LA,49952
|
|
13
|
+
eclipse_bazaar/integrations/__init__.py,sha256=cK3XXx6M2vp-CpoVFtCtB9Cyy_wlJRhHWjxJDug6zHY,193
|
|
14
|
+
eclipse_bazaar/integrations/crewai_tools.py,sha256=u6Dbv8-XONg1MwzyBCmMiMmljwnMhdn3p-ThqMiNHqs,1630
|
|
15
|
+
eclipse_bazaar/integrations/langchain_tools.py,sha256=sObSvxHSQ21TuRPpdH8wqr8vE3jIiNb9s-yFIX4KtVU,1621
|
|
16
|
+
eclipse_bazaar-0.1.0.dist-info/licenses/LICENSE,sha256=J64raxD33SRnnCn8p1F-lRl0rnesurM9Jlkd3auDZvA,1086
|
|
17
|
+
eclipse_bazaar-0.1.0.dist-info/METADATA,sha256=M5s099IzuB7obSS-Zmw3xGkTi9X25Z5PZOi7VztPuXM,4280
|
|
18
|
+
eclipse_bazaar-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
19
|
+
eclipse_bazaar-0.1.0.dist-info/entry_points.txt,sha256=ZRXz9qIcm9sPTlH8n7hR5lGiGnImMWSnSfxv3zNQXpk,99
|
|
20
|
+
eclipse_bazaar-0.1.0.dist-info/top_level.txt,sha256=bRBeXTwM8PdEqRu2SI8dFdnM5Kyt1y1GgSG5H9lsTEs,15
|
|
21
|
+
eclipse_bazaar-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cyan Eclipse Technologies LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eclipse_bazaar
|