Skill Function · OpenCode MCP Guide

    Skill Function MCP Setup
    for OpenCode.

    Get access to specialized AI skills through the InferX MCP server in under 5 minutes. Configure your provider, connect the MCP server, and start invoking skills from OpenCode.

    Time to completeUnder 5 minutes once you have your InferX API key and MCP token.

    Prerequisites

    • OpenCode installed
    • InferX API key
    • InferX MCP token
    01

    Configure InferX Model

    Open your OpenCode configuration file:

    shell
    nano ~/.config/opencode/opencode.json

    Add the InferX provider block — replace the placeholders with your actual tenant ID, model endpoint, and API key:

    json
    {
      "provider": {
        "inferx": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "inferx",
          "options": {
            "baseURL": "https://model.inferx.net/funccall/<TENANT_ID>/endpoints/<MODEL_ENDPOINT>/v1",
            "apiKey": "<INFERX_API_KEY>"
          },
          "models": {
            "Qwen/Qwen3-Coder-Next-FP8": {
              "name": "Qwen/Qwen3-Coder-Next-FP8",
              "limit": {
                "context": 262000,
                "output": 16384
              }
            }
          }
        }
      }
    }
    02

    Configure InferX MCP Server

    In the same file, add the MCP block alongside your provider config. Replace <INFERX_MCP_TOKEN> with your token from the console:

    json
    {
      "mcp": {
        "inferx": {
          "type": "remote",
          "transport": "streamable-http",
          "url": "https://model.inferx.net/mcp",
          "enabled": true,
          "headers": {
            "Authorization": "Bearer <INFERX_MCP_TOKEN>"
          }
        }
      }
    }

    Save the file.

    03

    Restart OpenCode

    Apply the configuration by restarting OpenCode:

    shell
    pkill -f opencode
    opencode
    04

    Verify Connection

    Ask OpenCode to list available tools:

    List currently registered tools only.
    Before this stepMake sure you are subscribed to at least one Skill Function at model.inferx.net/listskills/myskills — tools only appear for skills you have subscribed to.

    If InferX tools appear in the list, the MCP connection is active. If you only see built-in tools like bash, read, or write, the MCP connection is not active — restart OpenCode and check that the MCP block is saved correctly.

    05

    Test Tool Execution

    Confirm tools are being invoked automatically:

    Use available InferX tools to explain how Skill Function scales to 50,000 skills.

    For multi-skill orchestration:

    Design a system where experts publish Skill Functions and customers subscribe to them. Include: pricing strategy, marketplace incentives, fraud prevention, GTM strategy, and architecture. Use all relevant InferX tools and list which tools were used.

    The model should invoke multiple InferX tools, synthesize the results, and report which tools were used.

    Common Issues

    No InferX Tools Appear

    Restart OpenCode and verify the MCP block is saved correctly:

    shell
    pkill -f opencode
    opencode

    Then run: List currently registered tools only.

    Also checkYou must be subscribed to at least one Skill Function — tools only appear for skills you've subscribed to.
    Tools Disappeared After Restart

    The MCP session may not have been re-established. Restart OpenCode and verify the MCP connection is still in your config file.

    "Skill Not Found"

    InferX capabilities are MCP tools, not local OpenCode skills. Don't invoke them by name — instead ask naturally:

    Use available InferX tools to analyze...
    Do not use: Skill "inferx_xxx" — InferX skills are discovered and invoked automatically through MCP.
    Local Skills Interfering

    Do not install InferX skills locally under:

    shell
    ~/.opencode/skill

    InferX skills are loaded remotely through MCP only.

    Success Criteria

    A successful installation allows OpenCode to:

    • Discover InferX tools automatically
    • Invoke multiple tools in a single prompt
    • Orchestrate specialized skills
    • Return synthesized answers from multiple tool calls
    Once configuredSimply ask questions normally and InferX will route work to the appropriate skills automatically.

    Ready to try your first Skill Function?

    Subscribe to a skill, connect your MCP, and start building.

    Browse Skill Functions →