NF

neftedollar/fslangmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

33 stars 2 forks 质量 70 趋势 31MIT

用于AI编码代理的语义F#(Claude代码·光标·副驾驶 ·Codex)——一个MCP服务器,为LLM提供真正的FCS/FSAC编译器智能(查找、检查、类型、重命名),而不是grepping F#。

概览

给它真正的编译器:跨项目查找、可信的校验判决、类型、重命名、死码——都超过MCP。 一个代理在实际任务中对样本/快速启动进行——set_project →检查(干净)→发现(17个跨项目站点)。真实的MCP调用,没有grep。 文本搜索忽略了 F# 依赖的语义——部分应用、锯齿开启、阴影绑定、跨项目使用、记录字段集合站点、CE 自定义操作——并且会重匹配注释和字符串。FsLangMCP 通过真实编译器(FCS 进程中 + FSAC LSP)解析符号,使你的代理获得可信的答案,而非 grep 噪声。 在实时执行的A/B中,将工具表面塑造为代理的意图和完成步骤,从10.4→5.8(成功率89%→100%)。完整报道:docs/why-agents-grep-fsharp.md。 Bootstrap 读取已安装的 FsLangMCP 二进制文件中的清单,并将 FSAC、ProjInfo 和 Fantomas 安装(或降级)到该版本的审核版本。

概述(AI 翻译)

停止你的代理grepping F#。 给它真正的编译器:跨项目find,一个可信的check判决,类型,重命名,死代码——通过MCP。

文档 ·入门指南 ·工具参考

一个代理在实际任务中对样本/快速启动进行——set_project →检查(干净)→发现(17个跨项目站点)。真实的MCP调用,没有grep。

为什么

文本搜索忽略了 F# 依赖的语义——部分应用、混叠的 open]、阴影绑定、跨项目使用、记录字段集合点、CE 自定义操作——并且会与注释和字符串重匹配。FsLangMCP 通过真实编译器(FCS 进程中 + FSAC LSP)解析符号,因此你的代理获得可信的答案,而非 grep 噪声。

在实时执行A/B中,根据智能体意图塑造工具表面 将代理的rg/grep-back从56%→28%,以及完成步骤从10.4→5.8%(成功率89%→100%)。完整报道:docs/why-agents-grep-fsharp.md。

快速开始

Prerequisites: .NET SDK 10+ on PATH.

Bootstrap 读取已安装的 FsLangMCP 二进制文件中的清单,并且 安装(或降级)FSAC、ProjInfo 和 Fantomas 到完全相同的评测版本 该版本的发行。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

FsLangMCP — semantic F# for your AI coding agent

Stop your agent grepping F#. Give it the real compiler: cross-project find, a trustworthy check verdict, types, rename, dead-code — over MCP.

Documentation · Getting started · Tools reference

An agent working a real task against examples/quickstart — set_project → check (clean) → find (17 cross-project sites). Real MCP calls, no grep.

Why

Text search misses the semantics F# depends on — partial application, aliased opens, shadowed bindings, cross-project uses, record-field set-sites, CE custom-operations — and over-matches comments and strings. FsLangMCP resolves symbols via the real compiler (FCS in-process + FSAC LSP), so your agent gets trustworthy answers instead of grep noise.

In a live-execution A/B, shaping the tool surface to agent intent cut agents’ rg/grep-fallback from 56% → 28% and steps-to-completion from 10.4 → 5.8 (success rate 89% → 100%). Full story: docs/why-agents-grep-fsharp.md.

Quickstart

Prerequisites: .NET SDK 10+ on PATH.

dotnet tool install -g FsLangMcp
fslangmcp --bootstrap-tools

Bootstrap reads the manifest embedded in the installed FsLangMCP binary and installs (or downgrades) FSAC, ProjInfo, and Fantomas to the exact reviewed versions for that release. It also creates the dotnet-fantomas command alias required by FSAC formatting.

Review dependency security and updates before using the server.

Add to your MCP client config:

{
  "mcpServers": {
    "fslangmcp": { "command": "fslangmcp" }
  }
}

Then call set_project with your .fsproj or .sln path, and start with find or check.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "fslangmcp": { "command": "fslangmcp" } } }