Skip to content
Projects
Electronic ArtsElectronic Arts·engineering

MCP Server Integrations

Bi-directional Agent Data Flow

MCPSwiftAgentsInfrastructure
The Model Context Protocol (MCP) enables AI agents to securely access external data sources and tools. For Project AIR, I integrated MCP servers to give our autonomous agents the ability to read from and write to both local device data and cloud services.
The implementation involved building a Swift-native MCP client that runs on iOS, connecting to MCP servers that expose game state, player preferences, location data, and cloud-hosted knowledge graphs. This creates a bi-directional data flow: agents can query the player's context (what they've done, where they are, what they prefer) and push updates back (new events, relationship changes, world state mutations).
I personally authored the Swift frontend layer that handles MCP communication, including connection management, request routing, and response parsing. The architecture supports multiple concurrent MCP servers — one for local data, one for cloud state, one for the knowledge graph — with automatic failover and caching.
I also built this with Claude Code as my primary development tool, maintaining a CLI-first development cycle that let me move fast between the Swift client and the Go backend.