Skip to content

Add Sample for MCP Clients injected in an ASP.NET Core API host #789

@toddmeinershagen

Description

@toddmeinershagen

Is your feature request related to a problem? Please describe.
There are no examples that host MCP Clients and Tools in an ASP.NET Core API application which is multi-threaded and long running as opposed to a Console application that would be single-threaded and running for a limited time. Assuming most people are building MCP servers to be leverage by a desktop application such as GitHub Copilot or Claude Desktop rather than within an Agent for a web chat.

Describe the solution you'd like
I would like to see a sample that is an ASP.NET Core application that registers MCP Clients and Tools to be used in Controllers to understand how to manage the concurrency and lifecycle in a best practice manner.

Describe alternatives you've considered
I cannot find any example of this online. If you know of any, please provide.

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions