Cisco Support APIs 标志

Cisco Support APIs

社区
sieteunoseis

Comprehensive TypeScript MCP server for Cisco Support APIs with dual transport support

发布者sieteunoseis
代码仓库mcp-cisco-support
语言TypeScript
复刻数
11
星标数
33
可用工具
14
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Cisco Support APIs 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 14 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 33 个星标和 11 个复刻。

Cisco Support MCP Server

npm version License: MIT TypeScript MCP Glama Cisco Code Exchange Docker CI/CD

A production-ready TypeScript MCP (Model Context Protocol) server for Cisco Support APIs with comprehensive security and dual transport support. This extensible server provides access to multiple Cisco Support APIs including Bug Search, Case Management, and End-of-Life information.

🚀 Current Features

  • Multi-API Support: 8 Cisco Support APIs fully implemented (46 total tools)
  • OAuth 2.1 Server: ✨ Production-grade authentication with fine-grained scope-based access control
  • ElicitationRequest Support: Dynamic user interaction for gathering missing parameters
  • Triple Auth Modes: stdio (no auth), Bearer token (simple), OAuth 2.1 (production)
  • Configurable API Access: Enable only the Cisco Support APIs you have access to
  • Specialized Prompts: 9 workflow prompts for guided Cisco support scenarios
  • Dual Transport: stdio (local MCP clients) and HTTP (remote server with auth)
  • OAuth2 Authentication: Automatic token management with Cisco API
  • Real-time Updates: Server-Sent Events for HTTP mode
  • TypeScript: Full type safety and MCP SDK integration
  • Production Security: Helmet, CORS, input validation, PKCE, scope validation
  • Docker Support: Containerized deployment with OAuth config volume mounts
  • Comprehensive Logging: Structured logging with timestamps

📊 Supported Cisco APIs

The server supports the following Cisco Support APIs (configurable via SUPPORT_API environment variable):

APIStatusToolsDescription
Enhanced Analysis (enhanced_analysis)⭐ RECOMMENDED6 toolsAdvanced analysis tools for comprehensive product assessment
Bug (bug)✅ Complete14 toolsBug Search, Details, Product-specific searches + Enhanced tools
Case (case)✅ Complete4 toolsSupport case management and operations
EoX (eox)✅ Complete4 toolsEnd of Life/Sale information and lifecycle planning
PSIRT (psirt)✅ Complete8 toolsProduct Security Incident Response Team vulnerability data
Product (product)✅ Complete3 toolsProduct details, specifications, and technical information
Software (software)✅ Complete6 toolsSoftware suggestions, releases, and upgrade recommendations
Serial (serial)✅ Complete3 toolsSerial number to coverage, warranty, and product information
RMA (rma)✅ Complete3 toolsReturn Merchandise Authorization tracking and management
Smart Bonding (smart_bonding)⚠️ EXPERIMENTAL8 toolsComplete ticket lifecycle management and TSP codes (UNTESTED - requires special credentials)

Implementation Status: 8/8 Core APIs complete (100%) with 46 total tools + 1 experimental API (8 tools)

Configuration Examples:

  • SUPPORT_API=enhanced_analysis - Enhanced analysis tools only (6 tools) ← RECOMMENDED for most users
  • SUPPORT_API=bug - All Bug API tools including enhanced analysis (14 tools)
  • SUPPORT_API=bug,case,eox,psirt - Core support APIs (28 tools)
  • SUPPORT_API=bug,case,eox,psirt,product,software - All implemented APIs (39 tools)
  • SUPPORT_API=all - All available APIs (includes 2 placeholder APIs)

Quick Start

NPX Installation (Recommended)

Start in stdio mode for Claude Desktop:

bash
npx mcp-cisco-support

Start HTTP server with authentication:

bash
npx mcp-cisco-support --http
# Token displayed in console for authentication

Generate Bearer token for HTTP mode:

bash
npx mcp-cisco-support --generate-token

Get help and see all options:

bash
npx mcp-cisco-support --help

Environment Setup

  1. Generate authentication token (for HTTP mode):

    bash
    npx mcp-cisco-support --generate-token
    export MCP_BEARER_TOKEN=<generated_token>
  2. Set Cisco API credentials:

    bash
    export CISCO_CLIENT_ID=your_client_id_here
    export CISCO_CLIENT_SECRET=your_client_secret_here
    export SUPPORT_API=bug,case,eox,psirt,product,software  # All implemented APIs (recommended)
  3. Start the server:

    bash
    # For Claude Desktop (stdio mode)
    npx mcp-cisco-support
    
    # For HTTP access (with authentication)
    npx mcp-cisco-support --http

Local Development

bash
git clone https://github.com/sieteunoseis/mcp-cisco-support.git
cd mcp-cisco-support
npm install
npm run build
npm start

Claude Desktop Integration

Prerequisites

  1. Get Cisco API Credentials:

    • Visit Cisco API Console
    • Create an application and get your Client ID and Secret
    • Ensure the application has access to the Bug API
  2. Install Claude Desktop:

    • Download from Claude.ai
    • Make sure you're using a recent version that supports MCP

Step-by-Step Setup

  1. Locate Claude Desktop Config File:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Create or Edit the Config File:

    json
    {
      "mcpServers": {
        "cisco-support": {
          "command": "npx",
          "args": ["-y", "mcp-cisco-support"],
          "env": {
            "CISCO_CLIENT_ID": "your_client_id_here",
            "CISCO_CLIENT_SECRET": "your_client_secret_here",
            "SUPPORT_API": "bug,product"
          }
        }
      }
    }

    Note: The -y flag automatically accepts package installation, which is required for Claude Desktop since it runs in the background without user interaction.

    Optional Environment Variables:

    Configure which APIs to enable with SUPPORT_API:

    • "enhanced_analysis" - Enhanced analysis tools only (recommended for most users)
    • "bug" - Bug API only (default)
    • "bug,product" - Bug + Product APIs (enables product autocomplete)
    • "all" - All available APIs
    • "bug,case,eox" - Multiple specific APIs

    Product Autocomplete (optional, requires SUPPORT_API to include product):

    json
    "env": {
      "CISCO_CLIENT_ID": "your_client_id_here",
      "CISCO_CLIENT_SECRET": "your_client_secret_here",
      "SUPPORT_API": "bug,product",
      "CISCO_WEB_COOKIE": "JSESSIONID=...; OptanonConsent=..."
    }

    See the Product Autocomplete section for setup instructions.

  3. Replace Your Credentials:

    • Replace your_client_id_here with your actual Cisco Client ID
    • Replace your_client_secret_here with your actual Cisco Client Secret
  4. Restart Claude Desktop:

    • Close Claude Desktop completely
    • Reopen the application
    • The MCP server will be automatically loaded

Verification

After setup, you should be able to:

  1. Ask Claude about Cisco bugs:

    "Search for bugs related to memory leaks in Cisco switches"
  2. Get specific bug details:

    "Get details for Cisco bug CSCab12345"
  3. Search by product:

    "Find bugs affecting Cisco Catalyst 3560 switches"

Example Usage in Claude Desktop

Once configured, you can ask Claude questions like:

  • Basic Bug Search:

    • "Search for recent bugs related to 'crash' in Cisco products"
    • "Find open bugs with severity 1 or 2"
    • "Show me bugs modified in the last 30 days"
  • Product-Specific Searches:

    • "Find bugs for product ID C9200-24P"
    • "Search for bugs in Cisco Catalyst 9200 Series affecting release 17.5.1"
    • "Show bugs fixed in software release 17.5.2"
  • Bug Details:

    • "Get full details for bug CSCab12345"
    • "Show me information about bugs CSCab12345,CSCcd67890"
  • Advanced Filtering:

    • "Find resolved bugs with severity 3 modified after 2023-01-01"
    • "Search for bugs in 'Cisco ASR 9000 Series' sorted by severity"
    • "Can you show me all the cisco bugs in the last 30 days for the product Cisco Unified Communications Manager (CallManager)?" (uses keyword search)
    • "Find bugs for Cisco Unified Communications Manager affecting releases 14.0 and 15.0" (uses product series search)

Claude will use the appropriate MCP tools to fetch real-time data from Cisco's Bug API and provide comprehensive responses with the latest information.

MCP Prompts

The server includes 10+ specialized prompts for guided Cisco support workflows:

  • 🔍 cisco-high-severity-search - Search high-severity bugs by product or serial number
  • 🚨 cisco-incident-investigation - Investigate symptoms and errors
  • 🔄 cisco-upgrade-planning - Research issues before upgrades
  • 🔧 cisco-maintenance-prep - Prepare for maintenance windows
  • 🔒 cisco-security-advisory - Research security vulnerabilities
  • ⚠️ cisco-known-issues - Check for software release issues
  • 📋 cisco-case-investigation - Investigate support cases
  • ⏰ cisco-lifecycle-planning - End-of-life planning
  • 🎯 cisco-smart-search - Intelligent search with automatic refinement
  • ✨ cisco-interactive-search - Interactive search with elicitation

Serial Number Support: Most prompts now accept either a product name OR a serial number. When you provide a serial number (e.g., "SAL09232Q0Z"), the server automatically looks up the product details and uses them for the search. This makes it easy to investigate issues when you have a device serial number but don't know the exact product model.

Each prompt provides structured investigation plans and expert recommendations.

Interactive Search with Elicitation

The cisco-interactive-search prompt demonstrates MCP's elicitation feature, allowing the server to dynamically request additional information from users during tool execution. This makes searches more natural and helps gather missing parameters without restarting requests.

Example Usage:

Use the "cisco-interactive-search" prompt with:
- initial_query: "memory leak"
- use_elicitation: true

See examples/elicitation-example.md for detailed usage examples and ⚡ MCP Prompts for complete prompt documentation.

🔍 MCP Resources - Product Autocomplete

The server exposes Cisco data as MCP Resources for direct client access. This includes a new Product Autocomplete feature that lets you search Cisco's internal product catalog using your browser session cookie.

Available Product Resources

When SUPPORT_API includes product, the following resources are available:

Resource Templates (dynamic URIs):

  • cisco://products/{product_id} - Get product details by ID (e.g., C9300-24P, ISR4431)
  • cisco://products/autocomplete/{search_term} - ✨ NEW: Search product catalog by name or model

Static Resources:

  • cisco://products/catalog - Product catalog overview
  • cisco://products/autocomplete-help - ✨ NEW: Setup instructions for product autocomplete

Product Autocomplete Setup

The product autocomplete feature requires your Cisco.com session cookie to access Cisco's internal API.

Quick Setup:

  1. Log in to Cisco:

  2. Extract Your Cookie:

    • Open browser DevTools (F12)
    • Go to Application/Storage > Cookies
    • Select https://bst.cloudapps.cisco.com
    • Copy all cookie values
  3. Set Environment Variable:

    bash
    export CISCO_WEB_COOKIE="JSESSIONID=...; OptanonConsent=...; ..."
  4. Query Products:

    cisco://products/autocomplete/4431
    cisco://products/autocomplete/catalyst
    cisco://products/autocomplete/ASA

Cookie Lifecycle:

  • Typical Validity: 24 hours
  • Recommended Refresh: Daily before heavy use
  • Expiration Signs: 401/403 errors, "Cookie expired" messages

For detailed setup instructions, query the help resource:

cisco://products/autocomplete-help

Example Response

Query: cisco://products/autocomplete/4431

json
{
  "autoPopulateHMPProductDetails": [{
    "parentMdfConceptId": 286281708,
    "parentMdfConceptName": "Cisco 4000 Series Integrated Services Routers",
    "mdfConceptId": 284358776,
    "mdfConceptName": "Cisco 4431 Integrated Services Router",
    "mdfMetaclass": "Model"
  }]
}

Security Best Practices

  • ✅ Never commit cookies - they're like passwords
  • ✅ Use .env file - already in .gitignore
  • ✅ Refresh regularly - cookies expire after ~24 hours
  • ✅ Monitor activity - check your Cisco account
  • ✅ Use dedicated account - not your primary login

Usage in Claude Desktop

Ask Claude:

  • "Show me the help for product autocomplete"
  • "Search for Cisco product 4431 using autocomplete"
  • "What is the full name of product ISR4431?"
  • "Find products matching 'catalyst switch'"

See docs/PRODUCT_AUTOCOMPLETE_SOLUTIONS.md for implementation details and docs/CISCO_COOKIE_ANALYSIS.md for cookie lifecycle information.

⚠️ Smart Bonding Customer API (EXPERIMENTAL/UNTESTED)

The server includes experimental support for Cisco's Smart Bonding Customer API for ticket management and problem code classification. This feature is UNTESTED and requires special credentials obtained through your Cisco Account Manager.

Smart Bonding Features

Available Tools (8 total):

  • get_smart_bonding_tsp_codes - Retrieve TSP (Technology, Sub-Technology, Problem Code) details for ticket classification
  • pull_smart_bonding_tickets - Retrieve ticket updates from Cisco that haven't been pulled yet
  • create_smart_bonding_ticket - Create a new support ticket (returns upload credentials in response)
  • update_smart_bonding_ticket - Add work notes and update ticket status
  • upload_file_to_smart_bonding_ticket - Upload files using credentials from ticket creation (HTTPS PUT to cxd.cisco.com)
  • escalate_smart_bonding_ticket - Escalate critical issues to Cisco
  • resolve_smart_bonding_ticket - Mark tickets as resolved with resolution notes
  • close_smart_bonding_ticket - Close completed tickets with diagnosis and solution

File Upload Process

Smart Bonding uses a separate upload mechanism from the REST API:

  1. Create ticket → Response includes upload credentials (Field80-82)
  2. Save credentials → Cannot be retrieved later!
  3. Upload files → Use upload_file_to_smart_bonding_ticket tool or curl
  4. 72-day expiration → Token expires 72 days after creation

Upload credentials provided in ticket creation response:

  • Field80: Upload domain (e.g., cxd.cisco.com)
  • Field81: Authentication token (password)
  • Field82: Token expiration timestamp

Files cannot be modified after upload - submit new files for corrections.

Authentication Differences

Smart Bonding API uses a different authentication system than standard Cisco Support APIs:

FeatureStandard Support APIsSmart Bonding API
OAuth2 Endpointhttps://id.cisco.com/oauth2/default/v1/tokenhttps://cloudsso.cisco.com/as/token.oauth2
Token Validity12 hours1 hour
CredentialsSelf-service via Cisco Developer PortalContact Cisco Account Manager
Environment VariablesCISCO_CLIENT_ID, CISCO_CLIENT_SECRETSMART_BONDING_CLIENT_ID, SMART_BONDING_CLIENT_SECRET

Configuration

  1. Obtain Credentials - Contact your Cisco Account Manager to request Smart Bonding API access

  2. Set Environment Variables:

    bash
    export SMART_BONDING_CLIENT_ID=your_smart_bonding_client_id
    export SMART_BONDING_CLIENT_SECRET=your_smart_bonding_client_secret
    export SMART_BONDING_ENV=production  # or 'staging' for test environment
    export SUPPORT_API=smart_bonding     # Enable Smart Bonding API
  3. Use Smart Bonding Tools:

    • Get TSP codes for ticket classification
    • Pull new ticket updates
    • Create/update tickets with standardized problem categorization

Important Notes

  • ⚠️ EXPERIMENTAL/UNTESTED - This implementation has not been tested with live Smart Bonding credentials
  • ⚠️ Separate Credentials Required - Smart Bonding uses different OAuth2 credentials than standard Support APIs
  • ⚠️ Not Included in SUPPORT_API=all - Must be explicitly enabled with SUPPORT_API=smart_bonding
  • ⚠️ Special Access Required - Contact Cisco Account Manager for credential provisioning
  • Base URLs differ for staging vs production environments
  • Supports correlation IDs for end-to-end request traceability

Example Usage

bash
# With Claude Desktop - add to claude_desktop_config.json
{
  "mcpServers": {
    "cisco-smart-bonding": {
      "command": "npx",
      "args": ["-y", "mcp-cisco-support"],
      "env": {
        "SMART_BONDING_CLIENT_ID": "your_id",
        "SMART_BONDING_CLIENT_SECRET": "your_secret",
        "SMART_BONDING_ENV": "production",
        "SUPPORT_API": "smart_bonding"
      }
    }
  }
}

For complete implementation details and API architecture, see SMART_BONDING_IMPLEMENTATION.md.

Screenshots

Claude Desktop Integration

Claude Desktop Integration

Claude Desktop successfully connected to the Cisco Support MCP server, demonstrating the bug search functionality with real-time responses from Cisco's Bug API.

MCP Inspector

MCP Inspector Integration

MCP Inspector v0.14.0+ showing the available tools and server connectivity testing capabilities.

Alternative Installation Methods

Global Installation

If you prefer to install globally instead of using npx:

bash
npm install -g mcp-cisco-support

Then use this config:

json
{
  "mcpServers": {
    "cisco-support": {
      "command": "mcp-cisco-support",
      "env": {
        "CISCO_CLIENT_ID": "your_client_id_here",
        "CISCO_CLIENT_SECRET": "your_client_secret_here",
        "SUPPORT_API": "bug"
      }
    }
  }
}

Local Installation

For development or custom setups:

bash
git clone https://github.com/sieteunoseis/mcp-cisco-support.git
cd mcp-cisco-support
npm install
npm run build

Then use this config:

json
{
  "mcpServers": {
    "cisco-support": {
      "command": "node",
      "args": ["/path/to/mcp-cisco-support/dist/index.js"],
      "env": {
        "CISCO_CLIENT_ID": "your_client_id_here",
        "CISCO_CLIENT_SECRET": "your_client_secret_here",
        "SUPPORT_API": "bug"
      }
    }
  }
}

Troubleshooting

Common Issues

  1. "Command not found" errors:

    • Ensure Node.js 18+ is installed
    • Try global installation: npm install -g mcp-cisco-support
    • Verify the path in your config file
  2. Authentication failures:

    • Double-check your Client ID and Secret
    • Ensure your Cisco API app has Bug API access
    • Check for typos in the config file
  3. MCP server not loading:

    • Restart Claude Desktop completely
    • Check the config file syntax with a JSON validator
    • Look for Claude Desktop logs/error messages
  4. Permission errors:

    • Ensure the config file is readable
    • On macOS/Linux, check file permissions: chmod 644 claude_desktop_config.json

Debugging

  1. Test the server manually:

    bash
    npx mcp-cisco-support

    This should start the server in stdio mode without errors.

  2. Validate your config: Use a JSON validator to ensure your config file is properly formatted.

  3. Check Claude Desktop logs:

    • Look for MCP-related error messages in Claude Desktop
    • The app usually shows connection status for MCP servers

    Monitor logs in real-time (macOS):

    bash
    # Follow logs in real-time
    tail -n 20 -F ~/Library/Logs/Claude/mcp*.log

    On Windows:

    cmd
    # Check logs directory
    %APPDATA%\Claude\logs\

Getting Help

Docker Deployment

bash
# Use pre-built image
docker pull ghcr.io/sieteunoseis/mcp-cisco-support:latest
docker run -p 3000:3000 \
  -e CISCO_CLIENT_ID=your_id \
  -e CISCO_CLIENT_SECRET=your_secret \
  -e SUPPORT_API=bug \
  ghcr.io/sieteunoseis/mcp-cisco-support:latest --http

# Or build locally
docker-compose up -d

🔐 Security

  • stdio mode: No authentication (Claude Desktop, local clients)
  • HTTP mode: Bearer token authentication required
bash
# Generate secure token
npx mcp-cisco-support --generate-token

# Use token for HTTP mode
export MCP_BEARER_TOKEN=your_token
npx mcp-cisco-support --http

See 🔒 Security Guide for complete security documentation.

Configuration

Environment Variables

Create a .env file with your configuration:

bash
# 🔑 Cisco API OAuth2 Configuration (REQUIRED)
CISCO_CLIENT_ID=your_client_id_here
CISCO_CLIENT_SECRET=your_client_secret_here

# 🌐 Server Configuration
PORT=3000
NODE_ENV=development

# 🚀 API Support Configuration
# Enable specific Cisco Support APIs you have access to
# Options: bug, case, eox (plus planned: product, serial, rma, software, asd)
SUPPORT_API=bug,case,eox              # Multiple APIs
# SUPPORT_API=all                     # All available APIs  
# SUPPORT_API=bug                     # Single API (default)

# 🔐 HTTP Authentication Configuration (HTTP mode only)
# Custom Bearer token for HTTP authentication (optional - generates random if not set)
MCP_BEARER_TOKEN=your_custom_secure_token_here

# ⚠️ SECURITY WARNING: Only use in development/testing
# DANGEROUSLY_OMIT_AUTH=true          # Disables HTTP authentication entirely

OAuth 2.1 Authentication (Advanced)

For production-grade authentication with fine-grained access control, use OAuth 2.1 mode:

Quick Start

bash
# 1. Copy example configuration files
cp config/oauth-clients.example.json config/oauth-clients.json
cp config/oauth-secrets.example.json config/oauth-secrets.json

# 2. Edit config/oauth-clients.json to configure your clients
# 3. Add client secrets to config/oauth-secrets.json (optional, for confidential clients)

# 4. Start server in OAuth 2.1 mode
AUTH_TYPE=oauth2.1 npm run oauth:start
# or for development with hot reload:
npm run oauth:dev

Configuration Files

config/oauth-clients.json - Client configuration (can be version controlled):

json
{
  "clients": [
    {
      "client_id": "mcp_inspector_dev",
      "client_uri": "http://localhost:6274",
      "redirect_uris": ["http://localhost:6274/oauth/callback"],
      "scopes": ["mcp:bug", "mcp:psirt"],
      "grant_types": ["authorization_code"],
      "description": "MCP Inspector - Limited to Bug + Security APIs",
      "enabled": true
    }
  ],
  "settings": {
    "allow_dynamic_registration": true,
    "token_expiry_seconds": 3600
  }
}

config/oauth-secrets.json - Client secrets (gitignored, never commit):

json
{
  "secrets": {
    "mcp_inspector_prod": "your_production_secret_here"
  }
}

OAuth Scopes

Control API access with fine-grained scopes:

ScopeAPI AccessDescription
mcpAll APIsFull access to all MCP tools
mcp:bugBug APIBug search and details only
mcp:caseCase APISupport case management only
mcp:eoxEoX APIEnd-of-life information only
mcp:psirtSecurity APISecurity advisories only
mcp:productProduct APIProduct information only
mcp:softwareSoftware APISoftware suggestions only
mcp:serialSerial APISerial number lookups only
mcp:rmaRMA APIReturn authorization only

Best Practice: Grant only the scopes each application needs (principle of least privilege).

Environment Variables

Point to custom config file locations:

bash
# OAuth 2.1 Configuration
AUTH_TYPE=oauth2.1

# Optional: Custom config paths (defaults shown)
OAUTH_CLIENTS_CONFIG=config/oauth-clients.json
OAUTH_SECRETS_CONFIG=config/oauth-secrets.json

# Optional: Custom issuer URL (defaults to http://localhost:PORT)
OAUTH2_ISSUER_URL=https://your-server.com

OAuth Endpoints

When running in OAuth 2.1 mode, the server provides:

  • GET /.well-known/oauth-authorization-server - OAuth discovery metadata
  • GET /authorize - Authorization endpoint (displays consent page)
  • POST /authorize/approve - Authorization approval
  • POST /token - Token endpoint (PKCE required)
  • POST /register - Dynamic client registration (if enabled)

See docs/OAUTH_CLIENTS_CONFIG.md for complete OAuth 2.1 documentation.

Claude Desktop Integration

Complete configuration for Claude Desktop:

json
{
  "mcpServers": {
    "cisco-support": {
      "command": "npx",
      "args": ["-y", "mcp-cisco-support"],
      "env": {
        "CISCO_CLIENT_ID": "your_client_id_here",
        "CISCO_CLIENT_SECRET": "your_client_secret_here",
        "SUPPORT_API": "bug,case,eox"
      }
    }
  }
}

Docker Configuration

Option 1: Bearer Token Authentication

bash
docker run -p 3000:3000 \
  -e CISCO_CLIENT_ID=your_client_id \
  -e CISCO_CLIENT_SECRET=your_client_secret \
  -e SUPPORT_API=bug,case,eox \
  -e MCP_BEARER_TOKEN=your_secure_token \
  ghcr.io/sieteunoseis/mcp-cisco-support:latest --http

Option 2: OAuth 2.1 Authentication (Production)

bash
# 1. Create local OAuth config directory
mkdir -p ./oauth-config
cp config/oauth-clients.example.json ./oauth-config/oauth-clients.json
cp config/oauth-secrets.example.json ./oauth-config/oauth-secrets.json

# 2. Edit ./oauth-config/oauth-clients.json and oauth-secrets.json

# 3. Run with volume mount
docker run -p 3000:3000 \
  -e CISCO_CLIENT_ID=your_client_id \
  -e CISCO_CLIENT_SECRET=your_client_secret \
  -e AUTH_TYPE=oauth2.1 \
  -e OAUTH_CLIENTS_CONFIG=/oauth-config/oauth-clients.json \
  -e OAUTH_SECRETS_CONFIG=/oauth-config/oauth-secrets.json \
  -v $(pwd)/oauth-config:/oauth-config:ro \
  ghcr.io/sieteunoseis/mcp-cisco-support:latest --http

Option 3: Without Authentication (Development Only)

bash
docker run -p 3000:3000 \
  -e CISCO_CLIENT_ID=your_client_id \
  -e CISCO_CLIENT_SECRET=your_client_secret \
  -e DANGEROUSLY_OMIT_AUTH=true \
  ghcr.io/sieteunoseis/mcp-cisco-support:latest --http

Docker Compose with OAuth 2.1:

yaml
version: '3.8'
services:
  mcp-cisco-support:
    image: ghcr.io/sieteunoseis/mcp-cisco-support:latest
    ports:
      - "3000:3000"
    environment:
      - CISCO_CLIENT_ID=your_client_id
      - CISCO_CLIENT_SECRET=your_client_secret
      - AUTH_TYPE=oauth2.1
      - OAUTH_CLIENTS_CONFIG=/oauth-config/oauth-clients.json
      - OAUTH_SECRETS_CONFIG=/oauth-config/oauth-secrets.json
    volumes:
      - ./oauth-config:/oauth-config:ro
    command: ["node", "dist/index.js", "--http"]
    restart: unless-stopped

API Endpoints

EndpointMethodDescription
/GETServer information and available endpoints
/mcpPOSTMain MCP endpoint (JSON-RPC over HTTP)
/messagesPOSTAlternative MCP endpoint for N8N compatibility
/sseGETSSE connection with session management
/ssePOSTLegacy SSE message endpoint (deprecated)
/sse/session/{sessionId}POSTSession-specific MCP message endpoint
/pingGETSimple ping endpoint for connectivity testing
/healthGETHealth check with detailed status

📚 Documentation

For detailed information, see our comprehensive GitHub Wiki:

Usage Examples

cURL Examples

bash
# Test server connectivity
curl http://localhost:3000/ping

# Check health status
curl http://localhost:3000/health

# List available tools (main MCP endpoint)
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "tools/list"
  }'

# List available tools (alternative endpoint for N8N)
curl -X POST http://localhost:3000/messages \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "tools/list"
  }'

# Test SSE connection (will show endpoint event)
curl -N http://localhost:3000/sse

# Search for bugs by keyword
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "2",
    "method": "tools/call",
    "params": {
      "name": "search_bugs_by_keyword",
      "arguments": {
        "keyword": "crash",
        "severity": "1",
        "status": "open"
      }
    }
  }'

# Get specific bug details
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "3",
    "method": "tools/call",
    "params": {
      "name": "get_bug_details",
      "arguments": {
        "bug_ids": "CSCab12345"
      }
    }
  }'

JavaScript Client Example

javascript
async function searchBugs(keyword) {
  const response = await fetch('http://localhost:3000/mcp', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: Date.now(),
      method: 'tools/call',
      params: {
        name: 'search_bugs_by_keyword',
        arguments: {
          keyword: keyword,
          page_index: 1,
          status: 'open'
        }
      }
    })
  });
  
  const result = await response.json();
  return result;
}

Health Monitoring

The server provides a comprehensive health check endpoint:

bash
curl http://localhost:3000/health

Response includes:

  • Server status
  • OAuth2 token status
  • Memory usage
  • Uptime
  • Active SSE connections

Security Features

  • Helmet: Security headers
  • CORS: Cross-origin resource sharing
  • Input Validation: Schema-based validation
  • Non-root Execution: Docker security
  • Environment Variables: Secure credential storage

Troubleshooting

Common Issues

  1. OAuth2 Authentication Failed

    • Verify CISCO_CLIENT_ID and CISCO_CLIENT_SECRET
    • Check network connectivity to https://id.cisco.com
  2. API Calls Failing

    • Check token validity at /health
    • Verify network access to https://apix.cisco.com
  3. Docker Issues

    • Ensure environment variables are set
    • Check Docker logs: docker-compose logs

Logs

Structured JSON logs include:

  • Timestamp
  • Log level (info, error, warn)
  • Message
  • Additional context data

Testing

Running Tests

bash
# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with coverage
npm run test:coverage

# Run specific test suite
npx jest tests/auth.test.js
npx jest tests/mcp-tools.test.js

Test Structure

The test suite includes:

  • Authentication Tests (tests/auth.test.js): OAuth2 authentication, token management, error handling
  • MCP Tools Tests (tests/mcp-tools.test.js): All 8 MCP tools, error handling, pagination
  • Setup (tests/setup.js): Test environment configuration

Recent Test Fixes

The following issues were identified and resolved in the test suite:

✅ Fixed Issues

  1. Token Refresh Logic

    • Problem: Token expiry calculation was incorrect in getValidToken()
    • Solution: Fixed condition to properly check if token is within refresh margin
    • Impact: Proper token caching and refresh behavior
  2. Multiple Bug IDs Handling

    • Problem: State leakage between tests causing mock sequence mismatches
    • Solution: Implemented resetServerState() function for proper cleanup
    • Impact: Consistent test results across multiple runs
  3. Search Tools Implementation

    • Problem: Same state management issue affecting keyword search and other tools
    • Solution: Proper server state reset between tests
    • Impact: All 8 MCP tools now work correctly
  4. Error Handling

    • Problem: API errors and network timeouts not properly converted to MCP error responses
    • Solution: Enhanced error handling in handleMCPMessage() function
    • Impact: Proper error responses for client applications
  5. Authentication Failure Scenarios

    • Problem: Health endpoint returning 200 instead of 503 on auth failures
    • Solution: Module cache clearing and proper state isolation
    • Impact: Correct health status reporting
  6. Test State Management

    • Problem: Module-level variables persisting between tests
    • Solution: Added resetServerState() export and proper module cache clearing
    • Impact: True test isolation and reliable test results

Test Configuration

  • Jest: Using Jest with --forceExit flag for main test runs
  • State Reset: Each test gets a fresh server instance with clean state
  • Mock Management: Proper fetch mocking with correct sequence handling
  • Test Isolation: Module cache clearing prevents state leakage

Key Implementation Details

  • Native fetch: Uses Node.js native fetch instead of external libraries
  • Token Management: 12-hour token validity with 30-minute refresh margin
  • Error Handling: Comprehensive error handling with proper MCP error responses
  • Security: Helmet security headers, CORS support, input validation
  • Logging: Structured JSON logging with timestamps

Development

Project Structure

mcp-cisco-support/
├── src/
│   └── index.ts        # Main TypeScript server implementation
├── dist/               # Compiled JavaScript (generated by build)
├── package.json        # Dependencies and scripts
├── tsconfig.json       # TypeScript configuration
├── .env.example       # Environment variables template
├── .env               # Actual environment variables (create from example)
├── .gitignore         # Git ignore rules
├── Dockerfile         # Docker configuration
├── docker-compose.yml # Docker Compose setup
├── screenshots/        # Documentation screenshots
│   └── mcp-inspector-screenshot.png
├── CLAUDE.md          # Project instructions and architecture
└── README.md          # Project documentation

Development Commands

bash
# Install dependencies
npm install

# Start development server with auto-reload
npm run dev

# Run tests
npm test

# Run tests in watch mode
npm run test:watch

# Build Docker image
docker build -t mcp-cisco-support .

# View logs in development
npm run dev 2>&1 | jq '.'  # Pretty print JSON logs

Performance Considerations

  • Token caching reduces API calls
  • Pagination limits results to 10 per page
  • SSE heartbeat every 30 seconds keeps connections alive
  • Request timeout set to 30 seconds

Security Notes

  • Never commit .env file to version control
  • Use environment variables for all secrets
  • Review Cisco API usage limits and terms
  • Monitor logs for suspicious activity

API Reference

Authentication

  • OAuth2 URL: https://id.cisco.com/oauth2/default/v1/token
  • Grant Type: client_credentials
  • Token Validity: 12 hours
  • Auto-refresh: 30 minutes before expiry

Bug API Base URL

  • Base URL: https://apix.cisco.com/bug/v2.0

MCP Protocol

The server implements the Model Context Protocol with these methods:

  • initialize: Initialize MCP connection
  • tools/list: List available tools
  • tools/call: Execute a tool

Example MCP message:

json
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "tools/call",
  "params": {
    "name": "search_bugs_by_keyword",
    "arguments": {
      "keyword": "memory leak",
      "status": "open"
    }
  }
}

Health Monitoring

The server provides a comprehensive health check endpoint:

bash
curl http://localhost:3000/health

Response includes server status, OAuth2 token status, memory usage, uptime, and active connections.

Testing

Comprehensive Jest-based testing framework with:

  • ✅ 46/46 tools tested - All MCP tools across 8 APIs
  • ✅ Mock & Real API testing - Unit tests with mocks + integration tests with live APIs
  • ✅ Individual tool testing - Standalone test runner for development
bash
# Run all tests
npm test

# Test with real API credentials
CISCO_CLIENT_ID=your_id CISCO_CLIENT_SECRET=your_secret npm test

# Test individual tools
npm run test:tool search_bugs_by_keyword

See 🧪 Testing Framework for complete testing documentation.

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass: npm test
  6. Submit a pull request

Support

Resources

External Resources

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "cisco-support": {
      "command": "npx",
      "args": [
        "mcp-cisco-support"
      ],
      "env": {
        "CISCO_CLIENT_ID": "your_client_id_here",
        "CISCO_CLIENT_SECRET": "your_client_secret_here",
        "SUPPORT_API": "bug,case,eox"
      }
    }
  }
}

可用工具

  • get_bug_details

    Get details for up to 5 specific bug IDs

  • search_bugs_by_keyword

    Search for bugs using keywords in descriptions and headlines. Use this when searching by general terms, symptoms, or when product-specific tools are not applicable. IMPORTANT: severity parameter returns ONLY that specific level. For "severity 3 or higher" searches, use multi_severity_search tool instead. NOTE: Do NOT use product IDs (like ISR4431/K9) as keywords - use search_bugs_by_product_id instead.

  • search_bugs_by_product_id

    Search bugs by specific base product ID (e.g., C9200-24P). Use when you have an exact Cisco product ID. For general product searches by name, consider using keyword search instead.

  • search_bugs_by_product_and_release

    Search bugs by specific product ID and software releases. CRITICAL: Use "software_releases" parameter with comma-separated values like "17.9.1,17.12.3" to search up to 75 versions in ONE API call. NEVER make multiple separate calls for different versions - the API supports multiple versions in a single request. Use this when you have an exact product ID and want to filter by specific software versions. For product series searches, use search_bugs_by_product_series_affected instead.

  • search_bugs_by_product_series_affected

    Search bugs by product series and affected releases. This endpoint accepts full product series names like "Cisco 4000 Series Integrated Services Routers". IMPORTANT: Use Cisco API version format without leading zeros (17.9.6 not 17.09.06).

  • search_bugs_by_product_series_fixed

    Search bugs by product series and fixed releases. This endpoint accepts full product series names like "Cisco 4000 Series Integrated Services Routers". IMPORTANT: Use Cisco API version format without leading zeros (17.9.6 not 17.09.06).

  • search_bugs_by_product_name_affected

    Search bugs by full product name and affected releases. NOTE: Requires FULL descriptive product names (like "Cisco 4431 Integrated Services Router") not product IDs. Use search_bugs_by_product_id for product IDs like ISR4431.

  • search_bugs_by_product_name_fixed

    Search bugs by full product name and fixed releases. NOTE: Requires FULL descriptive product names (like "Cisco 4431 Integrated Services Router") not product IDs. Use search_bugs_by_product_id for product IDs like ISR4431.

  • smart_search_strategy

    Analyzes search queries and suggests optimal search approaches based on input patterns. Provides strategic guidance for finding bugs effectively.

  • progressive_bug_search

    Automatically tries multiple search strategies, starting specific and broadening scope if needed. Handles version normalization and product ID variations.

  • multi_severity_search

    RECOMMENDED for multi-severity searches: Automatically searches multiple severity levels and combines results. Use this when you need "severity 3 or higher", "high severity bugs", or any range of severities. Handles the API limitation that requires separate calls for each severity level. SMART FALLBACK: When product_id search with version returns no results, automatically falls back to keyword search for better coverage.

  • comprehensive_analysis

    BEST FOR DETAILED ANALYSIS: Combines bug database search with web search guidance for EoL information. Provides complete product analysis including known issues, lifecycle status, and actionable recommendations. Ideal for failover issues, configuration problems, and product reliability concerns.

  • compare_software_versions

    Compare bugs, CVEs, and recommendations between two software versions on the same product. Analyzes differences in known issues, security vulnerabilities, and provides upgrade recommendations.

  • product_name_resolver

    Resolves product IDs to full product names and provides web search strategies. Helps convert technical product codes to searchable terms.

将 Cisco Support APIs MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Cisco Support APIs 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Cisco Support APIs 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Cisco Support APIs MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "cisco-support-apis": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-cisco-support"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Cisco Support APIs MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Cisco Support APIs MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Cisco Support APIs 帮我完成这项任务吗?
Cisco Support APIs
当然,我看过了。
以下是我使用 Cisco Support APIs 得到的结果。

常见问题

Cisco Support APIs MCP 服务器有什么用途?

Cisco Support APIs 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Cisco Support APIs MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Cisco Support APIs。

为什么在 TypingMind 中使用 Cisco Support APIs MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Cisco Support APIs 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Cisco Support APIs MCP 连接到 TypingMind?

Cisco Support APIs 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Cisco Support APIs MCP 在 TypingMind 中提供哪些工具?

Cisco Support APIs 提供 14 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Cisco Support APIs MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Cisco Support APIs 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

Recent Critical Bugs

High-severity bugs from the last 7 days

Recent High-Severity Bugs

Severity 1-3 bugs from the last 30 days

cisco-high-severity-search

Search for high-severity bugs (severity 3 or higher) for specific products - handles API limitation requiring separate searches

cisco-incident-investigation

Investigate Cisco bugs related to specific incident symptoms and errors

cisco-upgrade-planning

Research known issues and bugs before upgrading Cisco software or hardware

cisco-maintenance-prep

Prepare for maintenance windows by identifying potential issues and bugs

cisco-security-advisory

Research security-related bugs and vulnerabilities for Cisco products

cisco-known-issues

Check for known issues in specific Cisco software releases or products

cisco-smart-search

Intelligent search strategy with automatic refinement and comprehensive analysis. Uses multiple search techniques and provides web search guidance.

cisco-interactive-search

⚠️ EXPERIMENTAL: Interactive search with elicitation requests for missing parameters. Note: ElicitationRequest support is limited in current MCP clients (Claude Desktop uses conversational follow-ups instead). Kept for future client support.

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇