exercicio-4.2-todo-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@exercicio-4.2-todo-mcpcreate a task to buy milk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Exercício 4.2 — MCP server local que consome a API do 4.1
MCP server (stdio) que expõe duas tools para uma aplicação de TODO list,
implementadas chamando a API REST construída no Exercício 4.1
(http://localhost:8000).
Agente / LLM ──MCP──▶ servidor_mcp.py ──HTTP──▶ API 4.1 (localhost:8000)Arquivos
servidor_mcp.py— MCP server com as toolscriar_tarefaelistar_tarefas.cliente_teste.py— sobe o server via stdio, chama as tools e imprime no stdout um envelope JSON único com o resultado.requirements.txt— dependências (mcp,httpx).
Related MCP server: mcp-task-manager
Como rodar
Terminal A — suba a API do 4.1 (reinicie para o store ficar limpo):
uvicorn app.main:app --port 8000 # no repo do 4.1Terminal B — neste repo:
pip install -r requirements.txt python cliente_teste.pyO comando deve imprimir um envelope JSON com
tools,criar_resultadoelistar_resultado.
Como validar
Com a API do 4.1 no ar, neste repo:
autograde validar 4.2Reflexão
No 4.1 o cliente precisava falar HTTP diretamente: montar a URL, escolher o
verbo certo, serializar o corpo da requisição e tratar o status code. No 4.2,
o agente só precisa saber que existe uma tool criar_tarefa(titulo) e chamá-la
— o MCP tornou irrelevante para quem chama como o dado é buscado (protocolo
HTTP, URL da API, formato do request/response). O MCP escondeu o transporte:
o agente fala MCP, e é a tool que sabe traduzir isso para HTTP contra a API.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alexgoncalves-cpu/exercicio-4.2-todo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server