Skip to main content
Glama

test_reporting_connection

Verify connectivity to Zebrunner Reporting API using updated authentication methods to ensure reliable test reporting.

Instructions

🔌 Test connection to Zebrunner Reporting API with new authentication

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP server tool registration and inline handler implementation for 'test_reporting_connection'. Tests the Reporting API connection using the ZebrunnerReportingClient.testConnection() method and formats the result as MCP content.
    server.tool(
      "test_reporting_connection",
      "🔌 Test connection to Zebrunner Reporting API with new authentication",
      {},
      async () => {
        try {
          const result = await reportingClient.testConnection();
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(result, null, 2)
              }
            ]
          };
        } catch (error: any) {
          return {
            content: [
              {
                type: "text" as const,
                text: `Reporting API Connection failed: ${error.message}`
              }
            ]
          };
        }
      }
    );
  • Core helper method in ZebrunnerReportingClient that implements the connection test logic by performing authentication and returning detailed success/failure status.
    async testConnection(): Promise<{ success: boolean; message: string; details?: any }> {
      try {
        const bearerToken = await this.authenticate();
        
        return {
          success: true,
          message: 'Connection successful to Zebrunner Reporting API',
          details: {
            baseUrl: this.config.baseUrl,
            tokenLength: bearerToken.length,
            expiresAt: this.tokenExpiresAt
          }
        };
      } catch (error) {
        return {
          success: false,
          message: `Connection failed: ${error instanceof Error ? error.message : 'Unknown error'}`,
          details: { error }
        };
      }
    }

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/maksimsarychau/mcp-zebrunner'

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