Skip to main content

Intelligent Tool Selection (Experimental)

SCMCP implements an intelligent tool selection system to optimize performance and reduce token usage.

How it Works

The intelligent tool selection system operates in two phases:
  1. Search_tool: First identifies the most relevant tools for your analysis
  2. run_tool: Then runs only the selected tools, reducing token consumption

Usage

  1. Ensure you have the latest version of scmcp-shared installed:
pip install --upgrade scmcp-shared
  1. Start the server with intelligent tool selection enabled:
export API_KEY=sk-***
export BASE_URL="https://api.openai.com/v1"
export MODEL="gpt-4o"
scmcp run --transport shttp --port 8000 --run-mode tool --tool-mode auto
  1. Configure your MCP client to connect to the server:
{
  "mcpServers": {
    "scmcp": {
      "url": "http://localhost:8000/mcp"
    }
  }
}