Yasin-MCP
Yasin-MCP
面向独立 AI/Agent 的 MCP(Model Context Protocol)访问与集成层,用于 Yasin 生态系统。
使命
Yasin-MCP 通过 MCP 协议提供对 Yasin 生态系统信息的只读、结构化访问(项目注册表、文档、GitHub 仓库状态、运行时诊断),使 AI 代理和 MCP 客户端能够查询生态系统的状态,而无需直接、无限制地访问任何单个仓库或服务。
Related MCP server: ccpedia
状态
仅 Phase 0、Issue #1(仓库引导与工程基线)。 尚不存在 MCP 服务器运行时。尚不存在领域适配器(YASIN-DOCS、GitHub、Yasin-Operations)。本 issue 仅建立包结构、工具链以及安全原语(错误模型、默认拒绝策略、机密信息处理),后续所有工作都将在此基础上构建。
关于架构来源的说明
本项目的原始任务描述指出,YASIN-DOCS 是 Yasin-MCP 的“规范架构与边界”。针对 yusi20006-max/YASIN-DOCS 仓库的直接核验(既包括对“Yasin-MCP”/“MCP”的代码搜索,也包括对 PROJECT_REGISTRY.yaml 和 ECOSYSTEM.md 的直接检查)发现,截至本 issue,该仓库中没有任何地方提到 Yasin-MCP。
这意味着此处实现的架构直接源自本项目自身的 Issue #1–#10 描述(这些描述详细且自洽),而非源自目前尚不存在的 YASIN-DOCS 文档。如果/当 YASIN-DOCS 更新为包含 Yasin-MCP 时,该文档应成为权威来源,本说明应被移除或更新,以反映其当前所在位置。
架构边界
Yasin-MCP 不取代 YASIN-DOCS、Yasin-Core、Yasin-Agent、Yasin-AI、YasinHub、YasinCLI 或 Yasin-Operations。
Phase 1 严格为只读:不进行仓库变更、不进行部署、不进行生命周期变更(启动/停止/重启)、不进行内存变更、不执行任意 shell/命令。
不允许私有的跨仓库导入。集成使用公共 API、SDK、契约或明确的只读适配器。
现有 Yasin 项目不得依赖 Yasin-MCP。
默认拒绝的策略边界(
policies/policy.py)会拒绝任何名称匹配禁止模式(exec、shell、command、request、arbitrary、filesystem、deploy、delete、start_/stop_/restart_)的能力,或任何在 Phase 1 生效期间声明自身为可变(mutating)的能力——该策略在构造时强制执行,而不仅仅在注册时。
包结构
src/yasin_mcp/
server/ MCP server runtime (Issue #4)
protocol/ MCP protocol types/boundary (Issue #2)
capabilities/ capability descriptor + discovery (Issue #2)
tools/ MCP tool implementations (Issue #4+)
resources/ MCP resource implementations (Issue #4+)
adapters/ domain adapters: YASIN-DOCS, GitHub, Yasin-Operations (Issue #5-7)
policies/ deny-by-default policy boundary
errors/ structured error model (McpError + ErrorCategory)
audit/ structured logging, correlation IDs
config/ configuration model, secret handling
version.py package version, EvidenceStatus enum证据模型
报告生态系统状态的响应应使用以下之一标记信息:
CONFIRMED— 直接观察自实时、权威来源TARGET— 已记录的目标/架构,尚未针对运行中的系统进行验证PROPOSED— 建议或计划,尚未在任何地方实现UNRESOLVED— 无法确定;不得作为事实呈现
开发
pip install -e ".[dev]"
pytest
ruff check .
ruff format --check .
mypy src
bandit -q -r srcAvailable Tools
22 toolsyasin_docs_get_adrD
Inputs: name (required). Returns: object
yasin_docs_get_documentD
Inputs: path (required). Returns: object
yasin_docs_get_project_architectureD
Inputs: project (required). Returns: object
yasin_docs_list_adrsD
Inputs: no named parameters. Returns: object
yasin_docs_list_architectureD
Inputs: no named parameters. Returns: object
yasin_docs_list_documentsD
Inputs: no named parameters. Returns: object
yasin_docs_searchD
Inputs: query (required), path_prefix. Returns: object
yasin_github_get_commit_statusD
Inputs: sha (required), owner (required), repository (required). Returns: object
yasin_github_get_issueD
Inputs: owner (required), number (required), repository (required). Returns: object
yasin_github_get_pull_requestD
Inputs: owner (required), number (required), repository (required). Returns: object
yasin_github_get_repositoryD
Inputs: owner (required), repository (required). Returns: object
yasin_github_list_branchesD
Inputs: owner (required), repository (required), limit. Returns: object
yasin_github_list_commitsD
Inputs: owner (required), repository (required), limit. Returns: object
yasin_github_list_issuesD
Inputs: owner (required), repository (required), limit. Returns: object
yasin_github_list_pull_requestsD
Inputs: owner (required), repository (required), limit. Returns: object
yasin_github_list_releasesD
Inputs: owner (required), repository (required), limit. Returns: object
yasin_github_list_workflow_runsD
Inputs: owner (required), repository (required), limit. Returns: object
yasin_gov_apply_markD
Inputs: mark. Returns: object
yasin_gov_ping_low_riskD
Inputs: no named parameters. Returns: object
yasin_registry_get_projectD
Inputs: name (required). Returns: object
yasin_registry_list_dependenciesD
Inputs: name (required). Returns: object
yasin_registry_list_projectsD
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
The domain prefixes make docs, GitHub, registry, and governance tools easy to separate, and most operations target a clear resource. However, yasin_docs_list_architecture and yasin_docs_get_project_architecture are easy to confuse, and yasin_docs_search overlaps somewhat with yasin_docs_list_documents.
Nearly all tools follow a yasin_<domain>_<verb>_<resource> pattern with consistent list_/get_ prefixes. Exceptions like yasin_docs_search, yasin_gov_ping_low_risk, and yasin_gov_apply_mark break the verb convention, though the domain prefixes keep the overall scheme readable.
At 22 tools, the server sits in the heavy range and spans four distinct domains, making the surface feel larger than necessary. It is not extreme, but several similar read-only GitHub and docs tools make the count feel slightly bloated.
The server covers a broad read-only surface for docs, GitHub, registry, and governance, but it lacks write/update/delete operations and some get-by-id counterparts for list-only resources like commits and workflow runs. This leaves notable gaps if the server is intended to support end-to-end documentation or repository workflows.
Maintenance
Related MCP Connectors
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Read-only discovery of ChatGXT's integration catalog and public MCP capabilities.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that provides AI agents with live, structured workspace awareness, including project listing, git status, and budgeted context packing, minimizing token usage.7 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query the Canton Network ecosystem through a unified MCP endpoint, providing live data from forums, GitHub, docs, CIPs, and more with read-only access.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceServes local and remote repositories over MCP, enabling AI models to search and retrieve code snippets, file contents, and repository structures on demand.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to observe local codebases in real time through a secure, read-only MCP interface, providing workspace snapshots, git history and diffs, cross-project search, and project reality coverage without write access.MIT