Skip to content

Commit fe33cee

Browse files
committed
feat: enhance configuration management and improve session variable handling
## Configuration Updates - **Add .mcp.json and .env files** to .gitignore to prevent sensitive data exposure - **Update MEMORY_FILE_PATH** in .mcp.json to reflect new file location - **Modify code-audit command** in .mcp.json to include XAI_API_KEY in environment variables ## Session Variable Improvements - **Refactor define_variable method** to use I32 type for session variables - **Update tests** to reflect changes in variable type handling ## Documentation - **Add comments** to clarify safety and usage in memory management functions These changes improve security by managing sensitive configurations and enhance the session variable handling for better type consistency.
1 parent 2114705 commit fe33cee

21 files changed

Lines changed: 5890 additions & 16 deletions

.claude/commands/clean.md

Lines changed: 712 additions & 0 deletions
Large diffs are not rendered by default.

.claude/commands/docs.md

Lines changed: 785 additions & 0 deletions
Large diffs are not rendered by default.

.claude/commands/grammar.md

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

.claude/commands/mcp.md

Lines changed: 680 additions & 0 deletions
Large diffs are not rendered by default.

.claude/commands/refactor.md

Lines changed: 686 additions & 0 deletions
Large diffs are not rendered by default.

.claude/commands/status.md

Lines changed: 575 additions & 0 deletions
Large diffs are not rendered by default.

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Environment variables for Script language development
2+
# Copy this file to .env and fill in your actual values
3+
4+
# XAI API key for code audit MCP server
5+
XAI_API_KEY=your_xai_api_key_here
6+
7+
# Optional: Memory file path for MCP memory server
8+
MEMORY_FILE_PATH=/home/moika/Documents/code/script/kb/memory.json

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@ Thumbs.db
5858
# VS Code Extension (moved to separate repo)
5959
/vscode-script-extension/
6060
simple_perf_test
61+
62+
# MCP configuration (contains API keys)
63+
.mcp.json
64+
*.mcp.json
65+
66+
# Environment files (contain secrets)
67+
.env
68+
.env.local
69+
.env.*.local

.mcp.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@modelcontextprotocol/server-memory"
1717
],
1818
"env": {
19-
"MEMORY_FILE_PATH": "./kb/memory.json"
19+
"MEMORY_FILE_PATH": "/home/moika/Documents/code/script/kb/memory.json"
2020
}
2121
},
2222
"sequential-thinking": {
@@ -28,12 +28,14 @@
2828
"env": {}
2929
},
3030
"code-audit": {
31-
"command": "code-audit",
31+
"command": "code-audit-mcp",
3232
"args": [
3333
"start",
3434
"--stdio"
3535
],
36-
"env": {}
36+
"env": {
37+
"XAI_API_KEY": "${XAI_API_KEY}"
38+
}
3739
},
3840
"kb-mcp": {
3941
"command": "npx",

.mcp.json.template

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"mcpServers": {
3+
"filesystem": {
4+
"command": "npx",
5+
"args": [
6+
"-y",
7+
"@modelcontextprotocol/server-filesystem",
8+
"."
9+
],
10+
"env": {}
11+
},
12+
"memory": {
13+
"command": "npx",
14+
"args": [
15+
"-y",
16+
"@modelcontextprotocol/server-memory"
17+
],
18+
"env": {
19+
"MEMORY_FILE_PATH": "/home/moika/Documents/code/script/kb/memory.json"
20+
}
21+
},
22+
"sequential-thinking": {
23+
"command": "npx",
24+
"args": [
25+
"-y",
26+
"@modelcontextprotocol/server-sequential-thinking"
27+
],
28+
"env": {}
29+
},
30+
"code-audit": {
31+
"command": "code-audit-mcp",
32+
"args": [
33+
"start",
34+
"--stdio"
35+
],
36+
"env": {
37+
"XAI_API_KEY": "${XAI_API_KEY}"
38+
}
39+
},
40+
"kb-mcp": {
41+
"command": "npx",
42+
"args": [
43+
"@moikas/kb-mcp",
44+
"serve"
45+
],
46+
"env": {}
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)