@pragmatic-growth/memory-mcp 2.1.0 → 2.1.1

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.
Files changed (3) hide show
  1. package/README.md +76 -23
  2. package/package.json +8 -3
  3. package/.npmrc.bak +0 -2
package/README.md CHANGED
@@ -1,19 +1,53 @@
1
- # NT-Memory MCP (stdio)
1
+ # PG-Memory MCP (stdio proxy)
2
2
 
3
- Local MCP stdio server for NT-Memory tax knowledge base. Use this with Raycast and other stdio-only MCP clients.
3
+ Stdio proxy for PG-Memory - connects stdio-based MCP clients to your PG-Memory HTTP server.
4
+
5
+ ## Two Transport Modes
6
+
7
+ PG-Memory supports **two MCP transport modes**:
8
+
9
+ ### 1. HTTP Transport (Direct)
10
+ For clients that support HTTP/SSE transport (Claude Code, mcp-remote):
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "pg-memory": {
15
+ "command": "npx",
16
+ "args": ["-y", "mcp-remote", "https://your-server.up.railway.app/api/mcp"],
17
+ "env": {
18
+ "API_KEY": "your-api-key"
19
+ }
20
+ }
21
+ }
22
+ }
23
+ ```
24
+
25
+ ### 2. Stdio Transport (This Package)
26
+ For clients that only support stdio (Raycast, local tools):
27
+ ```json
28
+ {
29
+ "name": "pg-memory",
30
+ "type": "stdio",
31
+ "command": "npx",
32
+ "args": ["-y", "@pragmatic-growth/memory-mcp"],
33
+ "env": {
34
+ "MCP_API_KEY": "your-api-key"
35
+ }
36
+ }
37
+ ```
4
38
 
5
39
  ## Two Operating Modes
6
40
 
7
- The server supports two modes for different use cases:
41
+ Both transports support two operating modes:
8
42
 
9
43
  ### Read-Only Mode (Default)
10
44
  Safe for general use - only search and read operations:
11
- - `search_tax_knowledge` - Semantic search
45
+ - `search_knowledge` - Semantic search with relevance scores
12
46
  - `answer_question` - RAG with auto-generation
13
47
  - `get_article` - Get article by ID
14
- - `list_articles` - Browse articles
15
- - `list_categories` - List categories with counts
16
- - `log_unanswered` - Flag gaps
48
+ - `list_articles` - Browse articles with category filter
49
+ - `list_categories` - List categories with article counts
50
+ - `log_unanswered` - Flag knowledge gaps
17
51
  - `health_check` - System status
18
52
 
19
53
  ### Full Mode (with `--full` flag)
@@ -29,10 +63,10 @@ Includes all read-only tools PLUS write operations:
29
63
 
30
64
  ```json
31
65
  {
32
- "name": "nt-memory",
66
+ "name": "pg-memory",
33
67
  "type": "stdio",
34
68
  "command": "npx",
35
- "args": ["-y", "@anthropic/nt-memory-mcp"],
69
+ "args": ["-y", "@pragmatic-growth/memory-mcp"],
36
70
  "env": {
37
71
  "MCP_API_KEY": "your-api-key-here"
38
72
  }
@@ -43,10 +77,10 @@ Includes all read-only tools PLUS write operations:
43
77
 
44
78
  ```json
45
79
  {
46
- "name": "nt-memory-full",
80
+ "name": "pg-memory-full",
47
81
  "type": "stdio",
48
82
  "command": "npx",
49
- "args": ["-y", "@anthropic/nt-memory-mcp", "--full"],
83
+ "args": ["-y", "@pragmatic-growth/memory-mcp", "--full"],
50
84
  "env": {
51
85
  "MCP_API_KEY": "your-api-key-here"
52
86
  }
@@ -56,17 +90,17 @@ Includes all read-only tools PLUS write operations:
56
90
  ### Global Installation
57
91
 
58
92
  ```bash
59
- npm install -g @anthropic/nt-memory-mcp
93
+ npm install -g @pragmatic-growth/memory-mcp
60
94
  ```
61
95
 
62
96
  Then run directly:
63
97
 
64
98
  ```bash
65
99
  # Read-only mode (default)
66
- MCP_API_KEY=your-key nt-memory-mcp
100
+ MCP_API_KEY=your-key memory-mcp
67
101
 
68
102
  # Full mode
69
- MCP_API_KEY=your-key nt-memory-mcp --full
103
+ MCP_API_KEY=your-key memory-mcp --full
70
104
  ```
71
105
 
72
106
  ## Environment Variables
@@ -85,13 +119,13 @@ Note: The `--full` CLI flag takes precedence over `MCP_MODE` env var.
85
119
 
86
120
  | Tool | Description |
87
121
  |------|-------------|
88
- | `search_tax_knowledge` | Search US non-resident tax knowledge base using semantic similarity |
89
- | `answer_question` | Get AI-powered answers with sources (generates articles if needed) |
90
- | `get_article` | Retrieve complete article content by ID |
91
- | `list_articles` | Browse recent articles with optional category filter |
122
+ | `search_knowledge` | Semantic search with relevance scores |
123
+ | `answer_question` | Full RAG pipeline with auto-generation |
124
+ | `get_article` | Retrieve complete article by ID |
125
+ | `list_articles` | Browse articles with optional category filter |
92
126
  | `list_categories` | List all categories with article counts |
93
- | `log_unanswered` | Flag questions as unanswered for gap analysis |
94
- | `health_check` | Check system status, database connectivity, and current mode |
127
+ | `log_unanswered` | Flag questions for knowledge gap analysis |
128
+ | `health_check` | Check system status and connectivity |
95
129
 
96
130
  ### Full Mode Tools
97
131
 
@@ -102,15 +136,34 @@ Note: The `--full` CLI flag takes precedence over `MCP_MODE` env var.
102
136
  | `remove_article` | Soft-delete an article (preserves data for audit) |
103
137
  | `rate_answer` | Rate previous answers: -1 (unhelpful), 0 (neutral), 1 (helpful) |
104
138
 
139
+ ## MCP Resources
140
+
141
+ | URI | Description |
142
+ |-----|-------------|
143
+ | `pgmemory://categories` | List all knowledge base categories |
144
+ | `pgmemory://stats` | System statistics (article count, gaps, latency) |
145
+ | `pgmemory://recent` | Recently added/updated articles |
146
+
147
+ ## MCP Prompts
148
+
149
+ | Prompt | Description |
150
+ |--------|-------------|
151
+ | `system-context` | Knowledge base context for AI assistants |
152
+ | `search-tips` | Guidelines for effective search queries |
153
+
105
154
  ## How It Works
106
155
 
107
- This package runs locally as a stdio MCP server and proxies requests to the remote NT-Memory HTTP server on Railway. This allows Raycast (which only supports stdio) to use our cloud-hosted knowledge base.
156
+ This package runs locally as a stdio MCP server and proxies requests to the remote PG-Memory HTTP server. This allows clients that only support stdio to use the cloud-hosted knowledge base.
108
157
 
109
158
  ```
110
- Raycast (stdio) → nt-memory-mcp (local) → HTTP → Railway (cloud)
159
+ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
160
+ │ Raycast/Local │────▶│ memory-mcp │────▶│ PG-Memory │
161
+ │ (stdio only) │ │ (this package) │ │ HTTP Server │
162
+ └─────────────────┘ └─────────────────┘ └─────────────────┘
163
+ stdio proxy HTTP
111
164
  ```
112
165
 
113
- The server also respects the remote server's mode configuration. For full mode to work:
166
+ For full mode to work:
114
167
  1. The stdio proxy must have `--full` flag OR `MCP_MODE=full`
115
168
  2. The remote server must have `MCP_MODE=full` in its environment
116
169
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pragmatic-growth/memory-mcp",
3
- "version": "2.1.0",
4
- "description": "MCP stdio client for PG-Memory knowledge base - connect AI agents to your PostgreSQL knowledge base via Model Context Protocol",
3
+ "version": "2.1.1",
4
+ "description": "Stdio proxy for PG-Memory - connects stdio-based MCP clients (Raycast, local tools) to your PG-Memory HTTP server. PG-Memory supports both HTTP transport (Claude Code, mcp-remote) and stdio transport (this package).",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "memory-mcp": "./dist/index.js"
@@ -15,12 +15,17 @@
15
15
  "keywords": [
16
16
  "mcp",
17
17
  "model-context-protocol",
18
+ "stdio",
19
+ "http",
18
20
  "raycast",
21
+ "claude-code",
19
22
  "knowledge-base",
20
23
  "postgresql",
21
24
  "pgvector",
22
25
  "ai",
23
- "rag"
26
+ "rag",
27
+ "semantic-search",
28
+ "memory"
24
29
  ],
25
30
  "author": "Pragmatic Growth",
26
31
  "license": "MIT",
package/.npmrc.bak DELETED
@@ -1,2 +0,0 @@
1
- @pragmatic-growth:registry=https://registry.npmjs.org/
2
- //registry.npmjs.org/:_authToken=${NPM_TOKEN}