Skip to main content

HackMD MCP - 命令行工具與 MCP 服務

Project description

HackMD MCP

HackMD MCP 是一個命令行工具和 MCP 服務,用於與 HackMD API 交互。

安裝

# 從 GitHub 安裝
git clone https://github.com/yourusername/hackmd-mcp.git
cd hackmd-mcp
pip install -e .

# 或從 PyPI 安裝(如果已發布)
pip install hackmd-mcp

設置

使用前需設定 HackMD API 令牌:

export HACKMD_API_TOKEN=您的API令牌

使用方法

基本命令

# 顯示幫助信息
hackmd-mcp --help

# 列出所有筆記
hackmd-mcp list

# 獲取筆記
hackmd-mcp get 筆記ID

# 創建筆記
hackmd-mcp create --title "標題" --content "內容" --tag 標籤1 --tag 標籤2

# 更新筆記
hackmd-mcp update 筆記ID --title "新標題" --content "新內容"

# 刪除筆記
hackmd-mcp delete 筆記ID

# 搜尋筆記
hackmd-mcp search 關鍵詞

作為 MCP 服務運行

# 啟動 HackMD MCP 服務
hackmd-mcp server

作者

Oliver

授權

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hackmd_mcp-0.2.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hackmd_mcp-0.2.3-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file hackmd_mcp-0.2.3.tar.gz.

File metadata

  • Download URL: hackmd_mcp-0.2.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for hackmd_mcp-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d03c31fc68bca67c7610d312fe405bcd0bae6892f4c532e13400405da56cbfcd
MD5 bca25484d7f8781d6b90898102ee39a8
BLAKE2b-256 60db74933f41924ab1d36bb0ee8f9ec5f85e957715cddb397b3baf1ca24e9d0c

See more details on using hashes here.

File details

Details for the file hackmd_mcp-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: hackmd_mcp-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for hackmd_mcp-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad80c56a69449a2eab6560bc0d258ae4098d5618653b106c21dc1284ce9181a
MD5 6d78f12f08620f4c865a28bb4c9d5fb6
BLAKE2b-256 e5809d6db478305f35ba922ba2a26a17709a41c612a3b957c331950885604a42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page