How to Use the Genius Referrals MCP in OpenAI Agents SDK
Run self-correcting campaigns using the OpenAI Agents SDK to track Genius Referrals advocates and automate payouts.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Genius Referrals MCP to OpenAI Agents SDK
Create your Vinkius account to connect Genius Referrals to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Auto-discover Genius Referrals tools via MCP
The `verify_api_connection` tool initializes your connection to the Genius Referrals MCP Server, letting your OpenAI agents auto-discover all referral endpoints. Your OpenAI agent automatically registers these tools without manual schema mapping, so it can instantly fetch campaign structures or advocate histories. When you pass the Genius Referrals server configuration to your OpenAI Agents SDK constructor, the setup handles the discovery. The OpenAI agent can immediately call `get_campaign_details` to verify active rewards or query `list_referral_campaigns` to determine which promo structure to apply.
Safe advocate registration with guardrails
The `register_advocate` tool lets your OpenAI agent onboard new brand advocates directly from conversational threads. Using built-in guardrails in your OpenAI agents, the model checks advocate input parameters before executing the Genius Referrals registration. If the OpenAI agent detects a typo, it prompts the user for correction instead of failing the Genius Referrals registration. Once verified, it calls `get_advocate_details` to confirm the OpenAI agent has an active profile to log conversions.
Autonomous payout auditing and conversion tracking
The `log_referral_conversion` tool records successful signups while your OpenAI agent coordinates Genius Referrals reward distribution. The OpenAI agent uses `list_tracked_referrals` to trace the origin of a conversion and match it against active campaign rules. To prevent fraud, the OpenAI agent pulls `list_payout_requests` and compares them against `list_top_performers` to flag unusual patterns. The OpenAI agent can then trigger Genius Referrals approvals or hold payouts for review based on real-time historical conversion ratios.
Set up Genius Referrals MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all Genius Referrals tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Genius Referrals tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Genius Referrals tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="Genius Referrals Agent",
instructions="You have access to Genius Referrals tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Genius Referrals. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Genius Referrals MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Genius Referrals MCP today
We host it, we monitor it, we maintain it. You just paste one token.