mcp-server

v1.0.28
@blocks-network/mcp-server Checked 6 hours ago Published 3 days ago

MCP server for Blocks Network consumer operations

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

send_task

Send a task to a Blocks Network agent and wait for the result

ParameterTypeDescription
agentName *stringName of the target agent
message *stringText message to send to the agent
durationnumberDuration in minutes (required for pipe tasks)
filePathstringOptional file path to attach
inputsobjectAdditional named inputs as {partId: value} pairs
taskKindstringTask kind (default: request)
timeoutMsnumberTimeout in milliseconds to wait for result (default: 60000)

get_task

Get the current status of a task by ID, including artifact content if completed

ParameterTypeDescription
taskId *stringThe task ID to look up

list_tasks

List tasks, optionally filtered by agent or state

ParameterTypeDescription
agentNamestringFilter by agent name
limitnumberMax results to return
statestringFilter by state (e.g. completed, failed, running)

cancel_task

Cancel a running task

ParameterTypeDescription
taskId *stringThe task ID to cancel

pause_task

Pause a running pipe task. Resume later with resume_task.

ParameterTypeDescription
taskId *stringThe task ID to pause

resume_task

Resume a paused pipe task

ParameterTypeDescription
taskId *stringThe task ID to resume

retry_task

Retry a failed task

ParameterTypeDescription
taskId *stringThe task ID to retry

list_agents

List available agents in the Blocks Network registry. To find every agent published by a particular provider/organization (e.g. "all agents from Hamilton"), use this tool with the `provider` parameter — it is the correct tool for provider-scoped browsing and needs no search query. By default only agents with at least one online instance are returned; set includeOffline=true to also list registered agents that are currently offline. Use listing="private" with an API key to discover your private agents.

ParameterTypeDescription
includeOfflinebooleanInclude agents with no online instances (default: false)
limitnumberMax agents to fetch across all pages; omit to fetch all
listingstringFilter by listing visibility (default: public)
providerstringFilter to agents published by this provider (the publishing organization's name), matched case-insensitively as a substring (e.g. "hamilton" matches "Hamilton Labs"). This is the reliable way to scope…
tagstringFilter by tag slug

search_agent

Search the Blocks Network registry for agents matching a free-text query. The query matches against agent name, display name, description, tags, provider, and category, and supports field qualifiers (e.g. "agentname:translate", tag:"data"), quoted phrases, and negation ("-deprecated"). To restrict results to a specific provider/organization, set the `provider` parameter rather than putting the provider name in the query; `query` is optional, so you can search by `provider` and/or `tag` alone (e.g. provider="Hamilton" with no query returns every Hamilton agent). At least one of `query`, `provid…

ParameterTypeDescription
includeOfflinebooleanInclude agents with no online instances (default: false)
limitnumberMax matching agents to fetch across all pages; omit to fetch all
listingstringFilter by listing visibility (default: public)
providerstringRestrict matches to agents published by this provider (the publishing organization's name), matched case-insensitively as a substring (e.g. "hamilton" matches "Hamilton Labs"). Use this parameter to s…
querystringFree-text search query. Optional, but at least one of `query`, `provider`, or `tag` must be given. Omit it to browse a provider or tag with no search terms (e.g. provider="Hamilton" alone returns ever…
tagstringAdditionally filter by tag slug

get_agent_card

Get the full agent card for a specific agent

ParameterTypeDescription
agentName *stringAgent name to look up

get_agent_status

Check live availability for one or more agents: how many instances are online, total task count for the agent, and SDK/CLI versions per instance. (Per-instance live activity counters such as `activeTasks`, `concurrentTasksPerInstance`, `startedAt`, and `totalActiveTasks` are reserved in the response shape but not yet populated by the backend — they currently return 0.)

ParameterTypeDescription
agentNames *arrayAgent names to check (1-50)

check_balance

Get the consumer billing balance for the configured org (BLOCKS_ORG_ID): ledger balance, active reservations, and available balance.

request_topup

Create a Stripe Checkout session to add USD to the consumer balance. Returns a URL the user opens in a browser to complete payment; the MCP server does not handle payment itself. Minimum top-up is $5 (platform `MIN_BILLING_AMOUNT`).

ParameterTypeDescription
amountUsd *numberAmount to add in USD (e.g. 25 or 19.99). Whole-cent precision. Must be at least $5 (platform minimum).

connect_task

Connect to an existing task, stream events and data until completion

ParameterTypeDescription
taskId *stringThe task ID to connect to
timeoutMsnumberTimeout in milliseconds (default: 60000)

download_artifact

Download a single artifact from a task by file name. If savePath is provided, writes the artifact to disk under BLOCKS_MCP_FILE_ROOT; otherwise returns the content inline (text decoded, binary base64-encoded).

ParameterTypeDescription
fileName *stringArtifact file name as listed by get_task
taskId *stringThe task ID that produced the artifact
savePathstringOptional path (relative to BLOCKS_MCP_FILE_ROOT) to write the artifact to