Skip to content

Commit b6431ae

Browse files
committed
update: 系统性升级优化
1 parent 7e3b60c commit b6431ae

57 files changed

Lines changed: 3149 additions & 61 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ docker/.env
1313
.vs_code/*
1414
.mypy_cache/*
1515
.pytest_cache/*
16+
tests/*
1617
.ruff_cache/*
1718
.aider*
1819
CLAUDE.md

Dockerfile

100755100644
File mode changed.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**[English](./README_EN.md)** | **中文**
44

5-
[![License](https://img.shields.io/github/license/safurrier/mcp-filesystem.svg)](LICENSE)
5+
[![License](assets/license-badge.svg)](LICENSE)
66

77
🚀 **只需一个 MCP,就能实现你的完整 Agent 能力!**
88

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**English** | **[中文](./README.md)**
44

5-
[![License](https://img.shields.io/github/license/safurrier/mcp-filesystem.svg)](LICENSE)
5+
[![License](assets/license-badge.svg)](LICENSE)
66

77
🚀 **One MCP, Complete Agent Capabilities!**
88

assets/license-badge.svg

Lines changed: 21 additions & 0 deletions
Loading

config.example.json

100755100644
Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"enabled": true,
1414
"network_isolated": true,
1515
"limits": {
16-
"max_memory_mb": 512,
16+
"max_memory_mb": 2048,
1717
"max_cpu_seconds": 60,
1818
"max_file_size_mb": 100,
1919
"max_processes": 32,
@@ -38,6 +38,31 @@
3838
"max_table_chars": 20000,
3939
"max_doc_chars": 20000
4040
},
41+
"lint": {
42+
"enabled": true,
43+
"linters": {
44+
"python": {
45+
"enabled": true,
46+
"use_pyflakes": true,
47+
"_comment": "Python语法检查使用ast(零依赖),代码质量检查使用pyflakes(可选)"
48+
},
49+
"json": {
50+
"enabled": true,
51+
"strict": true,
52+
"_comment": "JSON格式验证使用json.loads(零依赖)"
53+
},
54+
"html": {
55+
"enabled": true,
56+
"check_xss": true,
57+
"_comment": "HTML结构验证和XSS安全检查"
58+
},
59+
"svg": {
60+
"enabled": true,
61+
"_comment": "SVG的XML格式验证(零依赖)"
62+
}
63+
},
64+
"_comment": "文件Lint校验配置。校验结果不会阻止文件写入,而是作为反馈信息返回给智能体。"
65+
},
4166
"kb": {
4267
"base_url": "http://localhost:3000",
4368
"token": "your-secret-token-here",

docker-compose.yml

100755100644
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ services:
3333
# 代码挂载 - git pull 后 restart 生效
3434
- ./mcp_filesystem:/app/mcp_filesystem:ro
3535
- ./excel_templates:/app/excel_templates:ro
36+
- ./static:/app/static:ro
37+
- ./portal:/app/portal:ro
3638
- ./pyproject.toml:/app/pyproject.toml:ro
39+
# 时区配置
40+
- /etc/localtime:/etc/localtime:ro
41+
- /etc/timezone:/etc/timezone:ro
3742

3843
environment:
3944
- FASTMCP_HOST=0.0.0.0

excel_templates/templates_example.json

100755100644
File mode changed.

mcp_filesystem/__init__.py

100755100644
File mode changed.

mcp_filesystem/__main__.py

100755100644
File mode changed.

0 commit comments

Comments
 (0)