跳到主要内容

MCP 服务器构建

收藏0

从零写一个 MCP 服务器:怎么定义工具、选传输方式、处理错误与认证,附 Python 与 Node 两套服务器写法、评估方法和最佳实践。

让 AI 安装

星光尘缘LV2最新版本 0.1.0更新于 2026-11-14下载 0 次

scripts/example_evaluation.xml

1.2 KB
1<evaluation>
2 <qa_pair>
3 <question>Calculate the compound interest on $10,000 invested at 5% annual interest rate, compounded monthly for 3 years. What is the final amount in dollars (rounded to 2 decimal places)?</question>
4 <answer>11614.72</answer>
5 </qa_pair>
6 <qa_pair>
7 <question>A projectile is launched at a 45-degree angle with an initial velocity of 50 m/s. Calculate the total distance (in meters) it has traveled from the launch point after 2 seconds, assuming g=9.8 m/s². Round to 2 decimal places.</question>
8 <answer>87.25</answer>
9 </qa_pair>
10 <qa_pair>
11 <question>A sphere has a volume of 500 cubic meters. Calculate its surface area in square meters. Round to 2 decimal places.</question>
12 <answer>304.65</answer>
13 </qa_pair>
14 <qa_pair>
15 <question>Calculate the population standard deviation of this dataset: [12, 15, 18, 22, 25, 30, 35]. Round to 2 decimal places.</question>
16 <answer>7.61</answer>
17 </qa_pair>
18 <qa_pair>
19 <question>Calculate the pH of a solution with a hydrogen ion concentration of 3.5 × 10^-5 M. Round to 2 decimal places.</question>
20 <answer>4.46</answer>
21 </qa_pair>
22</evaluation>

文件内容是平台检查时读出的文本,只供查看。平台不会运行包里的任何脚本或程序。