Token导航 LogoToken导航TokenDH.com
MCP S2xd logo
运维云端未说明官方级别未说明来源级核验

MCP S2xd

MCP Server

MCP-S2xD是一个生产就绪的AI与人类内容来源检测服务器,提供多种启发式分析和统计检测功能,适用于内容审核和作者验证。

工具数

12

提示词数

0

GitHub Stars

3

资源数

0
Go云端部署Docker

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

AdhiDevX369

提供方

AdhiDevX369

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

🔍 MCP-S2xD

人工智能与人类内容来源服务器

](https://go.dev/) ![MCP Compatible](https://modelcontextprotocol.io/) ![JSON-RPC](https://www.jsonrpc.org/) ![License](LICENSE) ![PRs Welcome](CONTRIBUTING.md)

Production-ready MCP server for detecting AI-generated vs human-written content

特性快速开始api参考工具配置

______________________________________________________________________

✨ 特性

🛡️ 安全第一

  • 速率限制(令牌桶)
  • API密钥验证
  • 请求大小限制
  • 安全标头(CSP、XSS、CORS)
  • 平滑关闭

📊 可观测性

  • 结构化JSON日志记录(slog)
  • 请求ID跟踪
  • 指标端点
  • 请求持续时间跟踪
  • 工具调用统计

🔧 生产就绪

  • 基于环境的配置
  • 健康和准备状态探头
  • 恐慌恢复中间件
  • 请求超时
  • SQLite持久性(可选)

🤖 AI检测

  • 多信号启发式分析
  • 统计检测 (熵,n元语法,突发性,Zipf)
  • 风格分析
  • 代码来源检测
  • 批量分析
  • 内容指纹识别

______________________________________________________________________

🚀 快速开始

# Clone and run
git clone https://github.com/AdhiDevX369/MCP-S2xD.git
cd MCP-S2xD
go mod tidy
go run ./cmd/server

服务器启动时间 http://localhost:3000

验证安装

# Health check
curl http://localhost:3000/health

# List available tools
curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

______________________________________________________________________

📡 api参考

端点

端点方法描述
/healthGET健康检查
/readyGET准备状态探测
/metricsGET服务器指标(请求、错误、工具调用)
/mcpPOSTJSON-RPC 2.0 MCP端点

MCP方法

方法说明
tools/list列出所有具有模式的可用工具
tools/call使用参数执行工具

示例:分析内容来源

// Request
{
  "jsonrpc": "2.0",
  "id": "req-42",
  "method": "tools/call",
  "params": {
    "tool": "analyze_origin",
    "input": {
      "text": "Furthermore, it is important to note that the implementation follows best practices.",
      "source_hint": "documentation"
    }
  }
}

// Response
{
  "jsonrpc": "2.0",
  "id": "req-42",
  "result": {
    "output": {
      "origin": "ai_system",
      "confidence": 0.85,
      "explanation": "AI indicators detected: [hedging_language, uniform_sentence_length]",
      "signals": ["hedging_language", "uniform_sentence_length"],
      "word_count": 12,
      "timestamp": "2025-11-26T09:00:00Z"
    }
  }
}

示例:统计检测

// Request - Comprehensive statistical analysis
{
  "jsonrpc": "2.0",
  "id": "stat-1",
  "method": "tools/call",
  "params": {
    "tool": "statistical_detect",
    "arguments": {
      "input": {
        "text": "It is important to note that in the evolving landscape of AI..."
      }
    }
  }
}

// Response
{
  "jsonrpc": "2.0",
  "id": "stat-1",
  "result": {
    "output": {
      "origin": "ai_system",
      "confidence": 0.78,
      "weighted_score": 0.42,
      "signals": ["ai_phrases", "uniform_structure", "zipf_deviation"],
      "entropy_result": { "average_entropy": 3.2, "origin": "ai_system" },
      "ngram_result": { "ai_phrases_found": ["it is important to note"], "origin": "ai_system" },
      "burstiness_result": { "burstiness_score": 0.18, "origin": "ai_system" },
      "zipf_result": { "r_squared": 0.72, "origin": "ai_system" }
    }
  }
}

示例:熵分析

// Request
{
  "jsonrpc": "2.0",
  "id": "ent-1",
  "method": "tools/call",
  "params": {
    "tool": "entropy_analyze",
    "arguments": {
      "input": { "text": "Your text to analyze..." }
    }
  }
}

// Response
{
  "jsonrpc": "2.0",
  "id": "ent-1",
  "result": {
    "output": {
      "origin": "human",
      "confidence": 0.72,
      "char_entropy": 4.23,
      "word_entropy": 4.56,
      "bigram_entropy": 4.89,
      "average_entropy": 4.56,
      "explanation": "High entropy indicates natural human variation."
    }
  }
}

______________________________________________________________________

🧰 工具目录

岩芯检测工具

工具描述用例
analyze_origin深度人工智能/人类检测,采用多种启发式方法内容审核、作者验证
batch_analyze分析多个样本,获取汇总统计数据数据集分析,批量处理
content_fingerprintSHA256哈希+结构哈希来源跟踪、重复数据删除
compare_texts风格相似性和来源比较抄袭检测、作者匹配
code_origin专业代码分析代码审查、AI辅助代码检测
style_profile生成作者身份指标作家分析、风格分析

统计检测工具

工具描述关键指标
entropy_analyze计算文本熵模式字符、单词、二元组熵
ngram_analyze检测AI短语和重复模式AI短语检测,n元语法频率
burstiness_analyze测量文本一致性句子/单词长度差异
zipf_analyze检查自然语言分布Zipf的法律合规性,R²评分
statistical_detect所有统计方法的集合加权多信号分析

实用工具

工具说明
dummy_echo用于测试的回声输入

检测信号

Statistical Signals              Heuristic Signals
─────────────────────────────    ─────────────────────────────
• Low entropy (repetitive)       • Uniform sentence length
• AI-typical phrases             • Transition word density
• Uniform burstiness             • Hedging language
• Zipf's law deviation           • Structured lists
• N-gram repetition              • Explicit AI mentions

Human Indicators
─────────────────────────────
• High entropy (varied)
• Natural burstiness
• Zipf-compliant distribution
• Common typos
• Informal contractions

统计方法深潜

熵分析

使用香农熵在字符、单词和二元组级别测量信息密度。

  • 低熵(\4.5) → 自然变化→ 人类可能

N-gram分析

检测过度使用的AI短语和重复模式。

  • 扫描40多个已知的人工智能典型短语(“重要的是要注意”、“总结”等)
  • 测量n克重复率
  • 检测综合评分

爆裂性分析

使用变异系数衡量句子/单词长度的差异。

  • 爆炸性低(\0.5) → 自然变化→ 人类可能

齐夫定律分析

自然语言遵循Zipf分布(词频≠1/秩)。

  • 在对数频率图上计算线性回归
  • R²\0.9 → 符合天然Zipf标准→ 人类可能

______________________________________________________________________

⚙️ 配置

通过环境变量进行的所有设置:

# Server
SERVER_PORT=:3000
SERVER_READ_TIMEOUT=10s
SERVER_WRITE_TIMEOUT=30s
SERVER_SHUTDOWN_TIMEOUT=15s

# Security
SECURITY_API_KEY_ENABLED=false
SECURITY_API_KEY=your-secret-key
SECURITY_RATE_LIMIT_RPS=100
SECURITY_MAX_REQUEST_SIZE=1048576

# Logging
LOG_LEVEL=info          # debug, info, warn, error
LOG_FORMAT=json         # json, text

# Database (optional)
DATABASE_PATH=data/mcp.db

.env.example 供充分参考。

______________________________________________________________________

📁 项目结构

mcp-s2xd/
├── cmd/server/          # Entry point
├── internal/
│   ├── config/          # Environment configuration
│   ├── httpserver/      # HTTP server with middleware
│   ├── logger/          # Structured logging (slog)
│   ├── mcp/             # JSON-RPC handler
│   ├── metrics/         # Request & tool metrics
│   ├── middleware/      # Security middleware stack
│   ├── rpcerror/        # Centralized error types
│   ├── storage/         # Attestation persistence
│   └── tools/           # MCP tool implementations
├── .env.example
├── go.mod
└── README.md

______________________________________________________________________

🔒 安全中间件栈

Request → Rate Limit → API Key Auth → Max Body Size → CORS → Security Headers → Handler
中间件用途
Recovery恐慌恢复,防止撞车
RequestIDX-Request-ID标头跟踪
Logging结构化请求日志记录
RateLimit令牌桶速率限制
APIKeyAuth可选API密钥验证
MaxBodySize请求大小限制
CORS跨源资源共享
SecurityHeadersCSP、XSS、帧选项
Timeout请求上下文超时

______________________________________________________________________

📈 指标

curl http://localhost:3000/metrics
{
  "uptime_seconds": 3600,
  "total_requests": 1250,
  "total_errors": 3,
  "avg_duration_ms": 2.5,
  "tool_calls": {
    "analyze_origin": 800,
    "code_origin": 300,
    "compare_texts": 150
  }
}

______________________________________________________________________

🤝 贡献

  1. 复刻仓库
  2. 创建要素分支: git checkout -b feature/amazing-feature
  3. 提交更改: git commit -m 'Add amazing feature'
  4. 推送到分支: git push origin feature/amazing-feature
  5. 打开拉取请求

______________________________________________________________________

📚 资源

协议规范

资源描述
模型上下文协议MCP官方规范
MCP TypeScript SDK参考实施
JSON-RPC 2.0传输协议规范

人工智能检测研究

论文/资源主题
GPTZero研究困惑和突发检测
检测GPT零样本机器生成文本检测
NLP中的齐夫定律自然语言频率分布
[香农熵]()信息论基础

Go文档

资源描述
Go官方文档语言参考
slog包装结构化日志记录
net/httpHTTP服务器包

______________________________________________________________________

内置于❤️ 值得信赖的人工智能生态系统

](https://github.com/AdhiDevX369) ![Website](https://adithyabandara.com)

目录标签

目录标签

Go云端部署DockerAI检测本地部署内容审核统计分析作者验证文本分析

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

12

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明api-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP