aabiro commited on
Commit
8770e34
·
verified ·
1 Parent(s): f3de2ab

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +63 -6
  2. app.py +47 -0
  3. requirements.txt +2 -0
README.md CHANGED
@@ -1,10 +1,67 @@
1
  ---
2
- title: MCP Explorer
3
- emoji: 📉
4
- colorFrom: gray
5
- colorTo: green
6
- sdk: static
 
 
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Xcelsior MCP - GPU Cloud for AI Agents
3
+ emoji: ⚡
4
+ colorFrom: red
5
+ colorTo: yellow
6
+ sdk: gradio
7
+ sdk_version: 6.32.0
8
+ app_file: app.py
9
  pinned: false
10
+ license: other
11
+ short_description: Explore the Xcelsior MCP server's 89+ tools for AI agents.
12
  ---
13
 
14
+ # Xcelsior MCP - GPU Cloud for AI Agents
15
+
16
+ **By [Xcelsior Compute](https://huggingface.co/xcelsior-compute)**
17
+
18
+ Xcelsior is a GPU compute marketplace with transparent pricing and
19
+ infrastructure for teams worldwide. Its MCP server turns the platform into
20
+ infrastructure an AI agent can operate: discover live GPU capacity, launch
21
+ on-demand and spot instances, run serverless inference, manage volumes and
22
+ snapshots, watch spend against a prepaid wallet, and tear everything down -
23
+ all through structured tool calls, no dashboard required.
24
+
25
+ **Endpoint:** `https://mcp.xcelsior.ca/mcp`
26
+ **Registry:** `io.github.aabiro/xcelsior` in the official MCP registry
27
+
28
+ ## This Space
29
+
30
+ An interactive explorer of the server's full tool surface - 89+ tools in 8
31
+ categories, each with its reviewed description, the exact permission scopes
32
+ it requires, and its inputs. The data is generated from the public repo
33
+ (`api/mcp/tool-surface.json` and `api/mcp/src/tools/descriptions.ts`) with
34
+ `scripts/build_tools_json.py`, so it cannot silently drift from the shipped
35
+ surface.
36
+
37
+ The explorer is read-only and holds no credentials. To actually call the
38
+ tools, connect the endpoint in your own AI client - the Space walks you
39
+ through it.
40
+
41
+ ## Connect in about a minute
42
+
43
+ 1. Add a custom MCP connector in your AI client (Claude, ChatGPT, Grok,
44
+ Copilot Studio, Cursor, VS Code, and other MCP clients).
45
+ 2. Paste `https://mcp.xcelsior.ca/mcp`.
46
+ 3. Sign in or create a Xcelsior account in the browser, and approve the
47
+ scopes you want that client to have. OAuth with PKCE - no client secret,
48
+ no key pasting, revocable any time in Settings - AI Agents.
49
+
50
+ Machine clients (CI, schedulers, autonomous agents) use the OAuth
51
+ `client_credentials` grant; a stdio build of the same surface is on npm as
52
+ `@xcelsior-gpu/mcp`.
53
+
54
+ ## Links
55
+
56
+ - Platform: [xcelsior.ca](https://xcelsior.ca) - MCP details at
57
+ [xcelsior.ca/mcp](https://xcelsior.ca/mcp)
58
+ - Source: [github.com/aabiro/xcelsior](https://github.com/aabiro/xcelsior)
59
+ (Business Source License 1.1)
60
+ - Support: support@xcelsior.ca
61
+
62
+ ## Run it yourself
63
+
64
+ ```bash
65
+ pip install -r requirements.txt
66
+ python app.py
67
+ ```
app.py ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Thin public loader for this Space.
2
+
3
+ The real application code for this Space is not public. It lives in a
4
+ private Hugging Face repo and is downloaded at startup using this
5
+ Space's HF_TOKEN secret. Only this loader file is public.
6
+ """
7
+
8
+ import os
9
+ import sys
10
+ import zipfile
11
+ from pathlib import Path
12
+
13
+ PAYLOAD_REPO = "aabiro/space-payloads"
14
+ PAYLOAD_FILE = "mcp-explorer.zip"
15
+ TARGET = Path("/tmp/space-app/mcp-explorer")
16
+
17
+
18
+ def _fetch_payload() -> None:
19
+ if (TARGET / "app.py").is_file():
20
+ return
21
+ token = os.environ.get("HF_TOKEN")
22
+ if not token:
23
+ raise RuntimeError(
24
+ "HF_TOKEN secret is not set on this Space, so the private "
25
+ "application code cannot be downloaded."
26
+ )
27
+ from huggingface_hub import hf_hub_download
28
+
29
+ zip_path = hf_hub_download(
30
+ repo_id=PAYLOAD_REPO,
31
+ repo_type="model",
32
+ filename=PAYLOAD_FILE,
33
+ token=token,
34
+ )
35
+ TARGET.mkdir(parents=True, exist_ok=True)
36
+ with zipfile.ZipFile(zip_path) as zf:
37
+ zf.extractall(TARGET)
38
+
39
+
40
+ _fetch_payload()
41
+ sys.path.insert(0, str(TARGET))
42
+ os.chdir(TARGET)
43
+ _app_file = TARGET / "app.py"
44
+ exec(
45
+ compile(_app_file.read_text(encoding="utf-8"), str(_app_file), "exec"),
46
+ {"__name__": "__main__", "__file__": str(_app_file)},
47
+ )
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio==6.32.0
2
+ huggingface_hub