MCP
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"notes-manager": {
"args": [
"--from",
".",
"notes-mcp-server"
],
"autoApprove": [
"create_note",
"read_note",
"list_notes",
"search_notes"
],
"command": "uvx",
"disabled": false
}
}
}
服务介绍
Notes MCP Server - Qun l Ghi ch C nhn
MCP Server qun l ghi ch c nhn vi AI Agent. H tr to, c, cp nht, xa v tm kim ghi ch.
Tnh nng
- To ghi ch mi vi tiu , ni dung v tags
- c ghi ch theo ID
- Cp nht ghi ch hin c
- Xa ghi ch
- Lit k tt c ghi ch (c th lc theo tag)
- Tm kim ghi ch theo t kha
Ci t
Yu cu
- Python 3.10 tr ln
- uv hoc pip
Ci t uv (nu cha c)
# Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Ci t dependencies
uv pip install mcp
Cu hnh MCP
Thm vo file .kiro/settings/mcp.json:
{
"mcpServers": {
"notes-manager": {
"command": "python",
"args": ["notes_mcp_server.py"],
"disabled": false,
"autoApprove": [
"create_note",
"read_note",
"update_note",
"delete_note",
"list_notes",
"search_notes"
]
}
}
}
Hoc s dng uvx (khuyn ngh):
{
"mcpServers": {
"notes-manager": {
"command": "uvx",
"args": ["--from", ".", "notes-mcp-server"],
"disabled": false,
"autoApprove": ["create_note", "read_note", "list_notes", "search_notes"]
}
}
}
S dng
To ghi ch mi
To ghi ch mi vi tiu " tng d n" v ni dung "Xy dng ng dng qun l task"
c ghi ch
c ghi ch c ID 20241201_143000
Lit k ghi ch
Lit k tt c ghi ch
Tm kim
Tm kim ghi ch c t "d n"
Cp nht ghi ch
Cp nht ghi ch 20241201_143000 vi ni dung mi
Xa ghi ch
Xa ghi ch 20241201_143000
Lu tr
Ghi ch c lu ti: ~/.kiro_notes/
Mi ghi ch l mt file JSON vi cu trc:
{
"id": "20241201_143000",
"title": "Tiu ",
"content": "Ni dung ghi ch",
"tags": ["tag1", "tag2"],
"created_at": "2024-12-01T14:30:00",
"updated_at": "2024-12-01T14:30:00"
}
Cng c c sn
- create_note - To ghi ch mi
- read_note - c ghi ch theo ID
- update_note - Cp nht ghi ch
- delete_note - Xa ghi ch
- list_notes - Lit k ghi ch (c th lc theo tag)
- search_notes - Tm kim ghi ch
Khc phc s c
Server khng kt ni
- Kim tra Python ci t:
python --version - Kim tra mcp ci:
pip list | grep mcp - Xem log trong MCP Server view ca Kiro
Khng tm thy ghi ch
- Ghi ch c lu ti
~/.kiro_notes/ - Kim tra quyn truy cp th mc
License
MIT