Skip to content

Conversation

rvernica
Copy link

@rvernica rvernica commented Aug 5, 2025

Fix:

tiny-agents run agent.json

An unexpected error occurred: 'command'
Traceback (most recent call last):
  File "/home/vernica/proj/prep/huggingface-mcp/.venv/lib/python3.13/site-packages/huggingface_hub/inference/_mcp/cli.py", line 152, in 
run_agent
    await agent.load_tools()
  File "/home/vernica/proj/prep/huggingface-mcp/.venv/lib/python3.13/site-packages/huggingface_hub/inference/_mcp/agent.py", line 58, in 
load_tools
    await self.add_mcp_server(**cfg)
  File "/home/vernica/proj/prep/huggingface-mcp/.venv/lib/python3.13/site-packages/huggingface_hub/inference/_mcp/mcp_client.py", line 162, 
in add_mcp_server
    logger.info(f"Connecting to stdio MCP server with command: {params['command']} {params.get('args', [])}")
                                                                ~~~~~~^^^^^^^^^^^
KeyError: 'command'


An unexpected error occurred: 'command'

Fix:
```
tiny-agents run agent.json

An unexpected error occurred: 'command'
Traceback (most recent call last):
  File "/home/vernica/proj/prep/huggingface-mcp/.venv/lib/python3.13/site-packages/huggingface_hub/inference/_mcp/cli.py", line 152, in 
run_agent
    await agent.load_tools()
  File "/home/vernica/proj/prep/huggingface-mcp/.venv/lib/python3.13/site-packages/huggingface_hub/inference/_mcp/agent.py", line 58, in 
load_tools
    await self.add_mcp_server(**cfg)
  File "/home/vernica/proj/prep/huggingface-mcp/.venv/lib/python3.13/site-packages/huggingface_hub/inference/_mcp/mcp_client.py", line 162, 
in add_mcp_server
    logger.info(f"Connecting to stdio MCP server with command: {params['command']} {params.get('args', [])}")
                                                                ~~~~~~^^^^^^^^^^^
KeyError: 'command'


An unexpected error occurred: 'command'
```
@rvernica rvernica closed this by deleting the head repository Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant