Logo Codehooks.io MCP 服务器(测试版)

Codehooks.io MCP 服务器(测试版)

Tổ chức
RestDB

MCP server for codehooks.io

Nhà phát hànhRestDB
Kho mãcodehooks-mcp-server
Ngôn ngữJavaScript
Bản fork
1
Sao
11
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Codehooks.io MCP 服务器(测试版) cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    11 sao và 1 bản fork từ kho mã được liên kết.

Codehooks.io MCP Server

An MCP (Model Context Protocol) server that provides AI agents with database operations, serverless code deployment, and file management capabilities on the Codehooks.io platform.

When to Use This MCP vs. CLI Directly

EnvironmentHas Terminal?Recommended Approach
Claude CodeYesUse coho CLI directly
CursorYesUse coho CLI directly
Claude DesktopNoThis MCP server

For AI Agents with Terminal Access (Claude Code, Cursor, etc.)

Using the Codehooks CLI directly is simpler and more flexible:

  1. Install the CLI: npm install -g codehooks
  2. Login: coho login
  3. Get the AI prompt: coho prompt
  4. Or reference the online docs: https://codehooks.io/llms.txt

The agent can then run coho commands directly in the terminal.

For Claude Desktop (No Terminal Access)

Use this MCP server to give the AI access to Codehooks functionality. See the Setup section below.

Available functionality

Database & Collections

  • Query and update collections (including metadata) with filters and sorting
  • Create and manage collections
  • Import/export data (JSON,JSONL,CSV)
  • Add schemas and indexes, cap collections

Code Deployment

  • Deploy JavaScript serverless functions

File Operations

  • Upload files to cloud storage
  • List and browse files
  • Delete files
  • Inspect file metadata

Key-Value Store

  • Store key-value pairs
  • Retrieve one or many key-value pairs
  • Delete key-value pairs
  • Set time-to-live (TTL) for key-value pairs

System Operations

  • View application logs
  • Access API documentation (local documentation for the MCP agent)

Setup

Get Codehooks Admin Token (keep it secret!)

bash
coho login
coho add-admintoken

Create MCP Server Script

Create a folder for your MCP server scripts:

bash
mkdir ~/mcp-servers
cd ~/mcp-servers

For macOS/Linux - Create codehooks.sh:

bash
#!/bin/bash

# Set PATH to include common Docker locations
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH"

exec docker run --rm -i \
  --pull always \
  -e CODEHOOKS_PROJECT_NAME=your_project_name \
  -e CODEHOOKS_ADMIN_TOKEN=your_admin_token \
  -e CODEHOOKS_SPACE=your_space_name \
  ghcr.io/restdb/codehooks-mcp:latest

Make it executable:

bash
chmod +x ~/mcp-servers/codehooks.sh

For Windows - Create codehooks.bat:

batch
@echo off
docker run --rm -i ^
  --pull always ^
  -e CODEHOOKS_PROJECT_NAME=your_project_name ^
  -e CODEHOOKS_ADMIN_TOKEN=your_admin_token ^
  -e CODEHOOKS_SPACE=your_space_name ^
  ghcr.io/restdb/codehooks-mcp:latest

Replace your_project_name, your_admin_token, and your_space_name with your actual values.

Configure for Claude Desktop

Add to your claude_desktop_config.json:

macOS/Linux:

json
{
  "mcpServers": {
    "codehooks": {
      "command": "/Users/username/mcp-servers/codehooks.sh"
    }
  }
}

Windows:

json
{
  "mcpServers": {
    "codehooks": {
      "command": "C:\\Users\\username\\mcp-servers\\codehooks.bat"
    }
  }
}

Configure for Cursor

Add to your ~/.cursor/mcp.json:

macOS/Linux:

json
{
  "mcpServers": {
    "codehooks": {
      "command": "/Users/username/mcp-servers/codehooks.sh"
    }
  }
}

Windows:

json
{
  "mcpServers": {
    "codehooks": {
      "command": "C:\\Users\\username\\mcp-servers\\codehooks.bat"
    }
  }
}

Replace username with your actual username.

Example Requests

  • "Build a complete survey system: create a database, deploy an API to collect responses, and add search/analytics endpoints"
  • "Set up a real-time inventory tracker: import my product CSV, create stock update webhooks, and build low-stock alerts"
  • "Build a webhook processing pipeline: receive webhooks from multiple sources, transform and validate data, then trigger automated actions"
  • "Build a content management system: create file upload endpoints, set up a metadata database, and deploy content delivery APIs"
  • "Set up automated data backups: export my collections to JSON files, store them with timestamps, and create restoration endpoints"

How These Examples Work

Complete Survey System

The AI agent would:

  1. Create collections (surveys, responses) for data storage
  2. Add schemas for data validation and structure
  3. Deploy JavaScript endpoints like POST /surveys and GET /surveys/:id/analytics
  4. Create indexes on response fields for fast searching and analytics

Real-time Inventory Tracker

The AI agent would:

  1. Import your CSV to populate the products collection
  2. Deploy webhook handlers for POST /inventory/update and GET /inventory/low-stock
  3. Set up key-value storage for alert thresholds and settings
  4. Create indexes on SKU and stock levels for real-time queries

Webhook Processing Pipeline

The AI agent would:

  1. Deploy webhook receivers like POST /webhooks/stripe and POST /webhooks/github
  2. Create collections for webhook_logs, processed_events, and failed_events
  3. Set up data transformation rules and validation schemas for each webhook source
  4. Use key-value store for rate limiting and duplicate detection with TTL
  5. Deploy action triggers that send emails, update databases, or call other APIs based on webhook data

Content Management System

The AI agent would:

  1. Create collections for content, media, and users
  2. Deploy file upload endpoints with POST /upload and GET /content/:id
  3. Upload and manage static files for content delivery
  4. Store metadata linking files to content records with search indexes

Automated Data Backups

The AI agent would:

  1. Export collections to JSON format with timestamps
  2. Upload backup files to cloud storage automatically
  3. Deploy restoration APIs like GET /backups and POST /restore/:backup-id
  4. Store backup metadata in key-value store for tracking and management

Each example demonstrates how multiple MCP tools work together to create complete, production-ready systems through natural conversation with your AI agent.

Security Researchers

We thank the following individuals for responsible disclosure and helping improve the security of this project:

  • Liran Tal – Reported a command injection vulnerability in the query_collection tool (May 2025)

License

This project is licensed under the MIT License.

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "restdb-codehooks-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "codehooks-mcp-server"
      ]
    }
  }
}

Dùng MCP Codehooks.io MCP 服务器(测试版) với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Codehooks.io MCP 服务器(测试版), bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Codehooks.io MCP 服务器(测试版) làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Codehooks.io MCP 服务器(测试版).
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "restdb-codehooks-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "codehooks-mcp-server"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Codehooks.io MCP 服务器(测试版), sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Codehooks.io MCP 服务器(测试版).
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Codehooks.io MCP 服务器(测试版) giúp tôi làm việc này không?
Codehooks.io MCP 服务器(测试版)
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Codehooks.io MCP 服务器(测试版).

Câu hỏi thường gặp

Máy chủ MCP Codehooks.io MCP 服务器(测试版) dùng để làm gì?

Codehooks.io MCP 服务器(测试版) là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Codehooks.io MCP 服务器(测试版) với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Codehooks.io MCP 服务器(测试版) với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Codehooks.io MCP 服务器(测试版) với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Codehooks.io MCP 服务器(测试版), bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Codehooks.io MCP 服务器(测试版) với TypingMind?

Codehooks.io MCP 服务器(测试版) hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Codehooks.io MCP 服务器(测试版) cung cấp những công cụ nào trong TypingMind?

Codehooks.io MCP 服务器(测试版) cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Codehooks.io MCP 服务器(测试版) không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Codehooks.io MCP 服务器(测试版) yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇