JL

jangoebel/labview-mcp-server-toolkit

开发工具

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

71 stars 11 forks 质量 78 趋势 14MIT

jangoebel/labview-mcp-server-toolkit 是从 https://github.com/jangoebel/labview-mcp-server-toolkit. 导入的 MCP 服务器候选

概览

jangoebel/labview-mcp-server-toolkit 是从 https://github.com/jangoebel/labview-mcp-server-toolkit. 导入的 MCP 服务器候选

概述(AI 翻译)

有了这个工具包,你可以让像ChatGPT或Claude这样的大型语言模型来控制你的LabVIEW应用。

它在当前机器上打开一个 HTTP 服务器。MCP 客户端可以连接到该服务器,获取可用的工具、提示和资源信息。然后在聊天对话中,LLM 可以自行决定何时为特定目的调用 VI。


✨ 概述

模型上下文协议(MCP)是一种协议,用于使LLM聊天机器人应用程序能够调用外部代码。有一个庞大的社区正在开发MCP服务器,通常与控制某些应用程序相关。 在 mcp.so 上,你可以找到像Blender、TouchDesigner、Photoshop、Git等应用的MCP服务器。 你可以向像 Claude Desktop 这样的 MCP 客户端添加多个这样的 MCP 服务器。AI 这样可以在多个不同的软件产品中发起多个不同的操作。

详细信息请见此处:

https://modelcontextprotocol.io/docs/getting-started/intro

MCP由三种类型的对象组成:

工具

工具是人工智能可以调用的一个函数。它有输入和输出、名称和描述。人工智能可以通过阅读这些描述来理解如何使用该工具(例如:

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

README

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

🧰 LabVIEW MCP Server SDK

Let an AI assistant such as Claude or ChatGPT use your LabVIEW application.

You pick the VIs the assistant may call, and the toolkit turns them into an MCP server. You can then ask in plain language, for example “check which channels of my datalogger carry a signal and log only those”, and the assistant calls your VIs to do it.

flowchart LR
    U([You]) -- chat --> C[AI clientClaude Desktop, Claude Code, ...]
    C -- MCP over HTTP --> S[MCP serverin your LabVIEW application]
    S -- calls --> V[Your VIs]

✨ What you can do

  • Expose any VI as a tool. The VI’s name, description and connector pane tell the assistant what the tool does and what to pass in. You don’t write a separate schema.
  • Return rich results. Numbers, strings, clusters, arrays and pictures. A graph rendered as a picture lets the assistant look at your signal.
  • Offer prompt templates and documents. The user can pick them from the client’s menu instead of typing them out.
  • Run long jobs. A tool can show progress while it runs, and it stops cleanly when the user cancels.
  • Ask the user before acting. A tool can ask “Move the stage to 120 mm?” in the chat and wait for the answer.
  • Control who can connect. Only your own computer by default, with an access token for anything else.

🚀 Quick start

  1. Install the toolkit with VIPM (search for LabVIEW MCP Server SDK). It needs LabVIEW 2020 or newer, 64-bit, and VIPM installs its dependencies with it.

  2. Run an example. Open \examples\MCP Server\examples\Simple MCP Server\main.vi and run it. The server is now listening on http://127.0.0.1:36987/mcp/server.

  3. Connect Claude Desktop. Install Node.js, then add the server to Claude Desktop’s configuration file (Settings → Developer → Edit Config):

    {
      "mcpServers": {
        "labview": {
          "command": "npx",
          "args": ["mcp-remote", "http://127.0.0.1:36987/mcp/server"]
        }
      }
    }
    

    Quit Claude Desktop completely (including its icon in the taskbar) and start it again. It reads the list of tools only at startup.

  4. Ask something like “How much memory does my machine have?” Claude calls get_system_stats and answers with the values your VI returned.

🔧 How it works: a VI is a tool

The Simple example registers a single tool. Start.vi opens the server, Add Tool.vi adds a VI as a tool, and the loop keeps the server running until you press Stop:

The tool itself is an ordinary VI:

Front panel Block diagram
在 GitHub 查看完整 README

安装

npx mcp-remote http://127.0.0.1:36987/mcp/server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "labview": { "command": "npx", "args": ["mcp-remote", "http://127.0.0.1:36987/mcp/server"] } } }