Retrieve API Key
retrieve_api_keyCollect the API key the user approved after request_api_key. Returns the public key (apikey, pk1_...) and the secret key (secretapikey, sk1_...) exactly once; store them securely right away (for example as PORKBUN_API_KEY /…
Instructions
Collect the API key the user approved after request_api_key. Returns the public key (apikey, pk1_...) and the secret key (secretapikey, sk1_...) exactly once; store them securely right away (for example as PORKBUN_API_KEY / PORKBUN_SECRET_API_KEY in the MCP server's config, never in a committed file). Until the user approves, the answer says the request is still pending: wait and try again. This server keeps using the credentials it was started with; to switch to the new key, update its configuration and restart or reconnect it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_token": "<request_token>",
"code_verifier": "<code_verifier>"
},
"name": "retrieve_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_verifier | Yes | `codeVerifier` from request_api_key. | |
| request_token | Yes | `requestToken` from request_api_key. |