agentleFS
MicrosoftKnown publishermicrosoft/agent-framework/python/packages/hosting-mcp/AGENTS.md

agent-framework / hosting-mcp

AGENTS.md14k starsChanged 10 months agoMITView on GitHub

Side-effect-free adapters and conversion helpers for hosting Agent Framework agents and workflows through the native MCP SDK. - AgentMCPTool(target, ...) generates one native MCP Tool from an agent, converts and executes calls, and optionally persists sessions through an existing AgentState. - WorkflowMCPTool(target, ...) derives one native MCP Tool from a workflow's single start-executor input type and converts completed workflow outputs. - mcp_to_run(arguments, *, argument_name="task", chat_option_arguments=()) converts MCP tool arguments to AgentRunArgs and copies only explicitly selected arguments into chat options.…

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-framework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-framework

The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 31

Talked about on GitHub, Bluesky and Hacker News (31 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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
  1. Very specific:

    When configured with AgentState, the adapter performs session get/run/set.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

MCP Hosting Helpers (agent-framework-hosting-mcp)

Side-effect-free adapters and conversion helpers for hosting Agent Framework agents and workflows through the native MCP SDK.

Public API

  • AgentMCPTool(target, ...) generates one native MCP Tool from an agent, converts and executes calls, and optionally persists sessions through an existing AgentState.
  • WorkflowMCPTool(target, ...) derives one native MCP Tool from a workflow's single start-executor input type and converts completed workflow outputs.
  • mcp_to_run(arguments, *, argument_name="task", chat_option_arguments=()) converts MCP tool arguments to AgentRunArgs and copies only explicitly selected arguments into chat options.
  • mcp_from_run(result) converts an Agent Framework response or message to MCP ContentBlock values.

Boundary

This package does not provide a server, routes, transport lifecycle, authentication, authorization, session-key policy, concurrency policy, or outbound delivery. Applications compose the adapter and conversion helpers with native MCP SDK constructs.

AgentMCPTool owns only the schema for its single generated agent tool. It does not register that schema with a server. Applications call await adapter.list_tools() and await adapter.call_tool(...) from native MCP handlers.

WorkflowMCPTool owns only the schema derived from the start executor. It requires exactly one input type. Workflow factories and continuation policy remain application-owned. Pending external-input requests raise because the adapter does not own a human-in-the-loop continuation contract.

When configured with AgentState, the adapter performs session get/run/set. Applications still derive and authorize the session identifier and serialize concurrent calls for the same session.

MCP tool arguments are JSON-only and have no native multimodal content-block union. Do not add a package-owned JSON convention for image or audio input.

mcp_from_run(...) intentionally returns a flat content block list. It preserves content-level metadata, while applications own MCP result-level metadata and structured content.

The helper targets CallToolResult.content. Do not add sampling-only ToolUseContent to its output; MCP sampling has a separate response content union.

CallToolResult is a single final result. Streamable HTTP transports MCP messages rather than partial result content; progress notifications and experimental tasks remain application-owned protocol concerns.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.