Self-Service MCP Walkthrough
This walkthrough takes you from zero to a working customer-facing MCP tool in a single session — no Railway access, no developer involvement, no configuration files.
What you’ll end up with:
- An MCP installed through the MCP Hub
- Its tools discovered, auto-tagged, and packaged
- A subscription attached to the package
- A customer able to call the tool through the existing LTG gateway with their
ltg_*key
Total time: ~5 minutes.
1. Install the MCP
- Open Portal → MCP Hub
- In the Catalog, click Install on the MCP you want (we’ll use Pandoc as the example)
- In the install dialog:
- Slug:
pandoc(url-safe, becomes the hosted endpoint path) - Display Name:
Pandoc - Tool Prefix:
pandoc_(every tool will be namespaced with this) - Auto-register in MCP Servers registry — leave checked
- Slug:
- Click Install
The hub installs the package in the background. Within 30–60 seconds the row status will flip from installing → running. At that point the hub auto-registers the MCP in the MCP Servers registry and triggers tool discovery.
2. Accept the auto-scaffolded packages
When discover finishes, a dialog opens offering default packages based on the tool groups detected:
┌─ Discovered 8 tools in 3 groups ─────────────────────┐│ ││ ☑ Pandoc — All Tools (8 tools) ││ ☑ Pandoc — Convert (4 tools) ✎ ││ ☑ Pandoc — Read (2 tools) ✎ ││ ││ [ Skip ] [ Create 3 packages ] │└────────────────────────────────────────────────────────┘Click Create N packages. Pandoc only has 1 tool so you’ll see fewer groups — pick All Tools at minimum.
The packages appear immediately in the Packages list with kind: 'mcp_tool' permissions.
3. Assign a package to a subscription
- Portal → Subscriptions
- Click the subscription that should get access (or create a new one)
- In the Packages panel on the right, click Manage
- Check the new
Pandoc — All Toolspackage and save
The subscription’s API key now grants access to pandoc_* tools. Anything not in an assigned package is denied at the gateway.
4. Test the tool from the portal
- Portal → MCP Servers → click Pandoc
- Open the Test tab
- Pick a tool from the dropdown
- For tools that declare their schema properly, the UI generates a form. For MCPs like Pandoc that declare an empty schema but enforce args server-side, you’ll see a Raw JSON arguments textarea — paste:
{"contents": "# Hello LTG","input_format": "markdown","output_format": "html"}
- Click Run Tool
The result panel shows the real response from the upstream subprocess.
5. Customer connects via Claude Desktop
The customer uses their existing Claude Desktop config pointing at the LTG gateway — no new OAuth, no new URL:
{ "mcpServers": { "ltg": { "command": "bash", "args": ["-c", "exec npx -y mcp-remote@latest https://mcp-server-production-ba1f.up.railway.app/mcp --header 'X-API-Key: ltg_YOUR_KEY'"] } }}On next reconnect, the customer sees the new pandoc_* tools alongside their existing ones (cw_* from ConnectWise, lm_* from LogicMonitor, built-in portal tools, etc.).
Invoking a pandoc_* tool routes through:
- Claude → mcp-remote → Authentik OAuth +
ltg_*key - LTG Gateway → validates entitlement via per-tool
/api/gateway/validate - Gateway →
http://mcp-hub.railway.internal:4000/hosted/pandoc/mcp - Hub bridge → stdio subprocess (
uvx mcp-pandoc) - Subprocess → pandoc binary → result back up the stack
Every call increments the customer’s subscription counter and is audit-logged.
What you did not have to do
- ❌ Deploy a new Railway service
- ❌ Write a Dockerfile
- ❌ Hand-edit env vars on the server
- ❌ Register an Authentik OAuth application
- ❌ Update any customer-side configuration
- ❌ Email the developer team
MCPs that need vendor auth (GitHub, Brave, etc.)
For MCPs requiring a vendor secret:
- Before installing, add the secret to the Credentials Vault — e.g. a GitHub personal access token
- In the install dialog, the Credential Source dropdown is enabled — pick the vault entry you just added
- The hub stores
@credential:<uuid>as the sentinel; secrets never persist on disk - At subprocess spawn, the hub resolves the sentinel via the internal
/api/credentials/:id/revealendpoint and injects the plaintext as an env var
Rotation: update the vault entry + click Restart on the MCP Hub row. The subprocess respawns with the new value.
When the Hub isn’t right
Use a dedicated Railway service instead if:
- The MCP needs VPN egress or custom network policy
- It has heavy workloads that would affect other tenants
- You’re reselling it as a standalone product and want independent SLAs
See Adding MCP Servers (dedicated) for that path — the registry and gateway treat both flavors identically.