config-mcp

Use when user asks to configure MCP (Model Context Protocol) profiles, add MCP servers, manage MCP integrations, or enable/disable MCP tools for extended functionality.

Config MCP - MCP Profile Management

Overview

Manage MCP (Model Context Protocol) profiles for VibeSurf. MCP allows integrating external tools and data sources with the AI.

When to Use

  • User wants to add a new MCP server
  • User needs to configure MCP integrations
  • User wants to update MCP server parameters
  • User needs to list or manage existing MCP profiles
  • User wants to enable/disable MCP tools

API Endpoints

Base path: $VIBESURF_ENDPOINT/api/config

MCP Profile Management

ActionMethodEndpointDescription
List ProfilesGET/api/config/mcp-profiles?active_only=trueList all MCP profiles
Get ProfileGET/api/config/mcp-profiles/{mcp_id}Get specific profile details
Create ProfilePOST/api/config/mcp-profilesCreate new MCP profile
Update ProfilePUT/api/config/mcp-profiles/{mcp_id}Update existing profile

Request Examples

Create MCP Profile

POST /api/config/mcp-profiles
{
  "display_name": "My MCP Server",
  "mcp_server_name": "server-name",
  "mcp_server_params": {
    "command": "npx",
    "args": ["-y", "@modelcontextprotocol/server-name"],
    "env": {
      "API_KEY": "..."
    }
  },
  "description": "Description of what this MCP server does"
}

Update MCP Profile

PUT /api/config/mcp-profiles/{mcp_id}
{
  "display_name": "Updated Name",
  "mcp_server_params": {
    "command": "npx",
    "args": ["-y", "@modelcontextprotocol/server-name"],
    "env": {
      "API_KEY": "new-key"
    }
  }
}

Profile Fields

FieldTypeRequiredDescription
display_namestringYesHuman-readable name
mcp_server_namestringYesMCP server identifier
mcp_server_paramsobjectYesServer configuration
descriptionstringNoProfile description
is_activeboolNoEnable/disable profile

MCP Server Params

FieldTypeDescription
commandstringCommand to run (e.g., npx, uvx, docker)
argsarrayArguments for the command
envobjectEnvironment variables

Using MCP Tools

Once MCP profiles are configured, their tools become available through the integrations skill:

1. List available tools → GET /api/tool/search?keyword=mcp
2. Execute MCP tool → POST /api/tool/execute
   {
     "action_name": "execute_extra_tool",
     "parameters": {
       "tool_name": "mcp.{server_name}.{tool_name}",
       "tool_arguments": {...}
     }
   }

Common MCP Servers

  • @modelcontextprotocol/server-filesystem - File system access
  • @modelcontextprotocol/server-github - GitHub integration
  • @modelcontextprotocol/server-postgres - PostgreSQL access
  • @modelcontextprotocol/server-puppeteer - Browser automation

Workflow

  1. Identify MCP server → Choose from available MCP servers
  2. Create profilePOST /api/config/mcp-profiles with server params
  3. Verify tools → Use integrations skill to list and use MCP tools