Token导航 LogoToken导航

MCP Server · AI代理

AeyeGuard MCP

AeyeGuard MCP服务是一个基于qwen/qwen3-coder-30b语言模型的自动化代码安全分析工具,支持多种编程语言并提供全面的安全规则检测。

stdio官方级别未说明来源级核验工具 1
开发工具集成PythonClaude

快速开始

作者 / 组织
ettoremessina
提供方
ettoremessina
运行时
Python

工具数量

1

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

AeyeGuard MCP 属于AI代理类 MCP Server,公开资料标注 1 个工具,通过stdio 本地进程接入,适配 Claude,有可以直接复制的安装命令;接入前先确认权限范围。

分类

AI代理

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python3 -m venv venv

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 1 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

AeyeGuard MCP Service

A Model Context Protocol (MCP) service that performs automated security analysis on source code using LMStudio with the qwen/qwen3-coder-30b language model.

Overview

This service automatically detects programming languages and performs comprehensive security analysis using specialized analyzers for each supported language. It exposes a standard HTTP interface for integration with IDEs and development tools.

Features

  • Automatic Language Detection: Supports file extension and pattern-based detection
  • Multiple Language Support: C#, React TypeScript, React JavaScript, Java
  • Comprehensive Security Rules: 20-25+ security rules per language aligned with OWASP Top 10
  • LLM-Powered Analysis: Uses qwen/qwen3-coder-30b for intelligent code analysis
  • Structured Results: Returns detailed security issues with severity, remediation, and references
  • Health Monitoring: Built-in health check endpoints
  • Extensible Architecture: Easy to add new language analyzers

Supported Languages

C# (.cs)

Security rules include:

  • SQL Injection
  • Command Injection
  • Path Traversal
  • Insecure Deserialization
  • Weak Cryptography
  • Hardcoded Secrets
  • And 14+ more security rules

React TypeScript (.tsx, .ts)

Security rules include:

  • XSS Prevention
  • Insecure State Management
  • Props Validation
  • API Security
  • Type Safety Issues
  • Authentication & Authorization
  • And more

React JavaScript (.jsx, .js)

Security rules include:

  • XSS Prevention
  • Insecure State Management
  • API Security
  • Unsafe Code Execution
  • Input Validation
  • And more

Java (.java)

Security rules include:

  • SQL Injection
  • Command Injection
  • Path Traversal
  • XXE (XML External Entity)
  • Insecure Deserialization
  • LDAP Injection
  • JNDI Injection
  • Weak Cryptography
  • Hardcoded Credentials
  • Resource Leaks
  • Unsafe Reflection
  • SSRF (Server-Side Request Forgery)
  • And 13+ more security rules

Quick Start

Prerequisites Checklist

  • [ ] Python 3.8 or higher installed
  • [ ] LMStudio installed and running
  • [ ] qwen/qwen3-coder-30b model loaded in LMStudio
  • [ ] LMStudio API server running on http://localhost:1234

Installation

Option 1: Automated Setup (Recommended)

./setup_and_run.sh

This script will create .env, set up virtual environment, install dependencies, and start the service.

Option 2: Manual Setup

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # On macOS/Linux
# OR
venv\Scripts\activate     # On Windows

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env if needed (defaults work for standard LMStudio setup)

# Verify installation
python tests/test_installation.py

# Run the service
python -m src.AeyeGuard_mcp

Configuration

Edit the .env file to configure the service:

# LMStudio Configuration
LMSTUDIO_BASE_URL=http://localhost:1234
LMSTUDIO_MODEL=qwen/qwen3-coder-30b
LMSTUDIO_API_KEY=

# MCP Server Configuration
MCP_SERVER_NAME=aeyeguard_mcp
MCP_SERVER_VERSION=1.0.0
MCP_HOST=0.0.0.0
MCP_PORT=8000

Running the Service

First time:

./setup_and_run.sh

Subsequent runs:

./run_service.sh

Or run directly:

python -m src.AeyeGuard_mcp

The service will start an HTTP server on http://0.0.0.0:8000 (configurable via .env).

Stop service: Press Ctrl+C

HTTP API Endpoints

The service exposes RESTful HTTP endpoints:

MethodEndpointDescription
GET/Service information
GET/healthHealth check
POST/analyzeAnalyze code for vulnerabilities
GET/languagesList supported languages
GET/mcp/toolsMCP tool definitions

Example: Health Check

curl http://localhost:8000/health

Example: Analyze Code

curl -X POST http://localhost:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "code": "public void GetUser(string userId) { var sql = \"SELECT * FROM Users WHERE Id = '\'' + userId + '\''\"; }",
    "file_path": "UserController.cs",
    "language": "auto"
  }'

Request Body:

{
  "code": "source code to analyze",
  "file_path": "optional/path/to/file.cs",
  "language": "auto"
}

Supported language values: auto, csharp, react_typescript, react_javascript, java

Example: List Languages

curl http://localhost:8000/languages

Testing

Verify Installation

python tests/test_installation.py

Expected output:

✓ All tests passed! Installation is complete.

Test HTTP Endpoints

# Check service is running
curl http://localhost:8000/

# Check health
curl http://localhost:8000/health

# List supported languages
curl http://localhost:8000/languages

# Analyze code (requires LMStudio)
curl -X POST http://localhost:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "code": "var sql = \"SELECT * FROM users WHERE id = \" + userId;",
    "file_path": "test.cs",
    "language": "auto"
  }'

Run Automated Tests

# Service must be running in another terminal
python tests/test_api.py

Run Usage Examples

python tests/example_usage.py

This demonstrates language detection, health checks, and code analysis (requires LMStudio running).

Architecture

Core Components

  1. MCP Service (src/AeyeGuard_mcp.py)

- Implements MCP protocol interface - FastAPI application with HTTP endpoints - Handles tool registration and execution

  1. Language Detection (src/services/language_detector.py)

- Extension-based detection (primary) - Pattern-based detection (fallback)

  1. LLM Service (src/services/llm_service.py)

- LMStudio integration via OpenAI-compatible API - Handles prompt engineering and response parsing

  1. Security Analyzers (src/analyzers/)

- Base analyzer with common functionality - Language-specific analyzers with security rules

Data Models

Located in src/models/data_models.py:

  • SecurityIssue: Individual vulnerability details
  • AnalysisRequest: Input for analysis
  • AnalysisResult: Analysis output with issues and metadata
  • LanguageType: Supported language enumeration

Extending the Service

Adding a New Language

  1. Add language to LanguageType enum in src/models/data_models.py
  2. Create analyzer class inheriting from BaseSecurityAnalyzer in src/analyzers/
  3. Implement get_language_type() and get_security_rules_prompt() methods
  4. Update EXTENSION_MAP in src/services/language_detector.py
  5. Register analyzer in src/AeyeGuard_mcp.py __init__() method

Integration

The HTTP API can be integrated with:

  • VSCode extensions
  • JetBrains IDE plugins
  • Custom development tools
  • CI/CD pipelines
  • Any HTTP-capable client

Security Considerations

  • Code is preprocessed to remove comments before LLM analysis
  • No code is stored or transmitted beyond LMStudio
  • LLM responses are validated and sanitized
  • Structured output format prevents injection attacks
  • Health checks ensure service availability

Error Handling

The service implements graceful degradation:

  • LLM unavailability returns health status
  • Language detection failures fall back to pattern matching
  • Analysis errors return partial results with error metadata
  • Invalid input produces clear error messages

Troubleshooting

LMStudio Not Connected

Error: LLM analysis failed: Connection refused

Solution:

  1. Start LMStudio application
  2. Load the qwen/qwen3-coder-30b model
  3. Enable API server (usually on port 1234)
  4. Verify: curl http://localhost:1234/v1/models
  5. Check LMSTUDIO_BASE_URL in .env matches LMStudio port

Import Errors

Error: ModuleNotFoundError

Solution:

pip install -r requirements.txt

Permission Denied on Scripts

Error: Permission denied: ./run_service.sh

Solution:

chmod +x setup_and_run.sh run_service.sh tests/*.py

Port Already in Use

Error: [Errno 48] Address already in use

Solution:

lsof -ti:8000 | xargs kill -9
# OR change MCP_PORT in .env

Virtual Environment Issues

Error: venv not found

Solution:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Empty Analysis Results

If /analyze returns no security issues for clearly vulnerable code:

  • Verify LMStudio is running with model loaded
  • Check language detection: curl http://localhost:8000/languages
  • Review service logs for LLM JSON parsing errors
  • Remember: code preprocessing strips comments

Success Indicators

You'll know everything is working when:

✓ Installation verification passes all tests ✓ Health check shows "status": "healthy" ✓ Example usage runs without errors ✓ LMStudio connection is established ✓ Service responds to MCP tool calls

Quick Reference

CommandPurpose
./setup_and_run.shFirst-time setup and run
./run_service.shStart the service (quick)
python tests/test_installation.pyVerify installation
python tests/test_api.pyTest all endpoints
python tests/example_usage.pyRun examples
python -m src.AeyeGuard_mcpRun service directly

License

This project is licensed under the MIT License - see the LICENSE file for details.

Additional Documentation

工具与能力

工具数量

1

资源数量

0

提示词数量

0

能力标签

代码安全分析Python本地部署自动化检测多语言支持LLM集成开发工具集成

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

多步任务编排

把拆解、检索、执行串成一条链,模型按步骤调用工具。

长期上下文

把会话、笔记和知识放到外部存储,换个会话还能接着做。

接自有流程

把内部系统和模型连起来,让助手调用已有的工作流。

选择建议

值得选的地方

  • 只提供 1 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
AeyeGuard MCP

MCP World · 本页

1stdio有1 个2026-05-17
Everything Claude Code

MCP World

0stdio有1 个2026-05-17
Filesystem 560c4363

MCP World

13未说明未标注2 个2026-05-17
Time 7365cb6d

MCP.so

2SSE有2 个2026-05-17
Server Everything (everything)

MCP World

11stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

AeyeGuard MCP 怎么安装?

公开资料给出的安装命令是 python3 -m venv venv,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

AeyeGuard MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

AeyeGuard MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

AeyeGuard MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

AeyeGuard MCP 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP