hugging-bay-mcp 0.1.0

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.
Files changed (5) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/index.mjs +1976 -0
  4. package/package.json +40 -0
  5. package/server.json +42 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hugging Bay
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.
package/README.md ADDED
@@ -0,0 +1,120 @@
1
+ # hugging-bay-mcp
2
+
3
+ Model Context Protocol (MCP) server for [Hugging Bay](https://huggingbay.xyz) — the
4
+ agent-friendly open AI catalog. It exposes Hugging Bay's public catalog search, hosted
5
+ downloads, trust/provenance signals, mirror demand, curated stacks, citation-ready answer
6
+ packs, and agent-discovery contracts as MCP tools that any MCP client (Claude Desktop,
7
+ Cursor, and others) can call.
8
+
9
+ The server is a thin **stdio** launcher that proxies to the live Hugging Bay API. Public
10
+ read-only tools work with no credentials; authenticated watchlist and publisher tools
11
+ activate when you supply a Hugging Bay bearer token.
12
+
13
+ - Live remote MCP endpoint (streamable-http): `https://huggingbay.xyz/api/mcp`
14
+ - Canonical tool catalog / discovery doc: <https://huggingbay.xyz/.well-known/mcp.json>
15
+
16
+ ## Install / run
17
+
18
+ No install needed — run it on demand with npx:
19
+
20
+ ```bash
21
+ npx hugging-bay-mcp
22
+ ```
23
+
24
+ Or install globally:
25
+
26
+ ```bash
27
+ npm install -g hugging-bay-mcp
28
+ hugging-bay-mcp
29
+ ```
30
+
31
+ ## Environment variables
32
+
33
+ | Variable | Required | Default | Purpose |
34
+ | --- | --- | --- | --- |
35
+ | `HUGGING_BAY_API` | no | `https://huggingbay.xyz` | Hugging Bay API base URL. |
36
+ | `HUGGING_BAY_TOKEN` | no | — | Bearer token (`hb_...`). Enables authenticated watchlist and publisher/admin tools. Public tools work without it. |
37
+
38
+ `HUGGING_BAY_ADMIN_TOKEN`, `HUGGING_BAY_PUBLISHER_TOKEN`, and `HUGGING_BAY_READER_TOKEN`
39
+ are also honored as fallbacks for `HUGGING_BAY_TOKEN`.
40
+
41
+ ## Claude Desktop
42
+
43
+ Add to `claude_desktop_config.json`
44
+ (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`):
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "hugging-bay": {
50
+ "command": "npx",
51
+ "args": ["-y", "hugging-bay-mcp"],
52
+ "env": {
53
+ "HUGGING_BAY_API": "https://huggingbay.xyz"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ To enable authenticated tools, add your token to `env`:
61
+
62
+ ```json
63
+ "env": {
64
+ "HUGGING_BAY_API": "https://huggingbay.xyz",
65
+ "HUGGING_BAY_TOKEN": "hb_your_token_here"
66
+ }
67
+ ```
68
+
69
+ ## Cursor
70
+
71
+ Add to `~/.cursor/mcp.json` (or a project `.cursor/mcp.json`):
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "hugging-bay": {
77
+ "command": "npx",
78
+ "args": ["-y", "hugging-bay-mcp"],
79
+ "env": {
80
+ "HUGGING_BAY_API": "https://huggingbay.xyz"
81
+ }
82
+ }
83
+ }
84
+ }
85
+ ```
86
+
87
+ ## Tool catalog
88
+
89
+ The server ships a large set of tools. The authoritative, always-current list (names,
90
+ descriptions, and input schemas) is published at
91
+ <https://huggingbay.xyz/.well-known/mcp.json>. Highlights:
92
+
93
+ - **Discovery & search** — `search_artifacts`, `resolve_artifact`, `get_artifact`,
94
+ `get_artifact_bundle`, `compare_artifacts`, `list_topics`, `get_topic`.
95
+ - **Downloads & local use** — `get_download_plan`, `get_local_kit`, `list_files`,
96
+ `list_downloadable_files`, `preview_file`.
97
+ - **Trust & provenance** — `get_trust_bundle`, `get_release_readiness`,
98
+ `get_manifest_signing_key`, `get_artifact_reviews`, `get_community_signals`.
99
+ - **Rankings, stacks & answer packs** — `get_ranking`, `list_stacks`, `get_stack`,
100
+ `list_answer_packs`, `get_answer_pack`, `get_citation_pack`.
101
+ - **Mirror demand** — `list_mirror_demand`, `get_mirror_readiness`, `request_mirror`,
102
+ `request_source_indexing`.
103
+ - **Agent discovery** — `get_agent_discovery`, `get_agent_tasks`, `get_ai_search_guidance`,
104
+ `get_health`, `get_catalog_coverage`, `get_trending`.
105
+
106
+ ## Safety notes
107
+
108
+ - **Public tools are read-only** and require no credentials — they only read Hugging Bay's
109
+ public catalog and discovery surfaces.
110
+ - **Authenticated tools** (saved searches/watchlists, publisher dashboard, upload sessions,
111
+ mirror/import administration) require a Hugging Bay bearer token via `HUGGING_BAY_TOKEN`.
112
+ Their scope is limited to what the token's role permits.
113
+ - The server does **not** execute downloads or move data itself; download/mirror tools
114
+ return signed URLs, hashes, and copyable commands for you to run.
115
+ - Your token is sent only as a bearer `Authorization` header to `HUGGING_BAY_API`. Keep it
116
+ secret; never commit it.
117
+
118
+ ## License
119
+
120
+ MIT