mcpField
A
add-agent

add-agent

github.com/berriaiAgent workflows103122 installsUpdated 25w ago
Repository

About add-agent

A skill for creating and managing AI agents on a live LiteLLM proxy. It collects the agent name and model, with optional description and MCP server access, and provides commands to list, inspect, and delete agents.

Key features

  1. 01Create an agent on LiteLLM
  2. 02Set its name and model
  3. 03Add an optional description
  4. 04Specify MCP server IDs
  5. 05List and inspect agents
  6. 06Delete an agent

Use cases

  1. 01Create an agent using a LiteLLM model
  2. 02Give an agent access to selected MCP servers
  3. 03Inspect an existing agent's details
  4. 04Remove an agent from the proxy

MCP support

The skill can assign MCP server IDs to an agent as optional access settings. It does not describe the MCP server connection or protocol details.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/berriai/litellm-skills --skill add-agent

After installing, type/add-agentin Claude Code to confirm it loaded.

Details

From the project README

Add Agent

Create a new AI agent on a live LiteLLM proxy.

Setup

Ask for these if not already known:

LITELLM_BASE_URL  — e.g. https://my-proxy.example.com
LITELLM_API_KEY   — proxy admin key

API reference: https://docs.litellm.ai/docs/proxy/agents

Ask the user

  1. Agent name (required, e.g. my-coding-agent)
  2. Model — which LiteLLM model should this agent use (e.g. gpt-4o, claude-3-5-sonnet)
  3. Description (optional, shown to callers)
  4. MCP servers (optional) — list of server_ids this agent can use

Run

curl -s -X POST "$BASE/v1/agents" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_name": "<name>",
    "litellm_params": {
      "model": "<model>"
    },
    "agent_card_params": {
      "name": "<name>",
      "description": "<description>",
      "version": "1.0"
    }
  }'

List existing agents

curl -s "$BASE/v1/agents" \
  -H "Authorization: Bearer $KEY"

Get agent info

curl -s "$BASE/v1/agents/<agent_id>" \
  -H "Authorization: Bearer $KEY"

Delete an agent

curl -s -X DELETE "$BASE/v1/agents/<agent_id>" \
  -H "Authorization: Bearer $KEY"

Output

Show agent_id — needed to call or delete this agent later.

Comments

Markdown supported