Skip to content

Week 6: MCP study-coach server and OpenRouter agent demo#1204

Open
Sheriff10 wants to merge 1 commit intoed-donner:mainfrom
Sheriff10:week6_exercise_bootcamp_march2026_IbrahimSheriff
Open

Week 6: MCP study-coach server and OpenRouter agent demo#1204
Sheriff10 wants to merge 1 commit intoed-donner:mainfrom
Sheriff10:week6_exercise_bootcamp_march2026_IbrahimSheriff

Conversation

@Sheriff10
Copy link
Copy Markdown
Contributor

@Sheriff10 Sheriff10 commented Apr 2, 2026

This is a small Model Context Protocol (MCP) demo: a Python FastMCP server (study_server.py) exposes two tools list and read Markdown study notes (.md files) that sit in the same folder as the server. A Jupyter notebook (week6-exercise.ipynb) uses the OpenAI Agents SDK to spawn that server over stdio (MCPServerStdio), wires it to an Agent, and runs a natural-language request through Runner.run. The LLM is reached via OpenRouter (OpenAI-compatible API) using OPENROUTER_API_KEY, not the OpenAI platform directly.

Included sample notes (mcp_basics.md, agents_sdk.md) are plain content the agent can retrieve through the tools so you can see tool listing → tool calls → grounded answer end to end. Everything for this exercise lives under 6_mcp/IbrahimSheriff/ (a few files, no extra subfolders for notes).

Trace:
Screenshot 2026-04-02 at 10 22 01

Result:
Screenshot 2026-04-02 at 10 22 22

@hopeogbons

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