The default MCP tool set is exactly coprocessor, run_pin, and solve_task. Start with coprocessor for one bounded Guard-first call; use run_pin as the direct alias for a known provisional route. These four Pins are callable routes, not verified quality claims; authenticated calls still use your client OAuth or bearer.
solve_task({"task_description":"<plain-language task>","input":"<text or structured input>"})
Use solve_task only when none of the four provisional Pins fits.
Ticket call-time abstention is top label score <0.80. The separate 30-row rule is an evidence/publication gate only, not a call-time abstention trigger. Rerank call-time no_signal is max relevance_score <0.05; input requires 1-64 nonblank documents, and the score is an ordering signal, not a correctness proof. Re-fetch the generated MCP manifest and live status before relying on limits, aliases, or route availability.
Advanced compatibility →Open the full REST contract only when a provisional Pin or solve_task is not enough.
01 / Authentication
Start anonymous. Keep identity only when you need it.
Never place owner-management, spend, or operator credentials in a general agent harness.
Demo bearer
Zero secret, short-lived
Rate-limited and isolated by token/IP. The same anonymous mcp:demo credential class works on both public REST and MCP. This example pre-binds the REST resource (and the token response’s next_call) for convenience; privileged, billing, and owner credentials remain strictly audience-bound. Mint it:
The bearer stays only in this tab's memory; it is never persisted. The console calls the same quote, run, and verify routes exposed by the advanced API contract.
No request sent.
{"status":"waiting"}
03 / Compatibility
Advanced REST operations.
These compatibility routes stay outside the default three-tool MCP surface. Expand them only when coprocessor, a direct run_pin alias, or solve_task is not enough.
Browse 102 advanced REST operations
401 recovery for owner management: Do not retry with a demo or OAuth bearer. Open /account, complete the operator-enabled magic-link flow on the exact Bay Run Origin, then retry the same request once with the owner-session cookie or X-Owner-Session. For /v1/owner/pins, retry the same request once with the same durable owner key because that principal defines key-owned Pins; make no further automatic retry.
102 operations102 shown
Start & identity
6 operations
Service discovery, free credentials, and caller identity.
Browse 6 operations
GET/v1
Service Root
Public — No credential is required.
curl --fail-with-body --silent --show-error -X GET \
"https://run.huggingbay.xyz/v1"
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/demo/task" \
-H 'Content-Type: application/json' \
--data "{\"task\":\"Classify support messages by intent\",\"examples\":[{\"input\":\"Cannot log in => access\"},{\"input\":\"Refund please => billing\"},{\"input\":\"Order is late => delivery\"},{\"input\":\"Account is ready => account\"},{\"input\":\"Item is broken => fulfillment\"}]}"
import os
import requests
env = lambda name, fallback: os.environ.get(name, fallback)
url = f"https://run.huggingbay.xyz/v1/demo/task"
headers = {'Content-Type': 'application/json'}
payload = {'task': 'Classify support messages by intent', 'examples': [{'input': 'Cannot log in => access'}, {'input': 'Refund please => billing'}, {'input': 'Order is late => delivery'}, {'input': 'Account is ready => account'}, {'input': 'Item is broken => fulfillment'}]}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/rerank" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${BAY_RUN_DEVELOPER_KEY:?set BAY_RUN_DEVELOPER_KEY}" \
--data "{\"model\":\"cross-encoder/ms-marco-TinyBERT-L2-v2\",\"query\":\"How do I verify a receipt?\",\"documents\":[\"Call the receipt verification endpoint with the returned receipt.\",\"Warm models are listed by the status endpoint.\"],\"top_n\":2}"
import os
import requests
env = lambda name, fallback: os.environ.get(name, fallback)
token = os.environ["BAY_RUN_DEVELOPER_KEY"]
url = f"https://run.huggingbay.xyz/v1/rerank"
headers = {'Content-Type': 'application/json'}
headers["Authorization"] = f"Bearer {token}"
payload = {'model': 'cross-encoder/ms-marco-TinyBERT-L2-v2', 'query': 'How do I verify a receipt?', 'documents': ['Call the receipt verification endpoint with the returned receipt.', 'Warm models are listed by the status endpoint.'], 'top_n': 2}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())
const env = (name, fallback) => process.env[name] || fallback;
const url = `https://run.huggingbay.xyz/v1/rerank`;
const headers = {};
headers["Content-Type"] = "application/json";
headers["Authorization"] = `Bearer ${process.env.BAY_RUN_DEVELOPER_KEY}`;
const payload = {
"model": "cross-encoder/ms-marco-TinyBERT-L2-v2",
"query": "How do I verify a receipt?",
"documents": [
"Call the receipt verification endpoint with the returned receipt.",
"Warm models are listed by the status endpoint."
],
"top_n": 2
};
const response = await fetch(url, { method: "POST", headers, body: JSON.stringify(payload) });
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/summarize" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${BAY_RUN_DEVELOPER_KEY:?set BAY_RUN_DEVELOPER_KEY}" \
--data "{\"text\":\"Bay Run routes a task to a bounded specialist. It returns route evidence and a receipt. The receipt can be checked without rerunning the task.\",\"max_sentences\":2}"
import os
import requests
env = lambda name, fallback: os.environ.get(name, fallback)
token = os.environ["BAY_RUN_DEVELOPER_KEY"]
url = f"https://run.huggingbay.xyz/v1/summarize"
headers = {'Content-Type': 'application/json'}
headers["Authorization"] = f"Bearer {token}"
payload = {'text': 'Bay Run routes a task to a bounded specialist. It returns route evidence and a receipt. The receipt can be checked without rerunning the task.', 'max_sentences': 2}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())
const env = (name, fallback) => process.env[name] || fallback;
const url = `https://run.huggingbay.xyz/v1/summarize`;
const headers = {};
headers["Content-Type"] = "application/json";
headers["Authorization"] = `Bearer ${process.env.BAY_RUN_DEVELOPER_KEY}`;
const payload = {
"text": "Bay Run routes a task to a bounded specialist. It returns route evidence and a receipt. The receipt can be checked without rerunning the task.",
"max_sentences": 2
};
const response = await fetch(url, { method: "POST", headers, body: JSON.stringify(payload) });
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());
Routing & evaluation
31 operations
Discover, compare, route, solve, and evaluate specialists.
Browse 31 operations
POST/v1/bakeoff
Run Bakeoff Route
Optional bearer — Anonymous is supported; a bearer gives a stable principal and isolated quota.
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/bakeoff" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${BAY_RUN_API_KEY:?set BAY_RUN_API_KEY}" \
--data "{\"task_description\":\"Classify customer feedback by sentiment\",\"examples\":[{\"input\":\"Setup works perfectly.\",\"expected\":\"positive\"},{\"input\":\"Checkout is broken.\",\"expected\":\"negative\"},{\"input\":\"Search feels fast.\",\"expected\":\"positive\"}],\"public\":false}"
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/coprocessor" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${BAY_RUN_DEVELOPER_KEY:?set BAY_RUN_DEVELOPER_KEY}" \
--data "{\"user_text\":\"How do I reset a password?\",\"documents\":[\"Open Settings and choose Reset password.\",\"Invoices are available under Billing.\"]}"
import os
import requests
env = lambda name, fallback: os.environ.get(name, fallback)
token = os.environ["BAY_RUN_DEVELOPER_KEY"]
url = f"https://run.huggingbay.xyz/v1/coprocessor"
headers = {'Content-Type': 'application/json'}
headers["Authorization"] = f"Bearer {token}"
payload = {'user_text': 'How do I reset a password?', 'documents': ['Open Settings and choose Reset password.', 'Invoices are available under Billing.']}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())
const env = (name, fallback) => process.env[name] || fallback;
const url = `https://run.huggingbay.xyz/v1/coprocessor`;
const headers = {};
headers["Content-Type"] = "application/json";
headers["Authorization"] = `Bearer ${process.env.BAY_RUN_DEVELOPER_KEY}`;
const payload = {
"user_text": "How do I reset a password?",
"documents": [
"Open Settings and choose Reset password.",
"Invoices are available under Billing."
]
};
const response = await fetch(url, { method: "POST", headers, body: JSON.stringify(payload) });
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
Owner key or session — Private. On 401, retry the same request once with the same owning principal; do not switch to a newly issued key or principal or retry again automatically. An operator-gated session from /account accesses only the separately account-owned view; it does not recover key-owned Pins.
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/owner/pins/${PIN_ID:-guard}/promote" \
-H 'Content-Type: application/json' \
-H "X-Owner-Session: ${BAY_RUN_OWNER_SESSION:?set BAY_RUN_OWNER_SESSION}" \
--data "{\"content\":{\"family\":\"classification\",\"task\":\"Classify support tickets as access, billing, or delivery\",\"model\":\"cross-encoder/nli-deberta-v3-xsmall\",\"candidate_labels\":[\"access_issue\",\"billing_issue\",\"delivery_issue\"],\"max_price_usd\":0.01,\"lane_state\":\"warm\"},\"expected_revision\":1,\"idempotency_key\":\"developers-portal-pin-promote-v2\"}"
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
Owner session — Private and operator-gated. On 401, open /account, request and consume a magic link on the exact Bay Run Origin, then retry the same request once with the session cookie or X-Owner-Session; do not mint a demo or OAuth bearer or retry again automatically.
curl --fail-with-body --silent --show-error -X POST \
"https://run.huggingbay.xyz/v1/pin/measured" \
-H 'Content-Type: application/json' \
--data "{\"task\":\"Developer sample only: classify support tickets. Caller-supplied rows are not production evidence, and this example claims no measured result.\",\"paste\":\"{\\\"input\\\":\\\"I cannot log into my account.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"The password reset link has expired.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"My account is locked after too many attempts.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"I need to change the email address on my account.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"The sign-in code never arrived.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"I cannot update my password.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"Two-factor authentication is blocking my login.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"The invitation link says I do not have access.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"I cannot open the account dashboard.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"Login keeps sending me back to the sign-in page.\\\",\\\"expected\\\":\\\"access_issue\\\"}\\n{\\\"input\\\":\\\"Please refund this invoice.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"I was charged twice for the same order.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"Where can I update my payment method?\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"The amount on my invoice is incorrect.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"I want to cancel my subscription.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"Please send me a receipt for my payment.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"My card was declined at checkout.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"I do not recognize this charge.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"Can you update the billing address on my account?\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"What is the status of my refund?\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"I was charged for a renewal I did not expect.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"How do I change to a different pricing plan?\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"My payment has been pending since yesterday.\\\",\\\"expected\\\":\\\"billing_issue\\\"}\\n{\\\"input\\\":\\\"My shipment is late and has not arrived.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"The package was marked delivered but is missing.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"I need to change the delivery address.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"The tracking information has not updated.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"The order arrived with the wrong item.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"The parcel arrived damaged.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"When should I expect my delivery?\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"Only part of my shipment arrived.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\\n{\\\"input\\\":\\\"My pickup order is not ready.\\\",\\\"expected\\\":\\\"delivery_issue\\\"}\",\"family\":\"classification\"}"
import os
import requests
env = lambda name, fallback: os.environ.get(name, fallback)
url = f"https://run.huggingbay.xyz/v1/pin/measured"
headers = {'Content-Type': 'application/json'}
payload = {'task': 'Developer sample only: classify support tickets. Caller-supplied rows are not production evidence, and this example claims no measured result.', 'paste': '{"input":"I cannot log into my account.","expected":"access_issue"}\n{"input":"The password reset link has expired.","expected":"access_issue"}\n{"input":"My account is locked after too many attempts.","expected":"access_issue"}\n{"input":"I need to change the email address on my account.","expected":"access_issue"}\n{"input":"The sign-in code never arrived.","expected":"access_issue"}\n{"input":"I cannot update my password.","expected":"access_issue"}\n{"input":"Two-factor authentication is blocking my login.","expected":"access_issue"}\n{"input":"The invitation link says I do not have access.","expected":"access_issue"}\n{"input":"I cannot open the account dashboard.","expected":"access_issue"}\n{"input":"Login keeps sending me back to the sign-in page.","expected":"access_issue"}\n{"input":"Please refund this invoice.","expected":"billing_issue"}\n{"input":"I was charged twice for the same order.","expected":"billing_issue"}\n{"input":"Where can I update my payment method?","expected":"billing_issue"}\n{"input":"The amount on my invoice is incorrect.","expected":"billing_issue"}\n{"input":"I want to cancel my subscription.","expected":"billing_issue"}\n{"input":"Please send me a receipt for my payment.","expected":"billing_issue"}\n{"input":"My card was declined at checkout.","expected":"billing_issue"}\n{"input":"I do not recognize this charge.","expected":"billing_issue"}\n{"input":"Can you update the billing address on my account?","expected":"billing_issue"}\n{"input":"What is the status of my refund?","expected":"billing_issue"}\n{"input":"I was charged for a renewal I did not expect.","expected":"billing_issue"}\n{"input":"How do I change to a different pricing plan?","expected":"billing_issue"}\n{"input":"My payment has been pending since yesterday.","expected":"billing_issue"}\n{"input":"My shipment is late and has not arrived.","expected":"delivery_issue"}\n{"input":"The package was marked delivered but is missing.","expected":"delivery_issue"}\n{"input":"I need to change the delivery address.","expected":"delivery_issue"}\n{"input":"The tracking information has not updated.","expected":"delivery_issue"}\n{"input":"The order arrived with the wrong item.","expected":"delivery_issue"}\n{"input":"The parcel arrived damaged.","expected":"delivery_issue"}\n{"input":"When should I expect my delivery?","expected":"delivery_issue"}\n{"input":"Only part of my shipment arrived.","expected":"delivery_issue"}\n{"input":"My pickup order is not ready.","expected":"delivery_issue"}', 'family': 'classification'}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())
const env = (name, fallback) => process.env[name] || fallback;
const url = `https://run.huggingbay.xyz/v1/pin/measured`;
const headers = {};
headers["Content-Type"] = "application/json";
const payload = {
"task": "Developer sample only: classify support tickets. Caller-supplied rows are not production evidence, and this example claims no measured result.",
"paste": "{\"input\":\"I cannot log into my account.\",\"expected\":\"access_issue\"}\n{\"input\":\"The password reset link has expired.\",\"expected\":\"access_issue\"}\n{\"input\":\"My account is locked after too many attempts.\",\"expected\":\"access_issue\"}\n{\"input\":\"I need to change the email address on my account.\",\"expected\":\"access_issue\"}\n{\"input\":\"The sign-in code never arrived.\",\"expected\":\"access_issue\"}\n{\"input\":\"I cannot update my password.\",\"expected\":\"access_issue\"}\n{\"input\":\"Two-factor authentication is blocking my login.\",\"expected\":\"access_issue\"}\n{\"input\":\"The invitation link says I do not have access.\",\"expected\":\"access_issue\"}\n{\"input\":\"I cannot open the account dashboard.\",\"expected\":\"access_issue\"}\n{\"input\":\"Login keeps sending me back to the sign-in page.\",\"expected\":\"access_issue\"}\n{\"input\":\"Please refund this invoice.\",\"expected\":\"billing_issue\"}\n{\"input\":\"I was charged twice for the same order.\",\"expected\":\"billing_issue\"}\n{\"input\":\"Where can I update my payment method?\",\"expected\":\"billing_issue\"}\n{\"input\":\"The amount on my invoice is incorrect.\",\"expected\":\"billing_issue\"}\n{\"input\":\"I want to cancel my subscription.\",\"expected\":\"billing_issue\"}\n{\"input\":\"Please send me a receipt for my payment.\",\"expected\":\"billing_issue\"}\n{\"input\":\"My card was declined at checkout.\",\"expected\":\"billing_issue\"}\n{\"input\":\"I do not recognize this charge.\",\"expected\":\"billing_issue\"}\n{\"input\":\"Can you update the billing address on my account?\",\"expected\":\"billing_issue\"}\n{\"input\":\"What is the status of my refund?\",\"expected\":\"billing_issue\"}\n{\"input\":\"I was charged for a renewal I did not expect.\",\"expected\":\"billing_issue\"}\n{\"input\":\"How do I change to a different pricing plan?\",\"expected\":\"billing_issue\"}\n{\"input\":\"My payment has been pending since yesterday.\",\"expected\":\"billing_issue\"}\n{\"input\":\"My shipment is late and has not arrived.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"The package was marked delivered but is missing.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"I need to change the delivery address.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"The tracking information has not updated.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"The order arrived with the wrong item.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"The parcel arrived damaged.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"When should I expect my delivery?\",\"expected\":\"delivery_issue\"}\n{\"input\":\"Only part of my shipment arrived.\",\"expected\":\"delivery_issue\"}\n{\"input\":\"My pickup order is not ready.\",\"expected\":\"delivery_issue\"}",
"family": "classification"
};
const response = await fetch(url, { method: "POST", headers, body: JSON.stringify(payload) });
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());
GET/v1/pins
List Pin Catalog Route
Public — No credential is required.
curl --fail-with-body --silent --show-error -X GET \
"https://run.huggingbay.xyz/v1/pins"
Three focused tools: coprocessor, run_pin, solve_task.
Start with coprocessor for one bounded Guard-first call with optional post-SAFE reranking; it never generates or executes tools. Use run_pin as the direct alias for a matching canonical Pin, and solve_task only as the open-ended fallback.
The compact response keeps top-level action, reason, guard, rerank, evidence, and next_call; guard has pin_id,label,score,action, and rerank has pin_id,results,score_type,signal,abstention or is null. REST POST /v1/coprocessor exposes the full receipt-bound stage result, decision, decision_evidence, and receipt. MCP exposes a bounded redacted projection: source document text and raw result payloads are omitted, while bounded decision, decision_evidence, receipt, and no-spend fields remain. Signed decision/receipt metadata does not let a caller independently recompute an omitted raw-result hash from the projection. Callers read the Guard receipt at evidence.guard.receipt, and Rerank evidence may be null. Guard is English prompt-injection classification only, not universal safety; Rerank orders only supplied documents and is not a correctness verdict. Ticket call-time abstention is top label score <0.80; the separate 30-row rule is an evidence/publication gate only. Rerank returns no_signal when max relevance_score <0.05 and accepts 1-64 nonblank documents. Choose one of four mint recipes. For the anonymous mcp:demo recipe, the MCP resource is a convenience pre-binding and the same demo credential class works on public REST; confidential, billing-capable, and owner-authorized credentials must use the exact MCP resource https://run.huggingbay.xyz/mcp/. The anonymous class also works when the other public resource is selected. Discovery and tools/list are public; protected tools/call requests use a bearer.
Use the active coprocessor / run_pin / solve_task profile
Create a Custom MCP connector at grok.com/connectors, enter the server URL, and complete OAuth. The default tools/list surface exposes exactly these three focused tools in this order: coprocessor, run_pin, and solve_task. Start with coprocessor for one bounded Guard-first call with optional post-SAFE reranking; use run_pin for a known canonical Pin and solve_task only when no Pin fits. Advanced tools remain separately disclosed.
Use a stable idempotency_key only for the same principal, route, and unchanged request; a different request is an idempotency conflict, not a new execution. The receipt proves the stored execution evidence and declared commitments only. It does not prove answer correctness, model quality, or cryptographic model-weight identity at serve time.
# 1. Run a task and keep the complete response.
RUN=$(curl -sS -X POST "https://run.huggingbay.xyz/v1/task/run" \
-H "Authorization: Bearer $BAY_RUN_API_KEY" \
-H 'content-type: application/json' \
-d '{"task":{"task":"Classify short support messages by workflow","kind":"classification","input_schema":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"output_schema":{"type":"object","properties":{"label":{"type":"string"}},"required":["label"]},"examples":[{"text":"Cannot sign in","label":"access_issue"},{"text":"Refund the invoice","label":"billing_issue"},{"text":"Shipment is late","label":"delivery_issue"}],"constraints":{"minimum_quality":0.5,"max_latency_ms":20000,"max_price_usd":0.01},"data_policy":{"retention":"none","external_apis_allowed":false,"use_for_training":false},"environment":"development"},"input":{"text":"The login link keeps expiring."},"max_price_usd":0.01,"idempotency_key":"developers-portal-receipt-walkthrough-v1"}')
# 2. Bind the execution ID and receipt from that exact response.
VERIFY=$(jq '{execution_id:.execution_id,receipt:.execution_receipt,output:.output}' <<<"$RUN")
# 3. Verify stored execution, hashes, route, amount, and policy compliance.
curl -sS -X POST "https://run.huggingbay.xyz/v1/task/verify" \
-H "Authorization: Bearer $BAY_RUN_API_KEY" \
-H 'content-type: application/json' --data "$VERIFY" | jq .
MIT-scoped examples. The public archive contains standalone Python and TypeScript clients. Supply an authorized bearer through the BAY_RUN_TOKEN environment variable; the examples do not automatically post to a board. Their synthetic fixtures and offline checks are not proof of model quality, correctness, or live service availability.