flomo-mcp-server 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flomo_mcp_server-0.1.0/.claude/settings.local.json +20 -0
- flomo_mcp_server-0.1.0/LICENSE +21 -0
- flomo_mcp_server-0.1.0/PKG-INFO +153 -0
- flomo_mcp_server-0.1.0/README.md +126 -0
- flomo_mcp_server-0.1.0/docs/superpowers/plans/2026-04-11-flomo-mcp-plan.md +522 -0
- flomo_mcp_server-0.1.0/docs/superpowers/specs/2026-04-11-flomo-mcp-design.md +212 -0
- flomo_mcp_server-0.1.0/pyproject.toml +52 -0
- flomo_mcp_server-0.1.0/src/flomo_mcp/__init__.py +1 -0
- flomo_mcp_server-0.1.0/src/flomo_mcp/client.py +49 -0
- flomo_mcp_server-0.1.0/src/flomo_mcp/server.py +75 -0
- flomo_mcp_server-0.1.0/tests/__init__.py +1 -0
- flomo_mcp_server-0.1.0/tests/test_client.py +65 -0
- flomo_mcp_server-0.1.0/uv.lock +903 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(git init:*)",
|
|
5
|
+
"Bash(git add:*)",
|
|
6
|
+
"Bash(git commit -m 'Add flomo MCP server design spec:*)",
|
|
7
|
+
"mcp__tavily__tavily_search",
|
|
8
|
+
"Bash(dir /s src)",
|
|
9
|
+
"Bash(pip install:*)",
|
|
10
|
+
"Bash(pytest tests/test_client.py::test_client_missing_api_url -v)",
|
|
11
|
+
"Bash(pytest tests/test_client.py -v)",
|
|
12
|
+
"Bash(python -m py_compile src/flomo_mcp/client.py)",
|
|
13
|
+
"Bash(xxd -l 10 src/flomo_mcp/client.py)",
|
|
14
|
+
"Bash(xxd)",
|
|
15
|
+
"Bash(python -c \"from src.flomo_mcp.server import server, main, list_tools, call_tool, run_server; print\\('Import check passed'\\)\")",
|
|
16
|
+
"Bash(pytest tests/ -v)",
|
|
17
|
+
"Bash(pip show:*)"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jiraiya8
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flomo-mcp-server
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MCP server for flomo - 快速记录想法到 flomo
|
|
5
|
+
Project-URL: Homepage, https://github.com/Jiraiya8/flomo-mcp-server
|
|
6
|
+
Project-URL: Repository, https://github.com/Jiraiya8/flomo-mcp-server
|
|
7
|
+
Project-URL: Issues, https://github.com/Jiraiya8/flomo-mcp-server/issues
|
|
8
|
+
Author: Jiraiya8
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ai,claude,flomo,mcp,notes
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: httpx>=0.25.0
|
|
22
|
+
Requires-Dist: mcp>=1.0.0
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# flomo MCP Server
|
|
29
|
+
|
|
30
|
+
MCP server for flomo - 让 AI 工具(如 Claude Code)能够快速向 flomo 添加笔记。
|
|
31
|
+
|
|
32
|
+
## 安装
|
|
33
|
+
|
|
34
|
+
### 使用 pip
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install flomo-mcp-server
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 使用 uv(推荐)
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
uv pip install flomo-mcp-server
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
或者从源码安装:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
uv sync
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 配置
|
|
53
|
+
|
|
54
|
+
### Claude Code
|
|
55
|
+
|
|
56
|
+
**方式 1: 已安装后运行**
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"mcpServers": {
|
|
61
|
+
"flomo": {
|
|
62
|
+
"command": "flomo-mcp",
|
|
63
|
+
"args": [],
|
|
64
|
+
"env": {
|
|
65
|
+
"FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**方式 2: 使用 uv run(无需预安装)**
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"mcpServers": {
|
|
77
|
+
"flomo": {
|
|
78
|
+
"command": "uv",
|
|
79
|
+
"args": ["run", "flomo-mcp"],
|
|
80
|
+
"env": {
|
|
81
|
+
"FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
> 注意:使用 `uv run` 方式需要先克隆仓库并进入目录,或指定完整路径。
|
|
89
|
+
|
|
90
|
+
### 获取 API URL
|
|
91
|
+
|
|
92
|
+
1. 登录 flomo 网页版 (https://flomoapp.com)
|
|
93
|
+
2. 进入设置 -> API
|
|
94
|
+
3. 复制你的专属 API URL
|
|
95
|
+
|
|
96
|
+
## 使用示例
|
|
97
|
+
|
|
98
|
+
在 Claude Code 中:
|
|
99
|
+
|
|
100
|
+
> "帮我记录一条 flomo:今天学到了 MCP 协议的基本原理 #学习"
|
|
101
|
+
|
|
102
|
+
Claude 会调用 add_flomo 工具,将内容添加到你的 flomo。
|
|
103
|
+
|
|
104
|
+
## 工具说明
|
|
105
|
+
|
|
106
|
+
### add_flomo
|
|
107
|
+
|
|
108
|
+
向 flomo 添加一条笔记。
|
|
109
|
+
|
|
110
|
+
**参数:**
|
|
111
|
+
- `content` (必填): 要记录的内容,支持 Markdown 格式,可使用 #标签
|
|
112
|
+
|
|
113
|
+
**返回:**
|
|
114
|
+
- 成功: "已成功添加到 flomo"
|
|
115
|
+
- 失败: 错误描述信息
|
|
116
|
+
|
|
117
|
+
## API 限制
|
|
118
|
+
|
|
119
|
+
通过 API 每天最多发布 100 条,此限制由 flomo API 自动处理。
|
|
120
|
+
|
|
121
|
+
## 开发
|
|
122
|
+
|
|
123
|
+
### 使用 pip
|
|
124
|
+
|
|
125
|
+
安装开发依赖:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
pip install -e ".[dev]"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
运行测试:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
pytest tests/ -v
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### 使用 uv(推荐)
|
|
138
|
+
|
|
139
|
+
安装开发依赖:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
uv sync
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
运行测试:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
uv run pytest tests/ -v
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
MIT
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# flomo MCP Server
|
|
2
|
+
|
|
3
|
+
MCP server for flomo - 让 AI 工具(如 Claude Code)能够快速向 flomo 添加笔记。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
### 使用 pip
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install flomo-mcp-server
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### 使用 uv(推荐)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
uv pip install flomo-mcp-server
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
或者从源码安装:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
uv sync
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 配置
|
|
26
|
+
|
|
27
|
+
### Claude Code
|
|
28
|
+
|
|
29
|
+
**方式 1: 已安装后运行**
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"mcpServers": {
|
|
34
|
+
"flomo": {
|
|
35
|
+
"command": "flomo-mcp",
|
|
36
|
+
"args": [],
|
|
37
|
+
"env": {
|
|
38
|
+
"FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**方式 2: 使用 uv run(无需预安装)**
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"mcpServers": {
|
|
50
|
+
"flomo": {
|
|
51
|
+
"command": "uv",
|
|
52
|
+
"args": ["run", "flomo-mcp"],
|
|
53
|
+
"env": {
|
|
54
|
+
"FLOMO_API_URL": "https://flomoapp.com/iwh/你的专属URL/"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> 注意:使用 `uv run` 方式需要先克隆仓库并进入目录,或指定完整路径。
|
|
62
|
+
|
|
63
|
+
### 获取 API URL
|
|
64
|
+
|
|
65
|
+
1. 登录 flomo 网页版 (https://flomoapp.com)
|
|
66
|
+
2. 进入设置 -> API
|
|
67
|
+
3. 复制你的专属 API URL
|
|
68
|
+
|
|
69
|
+
## 使用示例
|
|
70
|
+
|
|
71
|
+
在 Claude Code 中:
|
|
72
|
+
|
|
73
|
+
> "帮我记录一条 flomo:今天学到了 MCP 协议的基本原理 #学习"
|
|
74
|
+
|
|
75
|
+
Claude 会调用 add_flomo 工具,将内容添加到你的 flomo。
|
|
76
|
+
|
|
77
|
+
## 工具说明
|
|
78
|
+
|
|
79
|
+
### add_flomo
|
|
80
|
+
|
|
81
|
+
向 flomo 添加一条笔记。
|
|
82
|
+
|
|
83
|
+
**参数:**
|
|
84
|
+
- `content` (必填): 要记录的内容,支持 Markdown 格式,可使用 #标签
|
|
85
|
+
|
|
86
|
+
**返回:**
|
|
87
|
+
- 成功: "已成功添加到 flomo"
|
|
88
|
+
- 失败: 错误描述信息
|
|
89
|
+
|
|
90
|
+
## API 限制
|
|
91
|
+
|
|
92
|
+
通过 API 每天最多发布 100 条,此限制由 flomo API 自动处理。
|
|
93
|
+
|
|
94
|
+
## 开发
|
|
95
|
+
|
|
96
|
+
### 使用 pip
|
|
97
|
+
|
|
98
|
+
安装开发依赖:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
pip install -e ".[dev]"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
运行测试:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pytest tests/ -v
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 使用 uv(推荐)
|
|
111
|
+
|
|
112
|
+
安装开发依赖:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
uv sync
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
运行测试:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
uv run pytest tests/ -v
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
MIT
|