Agent Integration
Let AI agents discover and use MCP services on their own.
What it does
The Agent SDK lets an AI agent search, install, and connect to MCP servers programmatically. No manual config. No CLI in the loop. The user consents at connection time — the agent handles the rest.
Install the SDK
Python
pip install pharos-agentJavaScript
npm install @pharos/agent-sdkQuick start
Python
from pharos import Agent
agent = Agent()
results = agent.search("memory management")
agent.install(results[0]["name"])
agent.connect(results[0]["name"])JavaScript
import { Agent } from '@pharos/agent-sdk';
const agent = new Agent();
const results = await agent.search('memory management');
await agent.install(results[0].name);
await agent.connect(results[0].name);How it works
- 1
Agent searches Pharos registry
The agent calls search with a natural-language query. Pharos returns ranked matches.
- 2
Agent installs the MCP server
One call in code. The SDK handles download, hash verification, and config wiring.
- 3
Agent connects and starts using tools
The agent opens the transport, negotiates capabilities, and calls tools directly.