
jangoebel/labview-mcp-server-toolkit
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
jangoebel/labview-mcp-server-toolkit - кандидат на сервер MCP, импортированный из https://github.com/jangoebel/labview-mcp-server-toolkit.
Обзор
jangoebel/labview-mcp-server-toolkit - кандидат на сервер MCP, импортированный из https://github.com/jangoebel/labview-mcp-server-toolkit.
Обзор (машинный перевод)
С помощью этого инструментария вы можете создавать большие языковые модели, такие как ChatGPT или Claude, для управления приложениями LabVIEW.
Он открывает сервер http на текущей машине. Клиент MCP может подключиться к этому серверу и получить информацию о доступных инструментах, подсказках и ресурсах. Затем во время разговора в чате LLM может решить, когда звонить в VI для конкретной цели.
Обзор
Model Context Protocol (MCP) - это протокол, позволяющий приложениям LLM-чатботов вызывать внешний код. Существует огромное сообщество разработчиков MCP-серверов, обычно связанных с управлением некоторыми приложениями. На mcp.so вы можете найти MCP-серверы для таких приложений, как Blender, TouchDesigner, Photoshop, Git и многих других. Вы можете добавить несколько из этих MCP-серверов в MCP-клиент, например, Claude Desktop. Затем ИИ может инициировать несколько различных действий в различных программных продуктах.
Подробную информацию можно найти здесь:
[[Т0]]
MCP состоит из 3 типов объектов:
Инструменты
Инструмент — это функция, которую может назвать ИИ. Он имеет in- и выходы, имя и описание. ИИ может прочитать это описание, чтобы понять, как использовать инструмент.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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
-
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.
-
Run an example. Open
\examples\MCP Server\examples\Simple MCP Server\main.viand run it. The server is now listening onhttp://127.0.0.1:36987/mcp/server. -
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.
-
Ask something like “How much memory does my machine have?” Claude calls
get_system_statsand 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 |
|---|
Установка
npx mcp-remote http://127.0.0.1:36987/mcp/serverКонфигурация
{
"mcpServers": {
"labview": {
"command": "npx",
"args": ["mcp-remote", "http://127.0.0.1:36987/mcp/server"]
}
}
}