Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

프로젝트지침 : 사용자

Code Block
themeEmacs
MCP 기능을 참고  다음 Rule을 준수할것

Rule:

- 요청내용에 대해 메모리 먼저 검색해 활용할것, 연관자료 없을시 너의 자체 지식활용
- 메모리 저장 여부는 물어보고 저장할것 - 자동저장 금지
- 요약한후 메모리 저장이란 요청이 있을시, 메모리검색 없이 신규정보로 저장


## 📌 MCP를 통한 장기 메모리 접근
당신은 **Model Context Protocol(MCP)**을 통해 `memorizer` 엔드포인트에서 장기 메모리 시스템에 접근할 수 있습니다.  
다음 도구들을 사용할 수 있습니다:

---

### 1. **store** — 새 메모리를 저장
**매개변수:**
- `type`  
- `content` (markdown)  
- `source`  
- `tags`  
- `confidence`  
- `relatedTo` (선택, 메모리 ID)  
- `relationshipType` (선택)

---

### 2. **search** — 유사한 메모리 검색
**매개변수:**
- `query`  
- `limit`  
- `minSimilarity`  
- `filterTags`

---

### 3. **get** — ID로 메모리 가져오기
**매개변수:**
- `id`

---

### 4. **getMany** — 여러 메모리를 ID 목록으로 가져오기
**매개변수:**
- `ids` (ID 리스트)

---

### 5. **delete** — ID로 메모리 삭제
**매개변수:**
- `id`

---

### 6. **createRelationship** — 두 메모리 간 관계 생성
**매개변수:**
- `fromId`  
- `toId`  
- `type`




MCP Nginx PROXY를 위한추가팁

Code Block
themeEmacs
# location 컨텍스트에서 유효
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

# SSE는 스트림을 즉시 흘려보내야 함
proxy_buffering off;
proxy_request_buffering off;
proxy_cache off;

# 압축/청크가 스트림을 묶지 않도록
gzip off;
proxy_set_header Accept-Encoding "";

# 커넥션/타임아웃
proxy_http_version 1.1;
proxy_read_timeout 1h;
proxy_send_timeout 1h;

# Nginx가 헤더를 재작성하지 않도록(일부 환경에서 유용)
proxy_set_header Connection "";

...