Dagon Inference

v0.1.0
io.github.inkwell-finance/dagon-mcp Checked 23 hours ago Published 22 days ago

Uncensored LLM inference: list models, chat, create keys, buy credits with Solana USDC.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dagon_models List Dagon models

List the models available on Dagon Inference, with their pricing (GET /v1/models). No API key needed.

dagon_balance Check Dagon credit balance

Show the credit balance of a Dagon account key in USD: total credits, total usage, available (GET /v1/credits).

ParameterTypeDescription
api_keystringDagon account key (gk_...). Defaults to the DAGON_API_KEY environment variable.

dagon_create_key Create a Dagon API key

Create a new Dagon account key (POST /v1/keys). The secret is shown only once: store it securely (e.g. as DAGON_API_KEY) and never paste it into shared chats or files under version control.

ParameterTypeDescription
namestringLabel for the key, up to 80 characters.

dagon_buy_credits Buy Dagon credits with Solana USDC

Buy credits for the configured Dagon account, paid in USDC on Solana. The server checks that the gateway's transaction is exactly the USDC payment to the configured treasury (DAGON_TREASURY_WALLET). If the MCP server has a wallet (DAGON_WALLET_SECRET_KEY), it then signs and confirms it (submitting it itself unless the purchase is fee sponsored, in which case the payment service adds the fee payer's signature and submits it). Otherwise it returns the verified unsigned transaction for payer_wallet to sign; then call dagon_confirm_purchase with signed_transaction (fee sponsored: do not submit it…

ParameterTypeDescription
amount_usd *numberAmount to buy in USD (whole cents, e.g. 5 or 12.5).
chainstringPayment chain. Only 'solana' (USDC) is supported.
payer_walletstringBase58 Solana address that pays. Required when the server has no wallet configured.

dagon_confirm_purchase Confirm a Dagon credit purchase

Report a dagon_buy_credits payment you signed yourself so the configured account is credited (POST /v1/credits/purchase/confirm). Fee sponsored: pass signed_transaction, the base64 wallet-signed transaction, without submitting it (the payment service adds the fee payer's signature and submits it; resending the same one is safe). Not fee sponsored: submit it yourself and pass its signature.

ParameterTypeDescription
purchase_id *stringpurchase_id returned by dagon_buy_credits.
signaturestringBase58 Solana transaction signature of the payment you submitted (not fee sponsored).
signed_transactionstringBase64 wallet-signed transaction of a fee-sponsored purchase, not submitted.

dagon_chat Chat with a Dagon model

Send a chat completion to a Dagon model (POST /v1/chat/completions, non-streaming) and return the reply. Spends credits.

ParameterTypeDescription
model *stringModel id from dagon_models.
api_keystringDagon account key (gk_...). Defaults to the DAGON_API_KEY environment variable.
max_tokensinteger
messagesarrayFull conversation, OpenAI chat format. Use this or prompt.
promptstringUser message. Use this or messages.
systemstringOptional system prompt, prepended to the conversation.
temperaturenumber