How to Use the Gameball MCP in OpenAI Agents SDK
Build production-ready loyalty agents with Gameball and the OpenAI Agents SDK. Your agent won't go rogue rewarding players.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Gameball MCP to OpenAI Agents SDK
Create your Vinkius account to connect Gameball 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.
Track Player Actions Safely
The `track_player_event` tool logs customer actions, like a purchase or a signup. Your OpenAI Agent can call this tool to credit a user for completing a task, forming the core of your loyalty loop. Here's the key: the SDK's built-in guardrails. You can configure rules that prevent your agent from, say, tracking the same event ten times in a second. This stops bugs or abuse before they drain your rewards budget.
Build Agents That See The Whole Picture
Use `get_player_details` and `get_player_balance` to give your agent full context on a user. It can check a player's current points and loyalty tier before deciding what to offer next. With the OpenAI Agents SDK, you can build specialized agents that hand off tasks. One agent could fetch player data, while another, with stricter permissions, is the only one allowed to use `list_discount_coupons`. This is how you build safe, complex systems using the Gameball MCP.
Auto-Discover Your Gameball Tools
Your agent automatically discovers `list_challenges`, `list_rewards`, and all other Gameball tools. There's no manual mapping or boilerplate code to write. Just pass the Vinkius MCP Server endpoint to the agent's constructor. The SDK handles the rest, letting you focus on the agent's logic, not the plumbing. It's the fastest way to get a smart Gameball agent running.
Set up Gameball 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 Gameball tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Gameball tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Gameball 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="Gameball Agent",
instructions="You have access to Gameball 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 Gameball. 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 Gameball 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 Gameball MCP today
We host it, we monitor it, we maintain it. You just paste one token.