Skip to main content
POST

Path Parameters

string
required
The numeric ID of the server to add the resource to.

Body Parameters

string
required
Unique URI identifier for this resource. Any scheme is valid — common patterns: docs://getting-started, config://app, file:///data/report.json.
string
required
Human-readable resource name shown to AI clients.
string
Description of what the resource contains. Shown to AI clients to help them decide when to read it.
string
default:"text/plain"
MIME type of the returned content. Common values: text/plain, text/markdown, application/json.
string
default:"static"
Where the resource content comes from. One of:
object
Configuration for the chosen data source type. Send as a JSON object — the API encodes and stores it internally.static — serve fixed text content:
url — fetch content from a remote URL:
cache_ttl is optional (seconds, default 0 = no cache).wp_query — query WordPress posts/pages:
Accepts any standard WP_Query argument.callback — call a registered PHP function:
The function receives ($resource, $params) and must return a string.
string
URI template (RFC 6570) for parameterized resources, e.g. file:///data/{id}.json. When set, the resource appears under resources/templates/list in the MCP protocol.