hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Enables GitHub Copilot agents in VS Code to use calculator functionality for basic mathematical operations including addition, subtraction, multiplication, division, modulo, and square root.
计算 MCP
一个模型上下文协议 (MCP) 服务器,利用基本的计算器功能提供浏览器自动化功能。该服务器使 LLM 能够与计算器交互。(我实际上是为一个测试程序做的)
用例
- 用于连接 MCP 功能的测试代码。
- 玩具项目
示例配置
Copy
在 VS Code 中安装
或者,您可以使用 VS Code CLI 安装 Playwright MCP 服务器:
Copy
Copy
安装后,计算器 MCP 服务器将可与 VS Code 中的 GitHub Copilot 代理一起使用。
CLI 选项
计算器 MCP 服务器支持以下命令行选项:
--port <port>
:监听 SSE 传输的端口
在 Linux 上运行带显示器的浏览器
在没有显示器的系统上或从 IDE 的工作进程运行带头浏览器时,从具有 DISPLAY 的环境中运行 MCP 服务器并传递--port
标志以启用 SSE 传输。
Copy
然后在 MCP 客户端配置中,将url
设置为 SSE 端点:
Copy
通过自定义传输进行编程使用
Copy
工具
- 添加
- 潜艇
- 乘法
- div
- 模组
- 平方根
You must be authenticated.
模型上下文协议服务器为 LLM 提供基本的计算器功能,使其能够执行加法、减法、乘法、除法、模数和平方根等数学运算。
- Use Cases
- Example config
- CLI Options
- Running headed browser on Linux w/o DISPLAY
- Programmatic usage with custom transports
- Tools