Skip to content
Discussion options

You must be logged in to vote

Hey @emersonbarth, yes you can use mcp-agent inside an mcp server and expose the server to Claude Desktop.

You will need to create an mcp-agent server first:

# basic_agent_server.py

import asyncio
import os
from mcp_agent.app import MCPApp
from mcp_agent.server.app_server import create_mcp_server_for_app
from mcp_agent.agents.agent import Agent
from mcp_agent.workflows.llm.augmented_llm_openai import OpenAIAugmentedLLM
from mcp_agent.executor.workflow import Workflow, WorkflowResult

app = MCPApp(name="basic_agent_server", description="Basic agent server example")


@app.workflow
class BasicAgentWorkflow(Workflow[str]):
    """
    A basic workflow that demonstrates how to create a simpl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emersonbarth
Comment options

Answer selected by andrew-lastmile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants