Skip to main content
Glama

MemOS-MCP

by qinshu1109
Apache 2.0
3
  • Linux
  • Apple
post-commit968 B
#!/bin/bash # Git post-commit hook for MemOS # 自动记录commit信息到git_commit_mem # 获取当前脚本所在目录 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" # 获取commit信息 commit_hash=$(git rev-parse HEAD) commit_msg=$(git log -1 --pretty=%B) commit_author=$(git log -1 --pretty=%an) commit_email=$(git log -1 --pretty=%ae) commit_date=$(git log -1 --pretty=%ai) changed_files=$(git diff-tree --no-commit-id --name-only -r HEAD | tr '\n' ',' | sed 's/,$//') # 检查Python脚本是否存在 RECORD_SCRIPT="$SCRIPT_DIR/record_commit.py" if [ ! -f "$RECORD_SCRIPT" ]; then echo "Warning: record_commit.py not found at $RECORD_SCRIPT" exit 0 fi # 调用Python脚本记录到git_commit_mem cd "$PROJECT_ROOT" python3 "$RECORD_SCRIPT" "$commit_hash" "$commit_msg" "$commit_author" "$commit_email" "$commit_date" "$changed_files" 2>/dev/null # 如果记录失败,不影响git操作 exit 0

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qinshu1109/memos-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server