feat: add postgres storage and remote sync

This commit is contained in:
2025-11-07 16:59:28 +08:00
parent c4be264ea5
commit d0ba2b188b
32 changed files with 1101 additions and 1170 deletions

View File

@@ -18,7 +18,7 @@
**命令**:
```bash
codex mcp add --url http://127.0.0.1:8091/sse funstat
codex mcp add --url http://127.0.0.1:8094/sse funstat
```
**输出**:
@@ -31,7 +31,7 @@ Added global MCP server 'funstat'.
**配置详情**:
```
Name: funstat
URL: http://127.0.0.1:8091/sse
URL: http://127.0.0.1:8094/sse
Transport: streamable_http
Status: enabled
Auth: Unsupported
@@ -44,7 +44,7 @@ Auth: Unsupported
**新增内容**:
```toml
[mcp_servers.funstat]
url = "http://127.0.0.1:8091/sse"
url = "http://127.0.0.1:8094/sse"
```
---
@@ -80,7 +80,7 @@ codex mcp list
**输出**:
```
Name Url Bearer Token Env Var Status Auth
funstat http://127.0.0.1:8091/sse - enabled Unsupported
funstat http://127.0.0.1:8094/sse - enabled Unsupported
```
### 查看服务器详情
@@ -94,7 +94,7 @@ codex mcp get funstat
funstat
enabled: true
transport: streamable_http
url: http://127.0.0.1:8091/sse
url: http://127.0.0.1:8094/sse
bearer_token_env_var: -
http_headers: -
env_http_headers: -
@@ -110,7 +110,7 @@ codex mcp remove funstat
### 重新添加
```bash
codex mcp add --url http://127.0.0.1:8091/sse funstat
codex mcp add --url http://127.0.0.1:8094/sse funstat
```
---
@@ -200,12 +200,12 @@ codex -i screenshot.png "这个截图中的Telegram用户名是什么?帮我搜
└─────────────┬──────────────┘
│ SSE 连接
│ http://127.0.0.1:8091/sse
│ http://127.0.0.1:8094/sse
┌─────────────▼──────────────────┐
│ Funstat MCP Server (SSE) │
│ funstat_mcp/server.py │
│ 端口: 8091
│ 端口: 8094
└─────────────┬──────────────────┘
│ Telethon
@@ -232,7 +232,7 @@ export FUNSTAT_TOKEN="your-token-here"
# 添加 MCP 服务器时指定
codex mcp add \
--url http://127.0.0.1:8091/sse \
--url http://127.0.0.1:8094/sse \
--bearer-token-env-var FUNSTAT_TOKEN \
funstat
```
@@ -243,7 +243,7 @@ codex mcp add \
```toml
[mcp_servers.funstat]
url = "http://127.0.0.1:8091/sse"
url = "http://127.0.0.1:8094/sse"
# bearer_token_env_var = "FUNSTAT_TOKEN" # 可选
```
@@ -264,7 +264,7 @@ url = "http://127.0.0.1:8091/sse"
ps aux | grep server.py
# 2. 测试 SSE 端点
curl -i http://127.0.0.1:8091/sse
curl -i http://127.0.0.1:8094/sse
# 3. 重启 SSE 服务器
cd /Users/lucas/chat--1003255561049/funstat_mcp