@friday-ai-codes/mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@friday-ai-codes/mcp search for code related to error handling and create a coding plan"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@friday-ai-codes/mcp
Friday AI 的 MCP(Model Context Protocol)server。把 Friday 的代码索引、Graph RAG、编码计划与 PR / MR 工具暴露给 Cursor / Claude Code / Codex 等 AI 编码助手。
配置(一条命令)
在 Friday Web 控制台「个人资料 → 访问令牌」创建 PAT(明文只显示一次),然后:
npx -y @friday-ai-codes/mcp setup交互式中文向导一条龙:凭证问答 → 自动注册进本机 agent → 连通性测速(延迟 ms 高亮)→ 能力演示(随机介绍一个已索引仓库)。
脚本 / CI 场景用命令式 init:
npx -y @friday-ai-codes/mcp init --base-url https://friday.example.com --token <你的访问令牌>配置写入 ~/.friday/config.json(权限 0600)。也可以用环境变量 FRIDAY_BASE_URL / FRIDAY_ACCESS_TOKEN 覆盖。
Related MCP server: codesight
注册到 IDE
一条命令,自动探测已安装的 agent 并幂等注册:
npx -y @friday-ai-codes/mcp registerCursor:写入
~/.cursor/mcp.json(--project时写./.cursor/mcp.json)Claude Code:执行
claude mcp add friday -- npx -y @friday-ai-codes/mcpCodex:追加
[mcp_servers.friday]到~/.codex/config.toml
只新增 friday 条目,不覆盖既有配置;已注册则跳过。用 --agent cursor|claude-code|codex(可重复)指定目标,--all 注册全部。
命令
命令 | 作用 |
| 启动 stdio MCP server |
| 交互式中文向导:凭证 → 注册 → 测速 → 能力演示 |
| 写入配置(带 |
| 把 friday MCP server 注册进 agent 配置(幂等) |
| 检查配置、注册状态与连通性测速(不回显令牌) |
工具集
23 个工具,对应 Friday /api/mcp/tools/* 端点:仓库发现(route_repositories)、Graph RAG 检索(search_rag_chunks、find_related_chunks)、精确文本检索(grep_repository)、仓库浏览(get_repository / list_repository_files / get_repository_file)、分析与计划(analyze_repository / create_coding_plan / improve_coding_plan)、执行与 MR(execute_coding_plan / get_coding_execution / summarize_branch / create_merge_request)、飞书工作项(get_feishu_work_item_context / create_feishu_technical_plan / create_work_item_repo_tasks / execute_work_item_repo_tasks)、学习案例(create_learning_case / search_learning_cases)、交付知识图谱(search_delivery_knowledge / get_entity_timeline / get_related_entities)。
每个工具都带 MCP 标准 annotations(中文 title 按「阶段 · 动作」分组 + readOnlyHint / idempotentHint / openWorldHint 行为提示)。
配合 Friday AI skills(4 个技能:friday / friday-code / friday-feishu / friday-memory)使用效果最佳,一键全装:
npx @friday-ai-codes/skillsLicense
MIT
Available Tools
23 toolsanalyze_repository分析 · 结构化仓库分析A
对仓库做结构化分析(架构、风险、测试建议),可带 focus 聚焦特定主题,返回 analysis_id 供 create_coding_plan 复用证据。
Inputs: repository_id (required), focus, branch, max_files, +1 more.
create_coding_plan计划 · 生成编码计划A
根据需求与代码证据生成结构化编码计划(分步骤、含风险与测试建议),返回 plan_id / version_id。执行编码前的必经步骤。
Inputs: requirement (required), repository_id (required), branch, max_steps, +2 more.
create_feishu_technical_plan飞书 · 生成技术方案并回写A
基于工作项上下文与代码证据生成技术方案,可写回飞书文档与评论。返回 technical_plan_id 供建任务 / 执行。
Inputs: context_id (required), title, repo_hints, folder_token, +5 more.
create_learning_case记忆 · 沉淀学习案例A
把一次技术方案 / 执行的经验沉淀为学习案例(根因、解法、测试),供未来相似需求检索复用。
Inputs: technical_plan_id (required), tests, outcome, root_cause, +1 more.
create_merge_request交付 · 创建 PR/MRA
在 GitHub / GitLab 创建 PR / MR。提供 execution_id,或同时提供 repository_id + source_branch + target_branch。title/description 省略时复用 summarize_branch 草稿。
Inputs: title, description, execution_id, repository_id, +4 more.
create_work_item_repo_tasks飞书 · 拆解多仓任务矩阵A
把技术方案拆解为按仓库划分的任务矩阵(跨仓需求拆分)。
Inputs: technical_plan_id (required).
execute_coding_plan执行 · 运行编码计划(长耗时,需用户确认)A
在 Friday Runner 的隔离容器中执行已确认的编码计划(Claude Code 实际写代码、跑测试、推分支)。耗时长(默认超时 1 小时),返回 execution_id 供轮询。执行前必须先经用户确认计划内容。
Inputs: plan_id (required), version_id, branch_name, target_branch, +2 more.
execute_work_item_repo_tasks飞书 · 批量执行与回写(长耗时,需用户确认)A
批量执行技术方案下的仓库任务(派发编码、建 MR、回写飞书)。technical_plan_id 与 task_ids 至少提供一个。耗时长,执行前必须经用户确认。
Inputs: dispatch, task_ids, write_back, create_missing, +4 more.
get_coding_execution执行 · 查询执行状态与产物ARead-onlyIdempotent
查询编码执行状态与产物(status / commit_sha / file_changes / test_results / last_diff / runner_logs / recovery_state)。执行后轮询与失败诊断用。
Inputs: execution_id (required).
get_entity_timeline知识 · 实体版本时间线ARead-onlyIdempotent
查询知识实体的完整迭代轨迹:方案 v1→vN 与各次编码按时间排序的时间线(纯版本链,不依赖向量库)。
Inputs: entity_id (required), as_of, include_superseded.
get_feishu_work_item_context飞书 · 聚合工作项上下文ARead-onlyIdempotent
聚合飞书工作项上下文:字段、关系、关联文档与评论,返回 context_id 供 create_feishu_technical_plan 使用。project_id 与 project_key 至少提供一个。
Inputs: work_item_id (required), fields, project_id, project_key, +2 more.
get_repository仓库 · 元数据与索引状态ARead-onlyIdempotent
查询单个仓库的元数据与索引状态(默认分支、索引健康度等)。
Inputs: repository_id (required).
get_repository_file仓库 · 读取文件ARead-onlyIdempotent
读取仓库内单个文件内容(支持行范围截取)。优先从本地 git 镜像读取完整文件(source="git",行号精确),镜像不可用时回退索引 chunk 拼接(source="index")。
Inputs: file_path (required), repository_id (required), branch, end_line, +2 more.
grep_repository分析 · 精确文本检索(grep)ARead-onlyIdempotent
在仓库本地 git 镜像快照上做精确文本检索(ripgrep / git grep,确定性全量结果)。与 search_rag_chunks 的语义召回互补:「穷举所有出现位置」类问题(字面量 / 符号引用 / 跳转路径枚举)必须用这个,语义检索保证不了全量。默认单仓(repository_id);跨仓需显式 opt-in(repository_ids 数组或 all_repositories=true),结果按仓库分组。默认锁定到与 RAG 索引一致的 commit 快照(matches_index=true)。建议先用 output_mode=files_only 看命中分布,再用 content + context_lines 取关键上下文。
Inputs: pattern (required), paths, regex, branch, +11 more.
improve_coding_plan计划 · 修订编码计划A
根据反馈修订既有编码计划,生成新版本(返回新 version_id 与 change_summary / risk_delta)。
Inputs: plan_id (required), feedback (required), max_steps, context_chunks.
list_repository_files仓库 · 目录浏览ARead-onlyIdempotent
列出仓库目录结构(支持分页与递归)。用于浏览项目布局。
Inputs: repository_id (required), page, path, branch, +2 more.
route_repositories仓库 · 路由发现ARead-onlyIdempotent
根据需求描述路由到最相关的已索引仓库,返回排序后的候选仓库与索引健康度。仓库发现的第一步。
Inputs: query (required), top_k.
search_delivery_knowledge知识 · 交付知识检索ARead-onlyIdempotent
在交付知识图谱中检索相似历史需求 / 方案 / 代码变更(向量召回 + 图扩散 + 时间衰减),返回带出处与关联实体的结果。问"以前做过类似需求吗"用这个。
Inputs: query (required), as_of, top_k, project_ids, +3 more.
search_learning_cases记忆 · 检索学习案例ARead-onlyIdempotent
检索历史学习案例(按语义 + 仓库 / 文件 / 符号提示),在生成新方案前查相似经验。
Inputs: limit, query, file_hints, repo_hints, +2 more.
search_rag_chunks分析 · GraphRAG 混合检索ARead-onlyIdempotent
在指定仓库做 Graph RAG 混合检索(语义 + 关键词 + 图谱扩散),返回相关代码块与关系边。代码证据收集的主力工具。
Inputs: query (required), repository_id (required), top_k, branch, +1 more.
summarize_branch交付 · 分支摘要与 MR 草稿A
对比分支差异并生成可读摘要与 MR 草稿。提供 execution_id,或同时提供 repository_id + source_branch + target_branch。
Inputs: max_files, execution_id, repository_id, source_branch, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
All tools have clearly distinct purposes with detailed descriptions. Even similar tools like grep_repository and search_rag_chunks are explicitly differentiated (exact text vs semantic search). Overlap is minimal and intentional.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., analyze_repository, create_coding_plan, search_rag_chunks). No mixing of camelCase or other conventions.
23 tools is slightly above the ideal range but well-justified given the comprehensive domain coverage (code analysis, planning, execution, knowledge management). No obvious bloat.
The tool surface covers the full lifecycle from repository discovery to code execution and knowledge persistence. Minor gaps exist (e.g., no direct file editing or issue/PR commenting outside Feishu), but core workflows are complete.
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search code by meaning, explore codebase structure, store and query knowledge with temporal facts, and read source code through a set of MCP tools.7MIT
- AlicenseNot gradedqualityCmaintenanceProvides 13 MCP tools for codebase analysis, wiki generation, and knowledge mapping, enabling AI assistants to understand project structure and context efficiently.3,835 npm1,427MIT
- AlicenseNot gradedqualityCmaintenanceProvides code intelligence for AI coding agents by indexing repositories into a hybrid knowledge graph, enabling agents to query dependencies, impact, and context through 28 MCP tools.4Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to query a codebase as a knowledge graph, providing token-budgeted context, search, and impact analysis via MCP tools.27 PyPIMIT