Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The framework handles:
- Connect to any MCP server via stdio, SSE, WebSocket, or HTTP
- Access tools, resources, prompts, and file system roots
- Automatic tool discovery and integration
- Sampling, elicitation, and notifications

### Agent Patterns
Implementation of all patterns from Anthropic's research:
Expand All @@ -48,16 +49,22 @@ Works with:

## Quick Example

```python
```python main.py
import asyncio
from mcp_agent.app import MCPApp
from mcp_agent.agents.agent import Agent
from mcp_agent.workflows.llm.augmented_llm_openai import OpenAIAugmentedLLM

app = MCPApp(name="example_agent")

async def main():
@app.tool
async def research()->str:
'''
Research quatum computing function / tool call
'''
result=""
async with app.run() as mcp_agent_app:

# Create agent with MCP server access
agent = Agent(
name="researcher",
Expand All @@ -76,9 +83,10 @@ async def main():
# Agent can now use MCP server tools
result = await llm.generate_str("Research quantum computing")
print(result)
return result

if __name__ == "__main__":
asyncio.run(main())
asyncio.run(research())
```

## Example Applications
Expand Down Expand Up @@ -135,7 +143,7 @@ uv add "mcp-agent[openai,anthropic,azure,bedrock,google]"
mcp-agent uses two configuration files:

**mcp_agent.config.yaml** - Application configuration:
```yaml
```yaml mcp_agent.config.yaml
execution_engine: asyncio # or temporal
logger:
transports: [console]
Expand All @@ -155,7 +163,7 @@ openai:
```

**mcp_agent.secrets.yaml** - API keys and secrets:
```yaml
```yaml mcp_agent.secrets.yaml
openai:
api_key: "sk-..."
```
Expand All @@ -175,14 +183,14 @@ your-project/
### Local Development
Run agents locally with asyncio execution engine for rapid development.

### Production with Temporal
### [Production with Temporal](advanced/temporal)
Use Temporal for durable execution, automatic retries, and workflow management.

### As MCP Server
### [As a MCP Server](cloud/agent-server)
Expose your agents as MCP servers that can be used by Claude Desktop, VS Code, or other MCP clients.

### MCP Agent Cloud
Deploy agents to managed cloud infrastructure with one command (coming soon).
### [MCP Agent Cloud](cloud/overview)
Deploy agents to managed cloud infrastructure with one command.

## Examples

Expand All @@ -206,4 +214,4 @@ The [examples directory](https://github.com/lastmile-ai/mcp-agent/tree/main/exam
- [Model Context Protocol](https://modelcontextprotocol.io) - MCP specification
- [Building Effective Agents](https://www.anthropic.com/research/building-effective-agents) - Anthropic's guide
- [GitHub Repository](https://github.com/lastmile-ai/mcp-agent) - Source code
- [Discord Community](https://lmai.link/discord/mcp-agent) - Get help and discuss
- [Discord Community](https://lmai.link/discord/mcp-agent) - Get help and discuss
Loading