Skip to main content
Glama
hofill
by hofill

share_request

Generate share tokens for HTTP requests to enable secure access and collaboration on captured web traffic within RequestRepo MCP.

Instructions

Create a share token for a request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_idYes

Implementation Reference

  • The actual business logic implementation of share_request in RequestrepoMCPService class. It calls the requestrepo client's share_request method and returns a dict containing request_id, share_token, and share_url.
    def share_request(self, *, request_id: str) -> dict[str, Any]:
        share_token = self._client().share_request(request_id)
        return {
            "request_id": request_id,
            "share_token": share_token,
            "share_url": f"{self.config.protocol}://{self.config.host}/r/{share_token}",
        }
  • MCP tool registration using the @mcp.tool() decorator in the create_mcp_server function. This exposes the share_request functionality to MCP clients.
    @mcp.tool()
    def share_request(request_id: str) -> dict[str, Any]:
        """Create a share token for a request."""
        return resolved_service.share_request(request_id=request_id)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hofill/RequestRepo-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server