Skip to main content
Glama
hofill
by hofill

session_info

Retrieve active client session details, including optional authentication token, for managing HTTP requests and DNS configurations in RequestRepo.

Instructions

Return session info for the active requestrepo client.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_tokenNo

Implementation Reference

  • The session_info handler method in RequestrepoMCPService class that implements the actual business logic. Returns session info including subdomain, domain, endpoint, and optionally the token based on the include_token parameter.
    def session_info(self, *, include_token: bool = False) -> dict[str, Any]:
        client = self._client()
        payload: dict[str, Any] = {
            "subdomain": client.subdomain,
            "domain": client.domain,
            "endpoint": f"{client.subdomain}.{client.domain}",
        }
        if include_token:
            payload["token"] = client.token
        return payload
  • Registration of the session_info tool using the @mcp.tool() decorator. This defines the MCP tool interface that accepts an optional include_token parameter and delegates to the service's session_info method.
    @mcp.tool()
    def session_info(include_token: bool = False) -> dict[str, Any]:
        """Return session info for the active requestrepo client."""
        return resolved_service.session_info(include_token=include_token)

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