Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions Users/Shadow/.claude/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": "0.0.1",
"configurations": [
{
"name": "PeojectWebsite (Vite/React)",
"cwd": "C:/Users/Shadow/PeojectWebsite",
Comment on lines +5 to +6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There appears to be a typo in PeojectWebsite. Assuming it should be ProjectWebsite.

Additionally, the cwd path is hardcoded to a specific user's directory (C:/Users/Shadow/...). This makes the configuration not portable for other developers. This issue is present for all configurations in this file. It's highly recommended to use environment variables. For example, in VS Code's launch.json, you can use ${env:USERPROFILE} which typically resolves to C:\Users\<username> on Windows.

Suggested change
"name": "PeojectWebsite (Vite/React)",
"cwd": "C:/Users/Shadow/PeojectWebsite",
"name": "ProjectWebsite (Vite/React)",
"cwd": "${env:USERPROFILE}/ProjectWebsite",

Comment on lines +5 to +6

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible typo in the project name/path: "PeojectWebsite" looks like it should be "ProjectWebsite". If this is unintended, correct it so the entry is easier to find and doesn’t point at a non-existent directory.

Suggested change
"name": "PeojectWebsite (Vite/React)",
"cwd": "C:/Users/Shadow/PeojectWebsite",
"name": "ProjectWebsite (Vite/React)",
"cwd": "C:/Users/Shadow/ProjectWebsite",

Copilot uses AI. Check for mistakes.
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"port": 3000
},
{
"name": "word-to-markdown (Vite/React)",
"cwd": "C:/Users/Shadow/word-to-markdown",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"port": 3000
},
{
"name": "stable-diffusion-webui (Gradio + API)",
"cwd": "C:/Users/Shadow/stable-diffusion-webui-master",
"runtimeExecutable": "cmd",
"runtimeArgs": ["/c", "webui-api.bat"],
"port": 7860,
"note": "Starts with --api --listen. LM Studio MCP connects to http://127.0.0.1:7860"
},
{
"name": "safe-agent-bridge (HTTP)",
"cwd": "C:/Users/Shadow/safe-agent-bridge",
"runtimeExecutable": "python",
"runtimeArgs": ["server.py"],
"port": 7777
},
{
"name": "Archive-Agent (FastAPI/uvicorn)",
"cwd": "C:/Users/Shadow/Archive-Agent",
"runtimeExecutable": "python",
"runtimeArgs": ["-m", "archive_agent"],
"port": 8000
},
{
"name": "Xandai-CLI (Flask)",
"cwd": "C:/Users/Shadow/Xandai-CLI",
"runtimeExecutable": "python",
"runtimeArgs": ["app.py"],
"port": 5000
}
]
}
55 changes: 55 additions & 0 deletions Users/Shadow/.lmstudio/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"mcpServers": {
"sd-webui": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\sd-webui\\server.js"
],
"env": {
"SD_WEBUI_URL": "http://127.0.0.1:7860",
"SD_OUTPUT_DIR": "C:\\Users\\Shadow\\stable-diffusion-webui-master\\outputs\\txt2img-images"
}
},
"filesystem": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\filesystem\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"C:\\Users\\Shadow",
"C:\\Users\\Shadow\\Downloads",
"C:\\Users\\Shadow\\Documents",
"C:\\Users\\Shadow\\Desktop",
"C:\\Users\\Shadow\\stable-diffusion-webui-master"
]
},
Comment on lines +13 to +23

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filesystem MCP server is granted access to the entire user home directory (C:\\Users\\Shadow) plus other subfolders. This is a very broad permission set for an LLM tool; consider restricting the allowed roots to only what’s required for this workflow (e.g., the SD WebUI folder and a dedicated workspace/output directory).

Suggested change
"filesystem": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\filesystem\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"C:\\Users\\Shadow",
"C:\\Users\\Shadow\\Downloads",
"C:\\Users\\Shadow\\Documents",
"C:\\Users\\Shadow\\Desktop",
"C:\\Users\\Shadow\\stable-diffusion-webui-master"
]
},
"filesystem": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\filesystem\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"C:\\Users\\Shadow\\stable-diffusion-webui-master",
"C:\\Users\\Shadow\\stable-diffusion-webui-master\\outputs\\txt2img-images",
"C:\\Users\\Shadow\\.lmstudio\\mcp-workspace"
]
},

Copilot uses AI. Check for mistakes.
"memory": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\memory\\node_modules\\@modelcontextprotocol\\server-memory\\dist\\index.js"
]
},
"playwright": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\playwright\\node_modules\\@playwright\\mcp\\cli.js"
]
},
"fetch": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\fetch\\node_modules\\mcp-fetch-server\\dist\\index.js"
]
},
"github": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\github\\node_modules\\@modelcontextprotocol\\server-github\\dist\\index.js"
]
},
"sequential-thinking": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\sequential-thinking\\node_modules\\@modelcontextprotocol\\server-sequential-thinking\\dist\\index.js"
Comment on lines +6 to +51

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config hard-codes machine-specific absolute paths (including a specific Windows username) for both the MCP server entrypoint and SD_OUTPUT_DIR. If this repo is intended to be used on other machines, consider parameterizing these via environment variables (e.g., %USERPROFILE%) or checking in a template file and keeping the real mcp.json untracked.

Suggested change
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\sd-webui\\server.js"
],
"env": {
"SD_WEBUI_URL": "http://127.0.0.1:7860",
"SD_OUTPUT_DIR": "C:\\Users\\Shadow\\stable-diffusion-webui-master\\outputs\\txt2img-images"
}
},
"filesystem": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\filesystem\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"C:\\Users\\Shadow",
"C:\\Users\\Shadow\\Downloads",
"C:\\Users\\Shadow\\Documents",
"C:\\Users\\Shadow\\Desktop",
"C:\\Users\\Shadow\\stable-diffusion-webui-master"
]
},
"memory": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\memory\\node_modules\\@modelcontextprotocol\\server-memory\\dist\\index.js"
]
},
"playwright": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\playwright\\node_modules\\@playwright\\mcp\\cli.js"
]
},
"fetch": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\fetch\\node_modules\\mcp-fetch-server\\dist\\index.js"
]
},
"github": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\github\\node_modules\\@modelcontextprotocol\\server-github\\dist\\index.js"
]
},
"sequential-thinking": {
"command": "node",
"args": [
"C:\\Users\\Shadow\\.lmstudio\\mcp-servers\\sequential-thinking\\node_modules\\@modelcontextprotocol\\server-sequential-thinking\\dist\\index.js"
"%USERPROFILE%\\.lmstudio\\mcp-servers\\sd-webui\\server.js"
],
"env": {
"SD_WEBUI_URL": "http://127.0.0.1:7860",
"SD_OUTPUT_DIR": "%USERPROFILE%\\stable-diffusion-webui-master\\outputs\\txt2img-images"
}
},
"filesystem": {
"command": "node",
"args": [
"%USERPROFILE%\\.lmstudio\\mcp-servers\\filesystem\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"%USERPROFILE%",
"%USERPROFILE%\\Downloads",
"%USERPROFILE%\\Documents",
"%USERPROFILE%\\Desktop",
"%USERPROFILE%\\stable-diffusion-webui-master"
]
},
"memory": {
"command": "node",
"args": [
"%USERPROFILE%\\.lmstudio\\mcp-servers\\memory\\node_modules\\@modelcontextprotocol\\server-memory\\dist\\index.js"
]
},
"playwright": {
"command": "node",
"args": [
"%USERPROFILE%\\.lmstudio\\mcp-servers\\playwright\\node_modules\\@playwright\\mcp\\cli.js"
]
},
"fetch": {
"command": "node",
"args": [
"%USERPROFILE%\\.lmstudio\\mcp-servers\\fetch\\node_modules\\mcp-fetch-server\\dist\\index.js"
]
},
"github": {
"command": "node",
"args": [
"%USERPROFILE%\\.lmstudio\\mcp-servers\\github\\node_modules\\@modelcontextprotocol\\server-github\\dist\\index.js"
]
},
"sequential-thinking": {
"command": "node",
"args": [
"%USERPROFILE%\\.lmstudio\\mcp-servers\\sequential-thinking\\node_modules\\@modelcontextprotocol\\server-sequential-thinking\\dist\\index.js"

Copilot uses AI. Check for mistakes.
]
}
}
Comment on lines +2 to +54

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This configuration file contains multiple hardcoded absolute paths that include a specific username (C:\\Users\\Shadow\\...). This makes the configuration not portable for other developers. It's highly recommended to avoid user-specific absolute paths in version-controlled files. Consider using paths relative to a known location, or a mechanism that allows user-specific overrides (e.g., via environment variables). For example, the application consuming this file could be made to expand an environment variable like %USERPROFILE% on Windows.

}
6 changes: 6 additions & 0 deletions Users/Shadow/stable-diffusion-webui-master/webui-api.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
rem Starts SD WebUI with API enabled — required for LM Studio MCP integration
rem Access WebUI at http://127.0.0.1:7860
rem API docs at http://127.0.0.1:7860/docs

call webui.bat --api --listen
Comment on lines +5 to +6

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--listen typically binds the WebUI to all interfaces (0.0.0.0), which can unintentionally expose the SD WebUI + API to your LAN. If LM Studio connects via 127.0.0.1, consider removing --listen by default, or add a clearly documented opt-in / host-binding option to keep the API local-only.

Suggested change
call webui.bat --api --listen
rem Note: `--listen` is omitted to keep the WebUI/API bound to localhost only.
rem If you intentionally want LAN access, add `--listen` to the command below.
call webui.bat --api

Copilot uses AI. Check for mistakes.

Copilot AI Mar 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call webui.bat ... depends on the current working directory. To make this wrapper resilient when launched from elsewhere (double-clicked, scheduled task, etc.), call webui.bat via %~dp0 (the script directory) and quote the path.

Suggested change
call webui.bat --api --listen
call "%~dp0webui.bat" --api --listen

Copilot uses AI. Check for mistakes.
Loading