mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-28 00:35:16 +02:00
Merge branch 'main' into patch-1
This commit is contained in:
@@ -16,7 +16,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && shx chmod +x dist/*.js",
|
"build": "tsc && shx chmod +x dist/*.js",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
"watch": "tsc --watch"
|
"watch": "tsc --watch",
|
||||||
|
"start": "node dist/index.js",
|
||||||
|
"start:sse": "node dist/sse.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "1.0.1",
|
"@modelcontextprotocol/sdk": "1.0.1",
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ Add the following to your `claude_desktop_config.json`:
|
|||||||
"command": "docker",
|
"command": "docker",
|
||||||
"args": [
|
"args": [
|
||||||
"run",
|
"run",
|
||||||
|
"--rm",
|
||||||
|
"-i",
|
||||||
"-e",
|
"-e",
|
||||||
"GITLAB_PERSONAL_ACCESS_TOKEN",
|
"GITLAB_PERSONAL_ACCESS_TOKEN",
|
||||||
"-e",
|
"-e",
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ Add the following to your `claude_desktop_config.json`:
|
|||||||
Docker build:
|
Docker build:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -t vonwig/google-maps:mcp -f src/google-maps/Dockerfile .
|
docker build -t mcp/google-maps -f src/google-maps/Dockerfile .
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -158,6 +158,29 @@ Add this to your claude_desktop_config.json:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### NPX with custom setting
|
||||||
|
|
||||||
|
The server can be configured using the following environment variables:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"memory": {
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"-y",
|
||||||
|
"@modelcontextprotocol/server-memory"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"MEMORY_FILE_PATH": "/path/to/custom/memory.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `MEMORY_FILE_PATH`: Path to the memory storage JSON file (default: `memory.json` in the server directory)
|
||||||
|
|
||||||
### System Prompt
|
### System Prompt
|
||||||
|
|
||||||
The prompt for utilizing memory depends on the use case. Changing the prompt will help the model determine the frequency and types of memories created.
|
The prompt for utilizing memory depends on the use case. Changing the prompt will help the model determine the frequency and types of memories created.
|
||||||
|
|||||||
@@ -10,10 +10,15 @@ import { promises as fs } from 'fs';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
|
|
||||||
|
// Define memory file path using environment variable with fallback
|
||||||
|
const defaultMemoryPath = path.join(path.dirname(fileURLToPath(import.meta.url)), 'memory.json');
|
||||||
|
|
||||||
// Define the path to the JSONL file, you can change this to your desired local path
|
// If MEMORY_FILE_PATH is just a filename, put it in the same directory as the script
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
const MEMORY_FILE_PATH = process.env.MEMORY_FILE_PATH
|
||||||
const MEMORY_FILE_PATH = path.join(__dirname, 'memory.json');
|
? path.isAbsolute(process.env.MEMORY_FILE_PATH)
|
||||||
|
? process.env.MEMORY_FILE_PATH
|
||||||
|
: path.join(path.dirname(fileURLToPath(import.meta.url)), process.env.MEMORY_FILE_PATH)
|
||||||
|
: defaultMemoryPath;
|
||||||
|
|
||||||
// We are storing our memory using entities, relations, and observations in a graph structure
|
// We are storing our memory using entities, relations, and observations in a graph structure
|
||||||
interface Entity {
|
interface Entity {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@modelcontextprotocol/server-memory",
|
"name": "@modelcontextprotocol/server-memory",
|
||||||
"version": "0.6.2",
|
"version": "0.6.3",
|
||||||
"description": "MCP server for enabling memory for Claude through a knowledge graph",
|
"description": "MCP server for enabling memory for Claude through a knowledge graph",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Anthropic, PBC (https://anthropic.com)",
|
"author": "Anthropic, PBC (https://anthropic.com)",
|
||||||
|
|||||||
Reference in New Issue
Block a user