M

MCP

@Galiusbro/MCP
0 Stars 200 次浏览 Galiusbro 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "ai-ops-hub": {
      "args": [
        "./dist/server.js"
      ],
      "command": "node",
      "env": {
        "NOTES_DIR": "/path/to/your/notes",
        "RAG_DB_PATH": "/path/to/your/rag.db"
      }
    }
  }
}

服务介绍

AI Ops Hub

MCP- RAG .

AI Ops Hub MCP (Model Context Protocol) , - :

    • ( )
  • RAG-

#  
npm install

#   pnpm
pnpm install

#    
npm run dev

# 
npm run build

# 
npm test

(SQLite Docker)

#  SQLite 
./scripts/db.sh start

#   
./scripts/db.sh init

#  
./scripts/db.sh status

# 
./scripts/db.sh stop

.env :

NOTES_DIR=./notes
TASKS_FILE=./tasks.md
RAG_DB_PATH=./data/rag.db
WEB_ALLOWED_HOSTS=example.com,developer.mozilla.org

Claude Desktop

(stdio)

Claude Desktop:

{
  "mcpServers": {
    "ai-ops-hub": {
      "command": "node",
      "args": ["./dist/server.js"],
      "env": {
        "NOTES_DIR": "/path/to/your/notes",
        "RAG_DB_PATH": "/path/to/your/rag.db"
      }
    }
  }
}

(HTTP)

HTTP :
#  HTTP 
npm run start:http

#   Docker
docker-compose --profile app up -d

HTTP API:

#  
curl http://localhost:3333/health

#  
curl http://localhost:3333/tools

#  
curl -X POST http://localhost:3333/call \
  -H "Content-Type: application/json" \
  -d '{"name":"file_read","arguments":{"path":"test-note.md"}}'

**MVP ** -

  • MCP (stdio)
  • RAG ()
  • (, , )
  • SQLite Docker
  • -
  • HTTP
  • RAG SQLite

#  
npm run build

#   
node test/test-services.js

#  HTTP API 
npm run test:http

#  unit  (  )
npm test

:
  1. FileService -

  2. TaskService -

  3. RAGService -

  4. WebService - -

     .
    

相关 MCP 服务