Sync vault notes: April-November 2026 sessions, projects, and architecture
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe4fe656be
commit
994c7ae577
379 files changed
+55216
-107
No files matched your search
@@ -0,0 +1,55 @@
|
||||
|
||||
## MCP Web Client Vault Path Rules
|
||||
# MCP / Obsidian Relative Paths for Web Client
|
||||
|
||||
## Context
|
||||
When Kimi Code (or Kimi Claw) runs from the **web client**, it reaches the Obsidian vault **through this MCP server** (`hermes-mcp`). It has no knowledge of the host's absolute filesystem paths (e.g. `/home/garfield/vaults/...`). Therefore, **all paths must be vault-relative** — both as inputs to tools and in results returned to the model.
|
||||
|
||||
---
|
||||
|
||||
## Prompt for Searching MQL Trading EA Notes
|
||||
|
||||
Use this prompt in Kimi Code (web) to search and summarize your MQL trading EA notes:
|
||||
|
||||
```text
|
||||
Use the Obsidian tools to help me with my notes.
|
||||
|
||||
1. Search for notes related to `mql trading ea` across my vault.
|
||||
2. Read any relevant notes you find.
|
||||
3. Summarize what I've been working on — especially anything about MQL, trading EAs, bugs, strategies, or recent changes.
|
||||
|
||||
Important rules:
|
||||
- All paths are relative to the vault root. Do not use absolute paths like `/home/...`.
|
||||
- When searching, use obsidian_search_notes with the query.
|
||||
- When reading or appending, use the exact relative path returned by search (e.g. `Trading/EAs/MyEA.md`).
|
||||
- If you need to write follow-up notes, append to an existing note or create one with a relative path like `Trading/Notes/2026-04-17.md`.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Code Changes Made
|
||||
|
||||
### File: `src/tools.ts`
|
||||
|
||||
Updated tool descriptions to enforce relative-path semantics for web clients:
|
||||
|
||||
1. **`obsidian_search_notes`**
|
||||
- Description now states: *Returns note paths relative to the vault root (e.g. `"Daily Notes/2026-04-15.md"`). Always use these exact relative paths when calling `obsidian_read_note` or `obsidian_append_to_note`.*
|
||||
- `path_filter` description updated to clarify it's a *relative vault path* filter.
|
||||
|
||||
2. **`obsidian_read_note`**
|
||||
- Description now states: *Retrieve the full content of a specific Obsidian note by relative vault path... The path must be relative to the vault root. Do not use absolute filesystem paths.*
|
||||
|
||||
3. **`obsidian_append_to_note`**
|
||||
- Description now states: *...The path must be relative to the vault root. Do not use absolute filesystem paths.*
|
||||
|
||||
### Build
|
||||
- Ran `npm run build` (TypeScript → `dist/tools.js`).
|
||||
- Verified updated strings present in compiled output.
|
||||
|
||||
---
|
||||
|
||||
## Key Principle
|
||||
|
||||
> The MCP server is the boundary. The web client only knows vault-relative paths. Keep everything relative so read → search → append chains work seamlessly.
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
# Jacob.fetcherpay.com SSL & Auth Debug Session — 2026-04-19
|
||||
|
||||
## Initial Problem
|
||||
User was unable to access Jacob (DeerFlow AI agent) at `https://jacob.fetcherpay.com`:
|
||||
- Fake SSL cert being served (`Kubernetes Ingress Controller Fake Certificate`)
|
||||
- Basic auth not enforcing
|
||||
- nginx 404 errors
|
||||
|
||||
## Root Cause Analysis
|
||||
|
||||
### Port 443 Conflict
|
||||
K8s nginx-ingress-controller runs with `hostNetwork: true`, binding directly to host port 443. Traefik (in Docker) could not compete for the same port. All HTTPS traffic was intercepted by K8s nginx-ingress, which had no Ingress rule for `jacob.fetcherpay.com`, so it served the default fake certificate.
|
||||
|
||||
**Conclusion:** Traefik was never receiving traffic for jacob.fetcherpay.com.
|
||||
|
||||
## Fixes Applied
|
||||
|
||||
### 1. K8s Ingress for jacob.fetcherpay.com (Option A)
|
||||
Created `jacob-k8s-ingress.yaml` in `/home/garfield/hermes-mcp/`:
|
||||
- `Service` + `Endpoints` pointing to DeerFlow nginx at host IP `104.190.60.129:2026`
|
||||
- `Secret` for basic auth (`boaz` / `strength`)
|
||||
- `Ingress` with `cert-manager.io/cluster-issuer: letsencrypt-prod`
|
||||
|
||||
**Initial issue:** K8s blocks loopback (`127.0.0.1`) in Endpoints. Fixed by using host external IP.
|
||||
|
||||
**Basic auth issue:** `$2b$` bcrypt prefix (OpenBSD) incompatible with nginx `auth_basic`. Regenerated with `$2y$` via `htpasswd -nbB`.
|
||||
|
||||
**Result:** Valid Let's Encrypt cert issued and served. Basic auth working.
|
||||
|
||||
```bash
|
||||
curl -u boaz:strength https://jacob.fetcherpay.com/health
|
||||
{"status":"healthy","service":"deer-flow-gateway"}
|
||||
```
|
||||
|
||||
### 2. Cleaned up dead Traefik labels
|
||||
Removed orphaned Traefik labels from `deer-flow/docker/docker-compose-dev.yaml` (nginx service lines 79-87). These were dead code since Traefik never got port 443 traffic.
|
||||
|
||||
### 3. Fixed missing nginx API proxy route
|
||||
DeerFlow frontend was calling `/api/chat` and `/api/research` but nginx had no proxy rule for them, causing 404s.
|
||||
|
||||
Added catch-all `location /api/` block in `deer-flow/docker/nginx/nginx.conf` to proxy unmatched API routes to the gateway.
|
||||
|
||||
### 4. React hydration mismatch — cosmetic
|
||||
Frontend showed Radix UI hydration mismatches (`id` attributes differed between SSR and client). This is benign in Next.js dev mode and does not block functionality.
|
||||
|
||||
### 5. AuthenticationError — Moonshot API key invalid
|
||||
User was getting `Console AuthenticationError` when sending chat messages.
|
||||
|
||||
**Root cause:** Model selector was set to **Kimi K2.5**. DeerFlow routes Kimi to Moonshot API (`api.moonshot.cn`) via `PatchedChatDeepSeek` (OpenAI-compatible). The `MOONSHOT_API_KEY` in `.env` was invalid.
|
||||
|
||||
```bash
|
||||
curl -H "Authorization: Bearer $MOONSHOT_API_KEY" https://api.moonshot.cn/v1/models
|
||||
{"error":{"message":"Invalid Authentication"}}
|
||||
```
|
||||
|
||||
**Solution:** Switch model in UI to **Claude Opus 4.6** or **Claude Sonnet 4.6** (Anthropic key is valid).
|
||||
|
||||
## Key Files Modified
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `hermes-mcp/jacob-k8s-ingress.yaml` | New K8s Ingress manifest |
|
||||
| `deer-flow/docker/docker-compose-dev.yaml` | Removed dead Traefik labels |
|
||||
| `deer-flow/docker/nginx/nginx.conf` | Added `location /api/` catch-all proxy |
|
||||
|
||||
## Configuration Verified Working
|
||||
|
||||
| Component | Status |
|
||||
|-----------|--------|
|
||||
| SSL cert (LE R13) | ✅ Valid |
|
||||
| Basic auth | ✅ Enforcing |
|
||||
| K8s Ingress routing | ✅ Active |
|
||||
| API proxy (/api/models) | ✅ Working |
|
||||
| Claude models | ✅ API key valid |
|
||||
| Moonshot/Kimi | ❌ API key invalid |
|
||||
|
||||
## Remaining Issue
|
||||
- **Moonshot API key** needs replacement if user wants to use Kimi K2.5 model
|
||||
- Get new key from https://platform.moonshot.cn
|
||||
- Update `MOONSHOT_API_KEY` in `/home/garfield/deer-flow/.env`
|
||||
- Recreate langgraph container: `docker compose ... up -d --force-recreate langgraph`
|
||||
|
||||
---
|
||||
*Session date: 2026-04-19*
|
||||
|
||||
Reference in new issue
Block a user