finance
Splitwise MCP Integration for OpenAI Agents SDK
Connect Splitwise to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Splitwise to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Splitwise MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-splitwise": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=splitwise",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=splitwise --write=deny Why Use KosmoKrator Here
Expose only Splitwise instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Splitwise Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Splitwise integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__splitwise__splitwise_list_expenses | splitwise.splitwise_list_expenses | Read | List shared expenses from Splitwise. Optionally filter by group, friend, or date range. Returns expense details including cost, description, category, and split information. |
integration__splitwise__splitwise_get_expense | splitwise.splitwise_get_expense | Read | Get detailed information about a specific expense in Splitwise, including cost, description, category, date, and how it was split among users. |
integration__splitwise__splitwise_create_expense | splitwise.splitwise_create_expense | Write | Create a new shared expense in Splitwise. Specify the total cost, description, and users involved. The expense will be split equally unless custom owed_share amounts are provided per user. |
integration__splitwise__splitwise_list_groups | splitwise.splitwise_list_groups | Read | List all groups the current user belongs to in Splitwise. Returns group names, member information, and balance summaries. |
integration__splitwise__splitwise_get_group | splitwise.splitwise_get_group | Read | Get detailed information about a specific group in Splitwise, including all members and their current balances. |
integration__splitwise__splitwise_list_friends | splitwise.splitwise_list_friends | Read | List all friends on Splitwise with their current balance information. Shows how much you owe or are owed by each friend. |
integration__splitwise__splitwise_get_current_user | splitwise.splitwise_get_current_user | Read | Get the authenticated Splitwise user's profile, including name, email, default currency, and account settings. |