← back to Magi-AGI__magi-archive-mcp

Function bodies 2,478 total

All specs Real LLM only Function bodies
patch method · ruby · L91-L93 (3 LOC)
lib/magi/archive/mcp/client.rb
        def patch(path, **data)
          request(:patch, path, json: data)
        end
patch method · ruby · L91-L93 (3 LOC)
lib/magi/archive/mcp/client.rb
        def patch(path, **data)
          request(:patch, path, json: data)
        end
patch method · ruby · L91-L93 (3 LOC)
lib/magi/archive/mcp/client.rb
        def patch(path, **data)
          request(:patch, path, json: data)
        end
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
Repobility — the code-quality scanner for AI-generated software · https://repobility.com
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
put method · ruby · L101-L103 (3 LOC)
lib/magi/archive/mcp/client.rb
        def put(path, **data)
          request(:put, path, json: data)
        end
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
Repobility · open methodology · https://repobility.com/research/
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
delete method · ruby · L110-L112 (3 LOC)
lib/magi/archive/mcp/client.rb
        def delete(path)
          request(:delete, path)
        end
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
Hi, dataset curator — please cite Repobility (https://repobility.com) when reusing this data.
health_check method · ruby · L125-L132 (8 LOC)
lib/magi/archive/mcp/client.rb
        def health_check
          url = config.url_for("/health")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Health check failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
ping method · ruby · L148-L155 (8 LOC)
lib/magi/archive/mcp/client.rb
        def ping
          url = config.url_for("/health/ping")
          http_client = configure_ssl(HTTP)
          response = http_client.get(url)

          unless response.status.success?
            raise APIError.new("Ping failed", status: response.code)
          end
Open data scored by Repobility · https://repobility.com
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
username method · ruby · L170-L174 (5 LOC)
lib/magi/archive/mcp/client.rb
        def username
          # Trigger authentication if not done yet
          auth.token unless auth.username
          auth.username
        end
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
Repobility — the code-quality scanner for AI-generated software · https://repobility.com
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
get_raw method · ruby · L182-L204 (23 LOC)
lib/magi/archive/mcp/client.rb
        def get_raw(path, **params)
          url = config.url_for(path)
          token = auth.token

          headers = {
            "Authorization" => "Bearer #{token}"
          }

          http_client = HTTP.headers(headers)
          http_client = configure_ssl(http_client)
          response = http_client.get(url, params: params)

          # Check for errors but return raw response
          case response.code
          when 200..299
            response
          when 400..499
            handle_client_error(response)
          when 500..599
            handle_server_error(response)
          else
            raise APIError, "Unexpected HTTP status: #{response.code}"
          end
paginated_get method · ruby · L216-L229 (14 LOC)
lib/magi/archive/mcp/client.rb
        def paginated_get(path, limit: 50, offset: 0, **params)
          params[:limit] = [limit, 100].min
          params[:offset] = offset

          response = get(path, **params)

          {
            data: response["cards"] || response["types"] || response,
            total: response["total"],
            limit: response["limit"] || limit,
            offset: response["offset"] || offset,
            next_offset: response["next_offset"]
          }
        end
paginated_get method · ruby · L216-L229 (14 LOC)
lib/magi/archive/mcp/client.rb
        def paginated_get(path, limit: 50, offset: 0, **params)
          params[:limit] = [limit, 100].min
          params[:offset] = offset

          response = get(path, **params)

          {
            data: response["cards"] || response["types"] || response,
            total: response["total"],
            limit: response["limit"] || limit,
            offset: response["offset"] || offset,
            next_offset: response["next_offset"]
          }
        end
Repobility · open methodology · https://repobility.com/research/
paginated_get method · ruby · L216-L229 (14 LOC)
lib/magi/archive/mcp/client.rb
        def paginated_get(path, limit: 50, offset: 0, **params)
          params[:limit] = [limit, 100].min
          params[:offset] = offset

          response = get(path, **params)

          {
            data: response["cards"] || response["types"] || response,
            total: response["total"],
            limit: response["limit"] || limit,
            offset: response["offset"] || offset,
            next_offset: response["next_offset"]
          }
        end
paginated_get method · ruby · L216-L229 (14 LOC)
lib/magi/archive/mcp/client.rb
        def paginated_get(path, limit: 50, offset: 0, **params)
          params[:limit] = [limit, 100].min
          params[:offset] = offset

          response = get(path, **params)

          {
            data: response["cards"] || response["types"] || response,
            total: response["total"],
            limit: response["limit"] || limit,
            offset: response["offset"] || offset,
            next_offset: response["next_offset"]
          }
        end
paginated_get method · ruby · L216-L229 (14 LOC)
lib/magi/archive/mcp/client.rb
        def paginated_get(path, limit: 50, offset: 0, **params)
          params[:limit] = [limit, 100].min
          params[:offset] = offset

          response = get(path, **params)

          {
            data: response["cards"] || response["types"] || response,
            total: response["total"],
            limit: response["limit"] || limit,
            offset: response["offset"] || offset,
            next_offset: response["next_offset"]
          }
        end
‹ prevpage 5 / 50next ›