GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
11
フォーク
0
イシュー
0
McpSampling
Demo of how to use sampling in MCP Server, as posted to LinkedIn.
This demo uses Sampling to allow a MCP Server to orchestrate its own internal tools (since tool calling while sampling is not yet working in MCP Servers).
The MCP Server passes on the user request to the LLM using Sampling, with clear instructions to the LLM on how and when to call the internal tools.
In the demo the users asks to retrieve the top 10 contacts from Dataverse, and then create an Excel file with the result. This leads to the LLM orchestrating two tool calls in sequence, while the tools themselves use sampling to convert natural language to FetchXml, convert the FetchXml result to a list which is then converted to CSV.
Of course it would be much better if native tool calling could be done when sampling, and this might be part of the specification in the future - as discussed here.