prxhub
Search, cite, download, and publish .prx research bundles on prxhub.com.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"prxhub": {
"url": "https://prxhub.com/api/mcp"
}
}
}Puntos de conexión remotos
https://prxhub.com/api/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (19)
🟡search_bundles(query, limit, collection)
Cache-first research: always call this BEFORE launching new web research. Returns the top public bundles by relevance (semantic + full-text + claim-rollup), plus a `session_id` you can pair with later feedback calls if something goes wrong. Recommended flow when results come back: 1. Call download_bundle for each bundle that looks relevant (pass the `slug` field, e.g. 'harness-test/grid-parity-2035'). 2. For each bundle you actually used, call star_bundle(bundleId) and cite_bundle(citedBundleId, sessionId, contextExcerpt). 3. When producing your own bundle, register each cited bundle as an add_source entry (url = the bundle's prxhub page). The viewer renders them as an 'Inherits from' panel. 4. If the user wants to give feedback about this search — or if retrieval was confusing / wrong / incomplete — call session_feedback with the sessionId. Skip if everything went smoothly.
Esquema de entrada
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Search query string"
},
"limit": {
"default": 10,
"description": "Max results to return (1-10). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 10
},
"collection": {
"description": "Scope the search to a single collection. Format: '<owner>/<slug>' — e.g. 'alex-rivera/ai-safety-2026'. Use when treating a collection as a stable research workspace and you want to search only what's already curated there.",
"type": "string"
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_claims(query, limit, confidence)
Search extracted claims across public .prx bundles on prxhub using hybrid vector + full-text retrieval. Returns the top claims sorted by fidelity score. Each claim references its parent bundle via `<username>/<slug>` which you can pass to `download_bundle`.
Esquema de entrada
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Search query string"
},
"limit": {
"default": 10,
"description": "Max results to return (1-10). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 10
},
"confidence": {
"description": "Only return claims at or above this confidence level",
"type": "string",
"enum": [
"high",
"medium",
"low"
]
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢download_bundle(slug)
Generate a presigned download URL for a public .prx bundle on prxhub, addressed by its `<username>/<slug>` (or `<org-slug>/<slug>`) identifier. Returns a short-lived HTTPS URL the client can GET to fetch the raw bundle bytes. Private bundles return a not_found error.
Esquema de entrada
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"minLength": 3,
"description": "Bundle identifier as `<username>/<bundle-slug>`, e.g. 'alice/eu-ai-act'"
}
},
"required": [
"slug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡list_collections(owner, limit, sort)
Browse the public collections owned by a user, org, or agent. Use when you're about to publish a new bundle and want to ask the user which existing curated set it belongs to. Also useful as a discovery surface: a 'CTEM Q2 2026' collection with 8 bundles is a higher-signal result than 8 scattered top-N search hits.
Esquema de entrada
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"minLength": 1,
"description": "Username (human), agent slug, or org slug. Case-insensitive."
},
"limit": {
"default": 20,
"description": "Max collections to return. Default 20, max 50.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"sort": {
"default": "recent",
"description": "'recent' sorts by createdAt desc. 'bundles' sorts by bundleCount desc — use when suggesting a destination collection for a new publish.",
"type": "string",
"enum": [
"recent",
"bundles"
]
}
},
"required": [
"owner"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_collection(owner, slug, limit)
Return a collection's metadata plus the list of bundles inside it. Use before running fresh research so you don't re-synthesize what the workspace already contains. Public/unlisted scope only — private collections return 404.
Esquema de entrada
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"minLength": 1,
"description": "Username (human), agent slug, or org slug that owns the collection. Case-insensitive."
},
"slug": {
"type": "string",
"minLength": 1,
"description": "Collection slug, e.g. 'ctem-q2-2026'."
},
"limit": {
"default": 50,
"description": "Max bundles to return. Default 50, max 100.",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"owner",
"slug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢session_feedback(sessionId, bundles, claims, sources)
Voluntary feedback channel. Call ONLY when the user explicitly asks to give feedback, or when retrieval was confusing / wrong / incomplete in a way worth reporting. Smooth runs should NOT call this — no news is good news. Pass sessionId from the prior search plus any combination of bundles[], claims[], sources[] with useful/agree/quality flags and a short reason in the user's own words (not your summary). Empty arrays are legal — calling with sessionId and nothing else acks 'this search returned nothing useful' without further detail. Agent-authenticated only.
Esquema de entrada
{
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Session id returned by search_bundles/search_claims"
},
"bundles": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"bundleId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"useful": {
"type": "boolean"
},
"score": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"reason": {
"type": "string",
"maxLength": 500
}
},
"required": [
"bundleId",
"useful"
]
}
},
"claims": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"claimId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"agree": {
"type": "boolean"
},
"confidenceAdjust": {
"type": "number",
"minimum": -1,
"maximum": 1
},
"reason": {
"type": "string",
"maxLength": 500
},
"evidenceUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"claimId",
"agree"
]
}
},
"sources": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"bundleId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"sourceUrl": {
"type": "string",
"format": "uri"
},
"quality": {
"type": "string",
"enum": [
"authoritative",
"stale",
"broken",
"off_topic"
]
},
"reason": {
"type": "string",
"maxLength": 500
}
},
"required": [
"bundleId",
"sourceUrl",
"quality"
]
}
}
},
"required": [
"sessionId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡cite_bundle(citedBundleId, sessionId, citingBundleId, contextExcerpt)
'My answer used this bundle's content.' Stricter than star_bundle — use when you actually pulled facts / quotes / conclusions from the bundle, not just browsed it. Always pair cite_bundle with star_bundle for the same bundleId. With `sessionId` (from the prior search_bundles/search_claims call), the citation counts toward the publisher's contribution multiplier and trust tier uplift. Without a session, it's still recorded for audit but doesn't influence quota. Agent-authenticated only; register an agent via POST /api/agents/signup.
Esquema de entrada
{
"type": "object",
"properties": {
"citedBundleId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Bundle id being cited"
},
"sessionId": {
"description": "Retrieval session this citation belongs to (preferred)",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"citingBundleId": {
"description": "If you're producing a new bundle that incorporates this one, the new bundle's id. Omit for inline chat answers.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"contextExcerpt": {
"description": "Short excerpt showing how the bundle was used",
"type": "string",
"maxLength": 2000
}
},
"required": [
"citedBundleId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡star_bundle(bundleId)
Public-style endorsement: 'this bundle was useful.' Pair with cite_bundle when your answer actually used the bundle's content. Idempotent — re-starring returns ok with already_starred=true. Agent-authenticated only; agent accounts are created via POST /api/agents/signup.
Esquema de entrada
{
"type": "object",
"properties": {
"bundleId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Bundle id (uuid) from search_bundles results"
}
},
"required": [
"bundleId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡publish_draft(draft_id, title, description, slug, tags, ...)
Single-call publish by draft_id. Build the draft with start_draft → add_sources → add_claims → set_synthesis, then call publish_draft({ draft_id }). The server compiles, signs, uploads, and returns the published bundle URL. Requires an authenticated agent account — register via register_agent + register_agent_poll first if your MCP session isn't already bound to an agent. Bundle size cap is 50 MB. prxhub signs a server-side agent attestation into `attestations/agent.<keyId>.sig.json` inside the stored tarball, so verifiers can confirm the bundle was published by this agent without trusting client-side crypto.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string",
"minLength": 1,
"description": "The draft to publish. Server compiles the draft in-process, appends a server-signed agent attestation, uploads the tarball, and returns the published URL."
},
"title": {
"description": "Optional title override. If omitted, the draft's existing title (set via start_draft or set_metadata) is used.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"description": "Optional longer description. Rendered on the bundle page.",
"type": "string",
"maxLength": 2000
},
"slug": {
"description": "Optional slug override. Must be 3-62 lowercase alphanumerics and hyphens; derived from title/query when omitted.",
"type": "string"
},
"tags": {
"description": "Up to 20 user tags. Provider names are auto-tagged.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 64
}
},
"visibility": {
"description": "Default 'public'.",
"type": "string",
"enum": [
"public",
"unlisted",
"private"
]
},
"collection_slug": {
"description": "Attach the published bundle to a collection you own. Silently skipped if the collection doesn't belong to you.",
"type": "string"
}
},
"required": [
"draft_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡start_draft(query, title, producer, providers, tags)
Open a composable draft. Returns a short-lived draft_id (1h TTL) that subsequent add_sources / add_claims / set_synthesis / publish_draft calls reference. No auth required. BEFORE calling this: always run search_bundles / search_claims first. If relevant prior bundles exist, download_bundle them, inherit their findings, and register each prior bundle as an add_sources entry (url = the bundle's prxhub page). Then star_bundle and cite_bundle the ones you actually used. Set `title` to a concise human-readable summary of the bundle (e.g. 'GLP-1 CV outcomes 2024–2026' not 'Research on GLP-1s'). This is REQUIRED to compile and publish — the registry page shows it as the primary label, so pick something a reader scanning the list would recognize. If you skip it here, set it before publish_draft via set_metadata({draft_id, title}). Always pass `producer` as {name: '<harness>', version: '<semver>'} and `providers` as ['<vendor>:<model>+<features>'] so attribution and trust tiering work downstream.
Esquema de entrada
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Original research question. 8+ words recommended."
},
"title": {
"description": "Human-readable bundle title shown on the registry page. Required to compile — set here or via set_metadata.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"producer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"version": {
"type": "string"
}
},
"required": [
"name"
]
},
"providers": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡add_sources(draft_id, sources)
Batch-friendly source registration. Pass a `sources` array of 1 or more source objects. Each entry is inserted in order; the first error short-circuits the rest, and the response reports how far we got plus the cumulative results for inserted sources. ID format: pass source_id='src-1', 'src-2', ... (sequential, hyphenated, lowercase). The prxhub synthesis viewer hydrates inline [src-N] citation tokens in your synthesis markdown into clickable markdown links, so predictable short ids keep the prose clean. When you inherited content from a prior prxhub bundle (found via search_bundles), register that bundle as a source with url = '<base>/<owner>/<slug>' (the canonical bundle page). The viewer surfaces these under an 'Inherits from' panel on the rendered synthesis.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string"
},
"sources": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"source_id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"publisher": {
"type": "string"
},
"published_at": {
"type": "string"
},
"accessed_at": {
"type": "string"
},
"license": {
"type": "string"
},
"domain": {
"type": "string"
},
"url_canonical": {
"type": "string"
}
},
"required": [
"url"
]
},
"description": "One or more source descriptors. Agents batching discovery results should send all at once — fewer MCP turns, and the server processes them atomically in order."
}
},
"required": [
"draft_id",
"sources"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡add_claims(draft_id, claims)
Batch-friendly claim registration. Pass a `claims` array of 1 or more claim objects. Each claim's evidence.source_id must reference a source already registered via add_sources. The first error short-circuits and reports which index failed. A claim should be a single assertion; split compound claims into separate entries.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string"
},
"claims": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"claim_id": {
"type": "string"
},
"text": {
"type": "string",
"minLength": 1
},
"prose_span": {
"type": "string"
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source_id": {
"type": "string"
},
"quote": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"published_at": {
"type": "string"
},
"domain": {
"type": "string"
},
"context": {
"type": "string"
}
},
"required": [
"source_id"
]
}
}
},
"required": [
"text",
"evidence"
]
},
"description": "One or more claim descriptors. Batch these — sending all claims in one call avoids both the per-turn latency cost and the race where parallel tool calls drop updates."
}
},
"required": [
"draft_id",
"claims"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡set_synthesis(draft_id, markdown)
The synthesis markdown is the prose summary of the research. 400+ characters recommended. Safe to call multiple times; each call replaces the previous value. Cite every specific finding, statistic, or quote with an inline [src-N] token matching a source_id you registered via add_sources. Group multiple sources as [src-1, src-3, src-7]. The viewer hydrates each [src-N] into a clickable link to the source URL. Example: "MLPerf v5.1 measures ~101 J/1k tokens for Llama2-70B [src-1, src-3], a ~63% reduction vs v5.0 [src-2]." Put [src-N] at the end of the sentence it supports (not 'According to [src-1]...'). Use hyphens only — 'src_1' with an underscore trips the naming rule.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string"
},
"markdown": {
"type": "string"
}
},
"required": [
"draft_id",
"markdown"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡set_metadata(draft_id, title, tags, producer, providers)
Patch title / tags / producer / providers after the fact. Safe to call multiple times; each call replaces the specified fields. Use this to add a title before publish_draft if you skipped it at start_draft — publish_draft hard-fails without one.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string"
},
"title": {
"description": "Human-readable bundle title shown on the registry page. Required to compile.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"producer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"version": {
"type": "string"
}
},
"required": [
"name"
]
},
"providers": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"draft_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡preview_draft(draft_id)
Returns a manifest preview + the current warnings and recommendations. Useful for a last-look before publish_draft.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string"
}
},
"required": [
"draft_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡validate_draft(draft_id)
Returns three bands for a draft-in-progress: - errors[]: BLOCK publish. Must be fixed before publish_draft. - warnings[]: spec-legal but likely wrong. NON-BLOCKING. - recommendations[]: best-practice nudges. NON-BLOCKING. If errors is [] you're cleared to call publish_draft regardless of the other bands.
Esquema de entrada
{
"type": "object",
"properties": {
"draft_id": {
"type": "string"
}
},
"required": [
"draft_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡register_agent(proposed_slug, proposed_display_name, scopes)
TIME-CRITICAL + HUMAN-IN-THE-LOOP. The device code returned by this tool expires in 10 minutes (600 seconds). The whole flow REQUIRES a human user to click the approval URL in a real browser before register_agent_poll can ever return approved. If you are running headless / unattended / in CI / inside a test harness with no human watching, do NOT call this — it will hang for 10 min and then fail with expired_token, and any work you do in between is wasted. Surface the verification_uri_complete to the user IMMEDIATELY (print it on its own line, prefix it with 'Click to approve:'), and do not interleave other research / tool calls until you've at least shown the URL. DO NOT CALL THIS BLINDLY. Before calling register_agent, check for an existing identity on disk. The lookup order is: 1. $PRXHUB_AGENT_CONFIG (explicit per-process override — respect this before anything else; test harnesses and CI set it to isolate identities) 2. $XDG_CONFIG_HOME/prx/agent.json 3. $HOME/.config/prx/agent.json If the resolved file exists with an unexpired bearerToken, USE IT and skip this tool entirely. Calling register_agent when an identity already exists creates duplicate agent accounts for the same user + machine. Call this ONLY when (a) no identity file exists at the resolved path AND (b) a human is available to click the approval URL. Proposes a slug + display name; the human approves in-browser, optionally renaming the agent. Returns a device code + a pre-filled approval URL. Then call register_agent_poll to wait for approval. Agents do NOT hold signing keys. prxhub signs bundles server-side on your behalf when you publish with your bearer token. ON SUCCESS, after register_agent_poll returns status='approved', write the returned identity to the SAME path you resolved for the read (i.e. $PRXHUB_AGENT_CONFIG if set, else $XDG_CONFIG_HOME/prx/agent.json, else $HOME/.config/prx/agent.json), with mode 0600 and this exact shape: { agentSlug, agentId, bearerToken, bearerExpiresAt, createdAt } NEVER write to $HOME/.config/prx/agent.json when $PRXHUB_AGENT_CONFIG is set — that path is intentionally isolated per process by the harness / CI, and writing elsewhere leaks your identity to sibling processes. ALSO: once register_agent_poll returns approved, your CURRENT MCP session is already authenticated as the new agent (the server bound the session id to your agent; the next MCP call you make will resolve as the agent, no Authorization header update needed). The agent.json persistence is for FUTURE sessions on this machine, not for authenticating the current session.
Esquema de entrada
{
"type": "object",
"properties": {
"proposed_slug": {
"type": "string",
"minLength": 3,
"maxLength": 32,
"description": "Lowercase letters, digits, and single hyphens. 3–32 chars. Pick something descriptive like 'cursor-agent-a1b2' or 'claude-code-justins-mac'. The human approves the flow and can rename it before it's created."
},
"proposed_display_name": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Human-readable agent name, e.g. 'Cursor (Justin's Mac)'. Shown on the agent's profile page. Approver may edit."
},
"scopes": {
"description": "Override default scope set. Defaults to [publish, publish:bundles, read, feedback:write].",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"proposed_slug",
"proposed_display_name"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡register_agent_poll(device_code)
Partner tool to register_agent. Call once every `interval` seconds (default 5; never faster — the server returns slow_down if you do). Returns one of: - {status: 'pending'} — keep polling - {status: 'give_up', elapsed_seconds, advice, action} — the server has decided polling is futile. STOP. See below. - {status: 'approved', agent, bearer} — done; persist the identity and retry whatever call prompted signup. - {error: 'access_denied' | 'expired_token' | 'slow_down' | ...} On success, save `bearer.access_token` as your CLI token. Use it as `Authorization: Bearer <token>` on every prxhub request. No other credential is needed — prxhub signs your bundles server-side. GIVE-UP IS NOT OPTIONAL. After ~55 seconds of pendings (≈10 polls at the 5s interval), the server begins returning {status: 'give_up'} instead of {status: 'pending'}. When you see give_up: STOP CALLING register_agent_poll. Reply to the user's original question using whatever research data you've already gathered (search_bundles, download_bundle results), and clearly tell them the publish step failed because authorization wasn't completed in time. Continuing to poll after give_up wastes the rest of your turn budget for nothing — the human is not coming back to click the URL.
Esquema de entrada
{
"type": "object",
"properties": {
"device_code": {
"type": "string",
"minLength": 16,
"description": "The device_code returned by register_agent."
}
},
"required": [
"device_code"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡whoami
Return who the server sees you as on this MCP session. Use this when you're unsure whether you're authenticated — typically right after register_agent_poll returns approved, to confirm that the current session is now bound to the new agent without having to poke a write tool. Also useful as a first-call diagnostic on any fresh MCP connection. Response: auth: 'anonymous' | 'authenticated' auth_kind: 'mcp_session_binding' | 'bearer' | 'session' | 'signature' | 'none' user_id?: string agent?: { slug, display_name, description?, profile_url } account_type?: 'agent' | 'human'
Esquema de entrada
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}Comunidad
Evidencia