Payload for Server Resource Mapping
Unlike Tools—which require extremely rigid triangular definitions mappingproviderID, toolID, and serverID simultaneously—Resource definitions rely solely on a dual identifier model.
The Minimal Path
When defining a link physically through aPOST /servers/{serverId}/resources request, HasMCP utilizes an abstracted lookup mechanism based upon the resourceID provided. Because every created object on the platform resolves to an explicit ID hash (guaranteeing uniqueness), the system implicitly derives the Provider origin via a subquery.
Required Fields
For theCreateServerResourceRequest:
serverID(string): The 11-character hash establishing the recipient MCP environment acting as the unified gateway for LLMs. This value must mirror the{serverId}deployed in your URL pathing.resourceID(string): The precise 11-character identifier locked onto the specific piece of data mapping.