Idatha yokuthengwa okungasetshenziswa yi-ejenti yakho ngokwayo.
Point any MCP-capable client — Claude Desktop, Claude Code, Cursor, or your own agent — at our streamable-HTTP endpoint. It can search government tenders and contract awards from official sources, drill into buyers and suppliers, keep lists, and even self-register and pay for access with no human in the loop.
# I-Endpoint
https://app.selltostate.com/api/mcp
# Uhlu lwamathuluzi (kuvuliwe, akudingeki ukungena)
curl -s https://app.selltostate.com/api/mcp \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,
"method":"tools/list"}' tools/list is open; tools/call resolves your credential and 402s if un-entitled.
Add it to your client.
Clients with a browser sign you in with OAuth. Other clients send an API key from
your account.
The server is in the official MCP Registry as com.selltostate/mcp.
Claude
Customize, then Connectors. Select + Add, then Add custom connector. Paste the URL and select Connect.
https://app.selltostate.com/api/mcp Step by step → ChatGPT
On chatgpt.com/plugins, select + and Add custom MCP server. Paste the URL and choose OAuth.
https://app.selltostate.com/api/mcp Step by step → Claude Code
Add the server, then run /mcp and choose Authenticate.
claude mcp add --transport http selltostate https://app.selltostate.com/api/mcp Step by step → Gemini CLI
Install the extension. Gemini CLI opens your browser to sign in.
gemini extensions install https://github.com/getbeton/selltostate-skills Step by step → Cursor and other clients
Add the server to mcp.json with your API key in the x-api-key header.
{
"mcpServers": {
"selltostate": {
"url": "https://app.selltostate.com/api/mcp",
"headers": { "x-api-key": "sts_..." }
}
}
} Inqubo yokuxhuma.
- 1
Ukuthola
Amakhasimende ahambisana nomthetho afunda i-/.well-known/oauth-protected-resource (RFC 9728) ne-/.well-known/oauth-authorization-server (RFC 8414) ukuze afunde ngomthombo, umkhiphi, kanye nemikhawulo.
- 2
Ukubhalisa
Ngaphandle kwemininingwane yokungena eyabelwana ngayo kusengaphambili, ikhasimende liyazibhalisa nge-RFC 7591 DCR (POST /api/oidc/register) bese lithola i-client_id enemikhawulo yedatha engu-zero kanye ne-payment_link.
- 3
Authenticate
Clients with a browser (Claude, ChatGPT, Cursor) run the OAuth 2.1 authorization-code flow with PKCE, and you sign in with your Sell to State account. An agent without a browser presents the issued client as Authorization: Bearer client:<client_id> on every tools/call.
- 4
Ukubhalisela
Kuze kube yilapho isihloko sekhasimende sinelungelo, yonke i-tools/call ibuyisela umzimba we-402 ofanayo ne-REST — i-payment_link yomuntu kanye nesici se-machine_payment esakhelwe amaejenti. I-ejenti ibiza i-pay, ikhokhiswa ngaphandle kwesikhathi sokuxhumana, bese ukubiza kwayo okulandelayo kubuyisela idatha.
Amathuluzi angu-26, alingana ne-REST.
Every tool mirrors a REST endpoint 1:1. Owner-scoped list / saved-search tools require a user API key; an OIDC client token gets a requires_user_key result. Full schemas in the reference.
whoami data:read Ubunikazi + ilungelo + imikhawulo (akuvingciwe — qinisekisa ngaphambi kokuchitha imali). search data:read Usesho olunezici phezu komkhawulo owodwa: amathenda | abathengi | abaphakeli | imikhakha. search_awards data:read Isishicilelo sokuhlola izinkontileka (q, umnyango, umphakeli, isigaba, unyaka, ibanga lenani). get_buyer data:read Imininingwane yomthengi (get_buyer_detail iyigama elifanayo eligcinwe). get_supplier_detail data:read Imininingwane yomphakeli kanye nabathengi abahamba phambili + ukuhlukaniswa ngemikhakha. get_sector / get_tender data:read Iphrofayela yomkhakha · inkontileka eyodwa + izinkontileka ezihlobene. list_buyers / list_suppliers / list_sectors data:read Iminyango, abaphakeli abahamba phambili abangu-N, kanye nohlelo lokuhlukaniswa kwemikhakha. get_lists / create_list / add_to_list … data:read Ukuphatha (CRUD) uhlu lwezinkontileka olugciniwe — kudinga i-API key yomsebenzisi. get_saved_searches / save_search … data:read Ukuphatha (CRUD) usesho olugciniwe — kudinga i-API key yomsebenzisi. export data:export Thumela iqoqo lezinkontileka elihlungiwe njenge-CSV. pay billing:pay Khokha ngokuzimela ngethokheni ye-Stripe ukuvula ukufinyelela — ngaphandle kwekhasi lokukhokha. Biza ithuluzi.
curl -s https://app.selltostate.com/api/mcp \
-H "Authorization: Bearer client:c_abc123" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
"params":{"name":"search",
"arguments":{"scope":"tenders","q":"cloud","year_min":2024}}}' Uma sekuxhunyiwe, vele ubuze
- → "Sesha ku-Sell to State izinkontileka ezinqotshiwe zezokuphepha kwe-cyber zango-2024 bese ufingqa abaphakeli abahamba phambili abayi-5."
- → "Thatha zonke izinkontileka ezinikezwe uMnyango Wezemfundo kulo nyaka bese uzithumela njenge-CSV."
- → "Sebenzisa i-get_buyer kumnyango ofanele — uSingapore uthenga izinsizakalo zokwakha kobani?"
Xhuma i-ejenti yakho.
Create an account, generate an API key, and point your MCP client at https://app.selltostate.com/api/mcp. Agents can also self-register and pay without a dashboard. Full tool docs at docs.selltostate.com.