SageFs
by WillEhrendreich·★ 64·综合分 46
一个具有热重载、实时测试和 AI 代理 MCP 集成的实时 F# 开发引擎。
概述
SageFs 是一个基于守护程序的 F# 开发工具,通过实时评估、内联结果、测试标记和热重载提供亚秒级代码变更反馈。它通过 MCP 服务器为 AI 代理提供状态机工具,支持 F# 代码执行、类型检查、测试验证和失败解释。多个编辑器和 AI 代理可以同时连接,共享相同的实时会话状态。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您使用 F# 项目,特别是需要通过 Falco 等 F# 框架进行 Web 开发,并需要通过实时测试和热重载获得即时反馈以及 AI 代理集成时,选择 SageFs。
什么时候不要选它
如果您主要使用 F# 以外的语言,或者需要类型重定义与浏览器热重载结合(.NET 运行时的限制),则不适合使用。
此 server 暴露的工具
从 README 抽取出 12 个工具eval_codeEvaluate F# code and return results
run_testsExecute tests in the current session
create_sessionCreate a new session for a project
switch_workflowSwitch between REPL and Live workflows
get_diagnosticsRetrieve current diagnostic information for the session
get_coverageGet code coverage information for tests
toggle_hot_reloadEnable or disable hot reload functionality
get_test_resultsRetrieve test execution results and status
mark_tests_staleMark all tests as stale to trigger re-execution
get_type_infoRetrieve type information and definitions
get_call_graphGenerate a call graph for functions in the project
get_historyRetrieve the execution history of the current session
可对比工具
安装
dotnet tool install --global SageFs对于 MCP 集成,添加到 Claude Desktop 配置:
{
"mcpServers": {
"sagefs": {
"command": "sagefs",
"args": ["mcp"]
}
}
}FAQ
- SageFs 与 Ionide 有什么区别?
- Ionide 通过 F# 编译器服务提供智能感知和诊断。SageFs 添加了实时执行功能:评估表达式、查看内联结果、连续测试反馈和热重载。
- 我可以同时使用 REPL 和 Live 模式吗?
- 是的,SageFs 支持两种模式。REPL 模式允许完全的类型重定义,而 Live 模式启用浏览器热重载。您可以根据需要切换它们。
SageFs 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。