> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmcp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Settings

> Retrieve the current plugin settings.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
       --url https://yoursite.com/wp-json/getmcp/v1/settings \
       --header 'Authorization: Bearer gmcp_your_api_key'
  ```

  ```python Python theme={null}
  import requests
  response = requests.get(
      "https://yoursite.com/wp-json/getmcp/v1/settings",
      headers={"Authorization": "Bearer gmcp_your_api_key"}
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://yoursite.com/wp-json/getmcp/v1/settings",
    {
      headers: { "Authorization": "Bearer gmcp_your_api_key" }
    }
  );
  const data = await response.json();
  ```

  ```php PHP theme={null}
  $response = wp_remote_get(
      "https://yoursite.com/wp-json/getmcp/v1/settings",
      ["headers" => ["Authorization" => "Bearer gmcp_your_api_key"]]
  );
  $data = json_decode(wp_remote_retrieve_body($response), true);
  ```

  ```go Go theme={null}
  package main
  import (
  	"fmt"
  	"io"
  	"net/http"
  )

  func main() {
  	req, _ := http.NewRequest("GET", "https://yoursite.com/wp-json/getmcp/v1/settings", nil)

  	client := &http.Client{}
  	resp, _ := client.Do(req)
  	defer resp.Body.Close()
  	data, _ := io.ReadAll(resp.Body)
  	fmt.Println(string(data))
  }
  ```

  ```java Java theme={null}
  import java.net.URI;
  import java.net.http.HttpClient;
  import java.net.http.HttpRequest;
  import java.net.http.HttpResponse;

  public class Main {
      public static void main(String[] args) throws Exception {
          HttpRequest request = HttpRequest.newBuilder()
              .uri(URI.create("https://yoursite.com/wp-json/getmcp/v1/settings"))
              .GET()
              .build();

          HttpClient client = HttpClient.newHttpClient();
          HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
          System.out.println(response.body());
      }
  }
  ```

  ```ruby Ruby theme={null}
  require 'net/http'
  require 'json'
  require 'uri'

  uri = URI('https://yoursite.com/wp-json/getmcp/v1/settings')
  http = Net::HTTP.new(uri.host, uri.port)
  http.use_ssl = uri.scheme == 'https'

  request = Net::HTTP::Get.new(uri)

  response = http.request(request)
  puts JSON.parse(response.body)
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "default_rate_limit": 60,
    "default_timeout": 30,
    "log_retention_days": 30,
    "analytics_retention_days": 90,
    "log_response_data": false,
    "enable_health_checks": true,
    "health_check_interval": 60,
    "notification_email": "admin@yoursite.com",
    "enable_email_alerts": false,
    "usage_alert_threshold": 1000,
    "keep_data_on_uninstall": false
  }
  ```
</ResponseExample>

## Response Fields

<ResponseField name="default_rate_limit" type="integer">
  Default rate limit (requests per minute) applied to new servers.
</ResponseField>

<ResponseField name="default_timeout" type="integer">
  Default request timeout in seconds for new tools.
</ResponseField>

<ResponseField name="log_retention_days" type="integer">
  How many days to retain call log entries.
</ResponseField>

<ResponseField name="analytics_retention_days" type="integer">
  How many days to retain aggregated daily analytics.
</ResponseField>

<ResponseField name="log_response_data" type="boolean">
  Whether to store API response bodies in call logs.
</ResponseField>

<ResponseField name="enable_health_checks" type="boolean">
  Whether background health checks are enabled.
</ResponseField>

<ResponseField name="health_check_interval" type="integer">
  Health check interval in minutes.
</ResponseField>

<ResponseField name="notification_email" type="string">
  Email address for alert notifications.
</ResponseField>

<ResponseField name="enable_email_alerts" type="boolean">
  Whether email alerts are enabled.
</ResponseField>

<ResponseField name="usage_alert_threshold" type="integer">
  Calls per hour threshold for triggering an email alert.
</ResponseField>

<ResponseField name="keep_data_on_uninstall" type="boolean">
  If true, database tables and options are preserved when the plugin is deleted.
</ResponseField>
