mcp-integration
Skill188 starsChanged 5 months agoMITView on GitHub
Help a learner give an agent tools through the Model Context Protocol (MCP) — both client-side MCP and Foundry Hosted MCP tools. Use when connecting an agent to an MCP server (e.g. the GitHub MCP server), adding a remote tool, or reasoning about MCP approval/governance.
- Reads credentials
13 other projects use a version of this.
Adopted by
Most recently taken up by
- gcapodeferro02/my-agent-skillstheir own version, first seen Sep 21, 2026
- zaber-dev/free-ai-gatewaytheir own version, first seen Aug 19, 2026
- patterson-agents/skillstheir own version, first seen Aug 12, 2026
- jorgeasaurus/agent-skillstheir own version, first seen May 11, 2026
- Airmomo/skillstheir own version, first seen Apr 21, 2026
- Galaxy-Dawn/claude-scholartheir own version, first seen Apr 15, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- anthropics/claude-plugins-official★ 37ksame name
- Galaxy-Dawn/claude-scholar★ 5.7ksame name
- zaber-dev/free-ai-gateway★ 17same name
- jorgeasaurus/agent-skills★ 13same name
- rowboatlabs/skills★ 7same name
- Vimalk0703/shipworthy★ 6same name
- JayAI623/claude-code-config★ 2same name
- kvivek0591/claude-code-skills★ 2same name
- Airmomo/skills★ 1same name
- gcapodeferro02/my-agent-skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- translations/bn/AGENTS.mdAGENTS.md
- translations/cs/AGENTS.mdAGENTS.md
- translations/da/AGENTS.mdAGENTS.md
- translations/en/AGENTS.mdAGENTS.md
- translations/es/AGENTS.mdAGENTS.md
- translations/hu/AGENTS.mdAGENTS.md
- translations/id/AGENTS.mdAGENTS.md
- translations/ko/AGENTS.mdAGENTS.md
- translations/lt/AGENTS.mdAGENTS.md
- translations/mr/AGENTS.mdAGENTS.md
- translations/ms/AGENTS.mdAGENTS.md
- translations/nl/AGENTS.mdAGENTS.md
- translations/pa/AGENTS.mdAGENTS.md
- translations/pt-BR/AGENTS.mdAGENTS.md
- translations/pt-PT/AGENTS.mdAGENTS.md
- translations/th/AGENTS.mdAGENTS.md
- translations/tl/AGENTS.mdAGENTS.md
- translations/vi/AGENTS.mdAGENTS.md
- agent-evaluationSkill
- foundry-agent-basicsSkill
- hosted-agent-deploymentSkill
- microsoft-toolboxSkill
- multi-agent-a2aSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Start from task-recommendation-agent.py and adapt the MCP endpoint / headers.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP integration
Guidance for adding tools to an agent via the Model Context Protocol (MCP).
Guardrails (always apply)
- Terminology: MCP, Hosted MCP tools (Foundry-managed), Microsoft Learn MCP server.
- Client-side MCP uses
MCPStreamableHTTPToolfrom the currentagent-frameworksurface. The old top-levelHostedMCPToolsymbol is gone — hosted tools are configured through the Foundry hosted-tool types. - Secrets (PATs, tokens) come from
.envonly. In this course the GitHub MCP server is passed a Bearer PAT via headers read fromGITHUB_PERSONAL_ACCESS_TOKEN— never hardcode it.
Concepts a learner should grasp
- Why MCP: one open protocol lets an agent discover and call tools hosted anywhere, instead of bespoke per-tool integrations.
- Client MCP vs Hosted MCP: client-side, your process connects to an MCP endpoint and executes tool calls; Hosted MCP runs the connection inside Foundry with managed identity, approvals and observability.
- Approval workflows: hosted MCP tools can require human approval before a tool runs — important for governance in production (covered in Lesson 5).
Worked example in this repo
lesson-2-agent-development/task-recommendation-agent.pyconnects an agent to the remote GitHub MCP server as a tool (Lesson 1 Scenario 2), passing a Bearer PAT via headers. Use it as the reference implementation.
How to help
- Start from
task-recommendation-agent.pyand adapt the MCP endpoint / headers. - For hosted/enterprise scenarios, direct the learner to
lesson-5-hosted-agents-production/for the approval-workflow and governance discussion. - Confirm the target MCP server URL and required auth before writing code.
Validate
python -m py_compile <file>.py.- The agent should list/call at least one MCP tool and return a grounded answer.
References
lesson-2-agent-development/README.md(sample catalog),lesson-5-hosted-agents-production/README.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

