KosmoKrator

ai

Together AI MCP Integration for Claude Agent SDK

Connect Together AI to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API key auth

Connect Together AI to Claude Agent SDK

Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.

Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with --write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.

Together AI MCP Config for Claude Agent SDK

Use a narrow integration list so the agent does not load unrelated tools.

{
  "mcpServers": {
    "kosmokrator-together-ai": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=together-ai",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=together-ai --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Together AI instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Together AI Tools Visible to Claude Agent SDK

Claude Agent SDK sees stable MCP tool names generated from the Together AI integration catalog.

MCP toolSource functionTypeDescription
integration__together_ai__togetherai_list_models together-ai.togetherai_list_models Read List all available AI models on Together AI, including open-source and fine-tuned models. Returns model IDs, types, pricing, and capabilities.
integration__together_ai__togetherai_create_completion together-ai.togetherai_create_completion Write Create a chat completion using a Together AI model. Send a conversation with messages and receive a generated response. Supports models like Llama, Mixtral, Qwen, DBRX, and more.
integration__together_ai__togetherai_list_fine_tunes together-ai.togetherai_list_fine_tunes Read List all fine-tuning jobs on Together AI. Returns job IDs, status, base model, training file, and creation timestamps.
integration__together_ai__togetherai_get_fine_tune together-ai.togetherai_get_fine_tune Read Get details of a specific fine-tuning job on Together AI. Returns status, training progress, hyperparameters, and the output model ID once complete.
integration__together_ai__togetherai_list_files together-ai.togetherai_list_files Read List all files uploaded to Together AI. Returns file IDs, filenames, sizes, and purposes (e.g. fine-tune training data, results).
integration__together_ai__togetherai_get_file together-ai.togetherai_get_file Read Get details of a specific file on Together AI. Returns file metadata including name, size, purpose, and creation date.
integration__together_ai__togetherai_get_current_user together-ai.togetherai_get_current_user Read Get the authenticated Together AI user's account information, including name, email, and plan details.

Related Together AI Pages