Blocks
MCP Resource
Create and manage Model Context Protocol resources
Create and manage resources for MCP servers. Resources provide contextual data to LLM applications.
Block Preview
MCP Resource
Create and manage Model Context Protocol resources
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the mcp_resource block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: full
Options: Create Resource, Get Resource, Update Resource, Delete Resource
Resource Name
short-inputPlaceholder: my-resource
Layout: half
Condition: operation = ["create_resource","get_resource","update_resource","delete_resource"]
Resource Template
short-inputPlaceholder: resource://{param1}/{param2}
Layout: full
Condition: operation = ["create_resource","update_resource"]
Resource Content
long-inputPlaceholder: Content of the resource
Layout: full
Condition: operation = ["create_resource","update_resource"]
MIME Type
short-inputPlaceholder: text/plain
Layout: half
Condition: operation = ["create_resource","update_resource"]
Server URL
short-inputPlaceholder: http://localhost:3000/mcp or stdio://path/to/server.js
Layout: full
Resource Parameters (JSON)
codePlaceholder: { "param1": "value1", "param2": "value2" }
Layout: full
Condition: operation = ["get_resource"]
Timeout (ms)
short-inputPlaceholder: 30000
Layout: half
Inputs (API)
operation
stringRequired
serverUrl
stringRequired
resourceName
stringOptional
resourceTemplate
stringOptional
resourceContent
stringOptional
mimeType
stringOptional
resourceParams
jsonOptional
timeout
numberOptional
Outputs
Primary response type:
{
"success": "boolean",
"contents": "json",
"error": "string"
}