Getting Started
Get up and running with OneMCP in minutes. The CLI provides the fastest way to start chatting with AI models connected to your APIs.
Prerequisites
- Node.js >= 20
- Java 21
- Maven (for building the Java application)
- An API key from OpenAI, Anthropic, or Google (Gemini)
Step 1: Install the CLI
Install the Gentoro OneMCP CLI with a single command:
curl -sSL https://raw.githubusercontent.com/Gentoro-OneMCP/onemcp/main/cli/install.sh | bashThe installer will download and set up everything you need.
Step 2: Start Chatting
Launch the interactive chat interface:
onemcp chatOn your first run, the setup wizard will guide you through:
- Choosing your AI provider (OpenAI, Anthropic, or Gemini)
- Entering your API key
- Selecting a starting point (built-in ACME Analytics example or your own API)
Youβll see an interactive interface like this:
ββββββββββββββββββββββββββββββββββββββββ
β Gentoro OneMCP - Chat Mode β
ββββββββββββββββββββββββββββββββββββββββ
Handbook: ecommerce-api
Provider: openai
MCP URL: http://localhost:8080/mcp
Type 'exit' to quit, 'clear' to clear history, 'switch' to change handbook
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π‘ Mock Server Active - Try These Example Queries:
> Show me electronics sales in California last quarter.
> List top customers by revenue.
> Compare revenue trends by region.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
? You:Step 3: Try Example Queries
With the built-in ACME Analytics mock service, try queries like:
- βShow me electronics sales in California last quarterβ
- βList top customers by revenueβ
- βWhat are the top-selling products this month?β
The AI will automatically call the appropriate APIs and return structured results.
What Just Happened?
The CLI automatically:
- Started the OneMCP server (port 8080)
- Launched the TypeScript runtime (port 7070)
- Started the ACME Analytics mock server (port 8082)
- Connected your chosen AI provider
- Indexed the handbook documentation and API specs
Next Steps
- Connect Your Own API: See the CLI Guide for connecting your own services
- Learn Core Concepts: Understand the Architecture and Retrieval
- Alternative Setup: Prefer Docker? See Run with Docker
- Add Custom Tools: Follow the Adding a Tool guide
- Create a Foundation Folder: Learn about Ingest Foundation to set up your agentβs knowledge base
Last updated on