Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building a local MCP server inside a Rust desktop app

说明与用途

AssetHoard 内嵌的本地 MCP 服务器通过 HTTP 和共享 API 实现安全、实时的资产操作,防止数据库损坏并保持 UI 同步。

问题

Integrating a local MCP server into a desktop asset manager without corrupting the SQLite database or losing UI sync.

结果

The embedded MCP server allows real-time, safe asset manipulation via AI assistants while maintaining database integrity and UI responsiveness.

工作流

  • Run AssetHoard with MCP server enabled via Settings toggle
  • MCP server listens on 127.0.0.1:47823 with a bearer token
  • Client (Claude, VS Code, etc.) sends HTTP requests with token header
  • Server forwards requests to internal library API, performing validation, audit logging, and undo stack entries
  • Responses include text results, thumbnails, deep links, and error messages
  • Client displays results and updates UI in real time

证据

The server runs inside AssetHoard and only answers while the app is open.

来源

MCP never touches the database

来源

The port is fixed at 47823 by default. It is configurable, but the app never picks another one on its own if it is busy.

来源

  • 记录日期: 2026-10-13T05:55:53.783Z