Skip to content

[BUG] LLM doesn't see MCP tools #4133

@akmal-2004

Description

@akmal-2004

Description

Agent(
            role=role,
            goal=goal,
            backstory=backstory,
            reasoning=True,
            llm=LLM(
                model=settings.OPENAI_MODEL,
                temperature=0.0,
                api_key=settings.OPENAI_API_KEY,
            ),
            verbose=True,
            multimodal=True,
            tools=tools,
            mcps=[MCPServerHTTP(
                url="https://api.githubcopilot.com/mcp",
                headers={
                    "Authorization": f"Bearer {settings.GITHUB_API_KEY}",
                },
                cache_tools_list=True,
                streamable=True,
            )],
            knowledge_sources=[],
            memory=True,
        )

I wrote this code according to docs. But LLM doesn't see github related tools. It doesn't know about them and can't call them.

Steps to Reproduce

see code above

Expected behavior

LLM should see that it has mcp tools and call them

Screenshots/Code snippets

see above

Operating System

Windows 11

Python Version

3.12

crewAI Version

1.6.1

crewAI Tools Version

1.6.1

Virtual Environment

Venv

Evidence

_

Possible Solution

_

Additional context

_

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions