My Wiki!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:0_ide:kilocode_vscode [2026/05/12 12:26] tdprogramming:0_ide:kilocode_vscode [2026/07/09 11:34] (current) – [pdf-reader mcp for vscode] td
Line 63: Line 63:
  
 Prepare a Small Evidence Workspace Prepare a Small Evidence Workspace
- 
 ### memvid mcp for vscode ### memvid mcp for vscode
  
 #### Install npm, uv on windows #### Install npm, uv on windows
 +  * https://wiki.visrc.com/doku.php?id=windows:winadmin:npm_user
 +
 +
 +#### Setup memvid mcp server
 +
 +  * https://github.com/khgs2411/memvid_mcp
 +
 +
 +Running local mpx server may not work due to not available PATH for non admin user. 
 +
 +Install memvid-mcp-server locally
 +
 +If you have Node.js installed but npx isn't in PATH, install the package globally or locally:
 +
 +     npm install -g memvid-mcp-server
 +
 +Then update the ~/.config/kilo.json (~/.config/kilo.jsonc for global settings) configuration to use the direct path:
 +
 +```
 +{
 +  "command": ["memvid-mcp-server"],
 +  ...
 +}
 +
 +```
 +
 +Example:
 +
 +```
 +"$schema": "https://app.kilo.ai/config.json",
 +  "mcp": {
 +    "memvid": {
 +      "type": "local",
 +      "command": [
 +        "npx",
 +        "-y",
 +        "memvid-mcp-server@latest"
 +      ],
 +      "environment": {
 +        "OPENAI_API_KEY": "sk-proj-qoGHEBwSHb41x8slxaziGjq1RSp5Sz3FT3BlbkFJYfp15vPobwEm0e-Ib0zdRhOTntpQsGf2qSY8kA3FR6T4np3tMlrc79yjyXLWtcpEd1BaE-IbkA",
 +        "MEMVID_LOCAL_STORAGE": "0"
 +      },
 +      
 +```
 +
 +```
 + "$schema": "https://app.kilo.ai/config.json",
 +  "mcp": {
 +    "memvid": {
 +      "type": "local",
 +      "command": ["memvid-mcp-server"],
 +      "environment": {
 +        "OPENAI_API_KEY": "sk-proj-NEZJMF3Yljd-lfp15vPobwEm0e-Ib0zdRhOTntpQsGf2qSY8kA3FR6T4np3tMlrc79yjyXLWtcpEd1BaE-IbkA",
 +        "MEMVID_LOCAL_STORAGE": "0"
 +      },
 +```
 +
 +Note: If you do not provide OPENAI_API_KEY, the ask_memory tool will not be available, but you can still use create_or_open_memory, add_content, and search_memory (lexical mode).
 +
 +MEMVID_LOCAL_STORAGE Set to "1" to store memory files in ./memvid_mcp (current directory) instead of ~/.memvid_mcp.
 +
 +
 +**This only work in external powershell not in VS Code sandbox. See troubleshooting**
 +If PATH only defined in non admin user $profile, use this command
 +
 +     ["powershell", "-Command", ". $PROFILE; npx -y memvid-mcp-server@latest"]
 +     
 +#### Troubleshooting
 +
 +VS Code use sandbox environment where non admin user $profile is not available.
 +
 +##### Set PATH
 +     powershell -Command "[Environment]::SetEnvironmentVariable('Path', 'D:\devfs\python;D:\devfs\node-v24.15.0-win-x64;' + [Environment]::GetEnvironmentVariable('Path', 'User'), 'User')" 2>&1; echo "PATH_UPDATED:$?"
 +     
 +Edit PATH as non admin user:
 +
 +     rundll32 sysdm.cpl,EditEnvironmentVariables
 +
 +Add full PATH:
 +
 +     D:\devfs\python;D:\devfs\node-v24.15.0-win-x64;D:\devfs\node-v24.15.0-win-x64;D:\devfs\node-v24.15.0-win-x64;C:\Users\13223\.local\bin;C:\Users\13223\AppData\Local\Microsoft\WindowsApps;C:\Users\13223\AppData\Local\Programs\Git\cmd;C:\Users\13223\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\13223\AppData\Local\Programs\DockerDesktop\resources\bin;D:\devfs\jdk-21.0.10+7\bin;D:\devfs\apache-maven-3.9.15\bin;D:\devfs\node-v24.15.0-win-x64;.local\bin;D:\devfs\vim92;
 +     
 +##### Set $env
 +
 +     [Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "sk-your-key-here", "User")
 +
 +Then restart your computer (not just VS Code) to ensure it propagates system-wide.
  
-  * https://gist.github.com/feveromo/7a340d7795fca1ccd535a5802b976e1f+Check $env in terminal: 
 +   
 +     $env:OPENAI_API_KEY
  
-##### Install npm as non admin+Alternative: Set it in VS Code's terminal settings If you need it available immediately in the integrated terminal regardless, add this to your VS Code settings.json:
  
-Running npm on Windows without administrator rights requires using portable binaries or installing Node.js within your user profile directoryDownload the Node.js binary (.zip) and extract it to a folder like C:\Users\YourUser\nodejs. Then, update your user PATH environment variable to include this directory.+"terminal.integrated.env.windows"
 +    "OPENAI_API_KEY": "sk-your-key-here" 
 +
 +### pdf-reader mcp for vscode
  
-Steps to Run npm as Non-AdminDownload Portable Node.js+* https://github.com/SylphxAI/pdf-reader-mcp
  
-Download the Windows Binary (.zip) from the official site+A PDF Reader MCP (Model Context Protocolserver is an integration that allows AI agents and IDEs (like Claude or VS Code) to securely read, search, and extract data from PDF files without token-heavy context dumping. It solves large PDF limitations by converting binary documents into structured, searchable evidence.Advanced implementations like SylphxAI/pdf-reader-mcp go beyond simple text extraction, acting as an "Agent Document Twin." They provide:Evidence-based querying: pinpoint exactly which paragraph, table, or bounding box proves an answer to avoid hallucinations.Vis-mapping: interpret layouts, images, charts, and hidden text through built-in OCR and visual candidate crops.For simpler, text-only extraction workflows, lighter MCP servers are available on the MCP Market, including the mcp-pdf-reader PyPI package and @sylphlab/pdf-reader-mcp. These typically support basic functionalities such as:Opening and closing PDFs using file paths or URLs.Listing metadata (e.g., page counts, title, author, creation dates).Extracting text by full document, page ranges, or specific search queries.
  
-Extract: Unzip the files into a directory you have write access to, such as C:\Users\YourName\Documents\nodejs.+     npm install -g @sylphx/pdf-reader-mcp 
 +      
 +#### Kilo agent config
  
-Update Path (Temporary): Open a command prompt (cmd.exe) and run:set PATH=C:\Users\YourName\Documents\nodejs;%PATH%.+     .config\kilo\kilo.jsonc 
 +      
 +      
 +```JSON
  
-Update Path (Permanent):Search for "Edit environment variables for your accountin Windows search.Select Pathclick Editthen New and add the path to your extracted folder.+ "mcp"
 +    "memvid": { 
 +      "type": "local", 
 +      "command":
 +        "cmd", 
 +        "/c", 
 +        "C:\\devfs\\node-v26.5.0-win-x64\\memvid-mcp-server.cmd" 
 +      ], 
 +      "environment":
 +        "OPENAI_API_KEY": "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", 
 +        "MEMVID_LOCAL_STORAGE": "1" 
 +      }, 
 +      "enabled": true, 
 +      "timeout": 30000 
 +    }, 
 +    "pdf-reader":
 +      "type": "local", 
 +      "command":
 +        "cmd", 
 +        "/c", 
 +        "C:\\devfs\\node-v26.5.0-win-x64\\pdf-reader-mcp.cmd" 
 +      ], 
 +      "arguments": [], 
 +      "enabled": true, 
 +      "timeout": 30000 
 +    } 
 +  },
  
-Verify: Run node -v and npm -v to ensure they work. 
  
-Key Tips for Non-Admin UsageAvoid Global Installs: +```
  
-  * Do not use npm install -g. Instead, install packages locally within your project folder or use npx to run commands. +## PDF reader MCP 
-  Portable NPMIf you need a specific npm version, you can download it and link it directly via node bin/npm-cli.js install npm -gf. +https://lobehub.com/mcp/gstiebler-pdf-mcp-server
-  * Fixing "Not Recognized": If npm is not recognized, it means the PATH was not updated correctly in your terminal session.+

Navigation