nseap-mcp
nseap-mcp
NSEAP 教育平台 × Cogseed 连接器 —— stdio MCP 服务器。封装平台 HTTP 代理协议(x-api-key),提供本地交付物检查与提交-评审-通知闭环工具。
定位
本地工具(离线可用,非权威):
nseap_check_deliverables—— 按挑战交付物要求(支持*通配符)在本地工作区检查文件完整性平台工具(权威,可审计):挑战查询 / 我的提交 / 任务轮询 / 提交项目
架构红线(继承平台约束):
提交必须经平台消息总线(代理通道,不降级)
不暴露任何直写飞书表的工具
from_agent固定为student-companion-<学号>,不接受工具参数伪造长耗时一律 submit → task_id → 轮询
Related MCP server: MCP Security Server
工具列表(13 个,按角色裁剪)
学生角色(12 个):
工具 | 说明 |
| 本地交付物通配符检查(离线) |
| 本地提交预检报告(行动项+提交草稿) |
| 已发布挑战列表 |
| 单挑战详情(交付物/rubric/评分维度/红线) |
| 我的提交记录 |
| 异步任务状态(提交后轮询) |
| 提交项目(预检→Envelope→task_id) |
| 评审详情(AI/教师/同伴,分项分数+优缺点) |
| 提交评审(peer 平台校验分配 / teacher 走消息总线) |
| 进度统计(挑战/提交/完成/待评审) |
| 触发飞书通知(学生 DM/班级群) |
| 平台连接检查(延迟/模式) |
教师角色(+1):nseap_publish_challenge —— 发布挑战(走消息总线,飞书群公告)
安装与运行
pnpm install # Node ≥20
pnpm dev # 开发模式(tsx 直跑)
pnpm build && pnpm start # 生产模式(dist/)
pnpm bundle # 单文件打包(dist-bundle/nseap-mcp.mjs,自包含无 node_modules)分发(M1,推荐)
pnpm bundle
# 产物 dist-bundle/nseap-mcp.mjs(1.1MB 自包含),任意有 Node ≥20 的机器:
node dist-bundle/nseap-mcp.mjsCogSeed 连接器 command 直接指向该文件,无需 nseap-mcp 项目环境。
环境变量见 .env.example。
本地开发(mock 模式,无需平台凭证)
NSEAP_MOCK=1 NSEAP_STUDENT_ID=test-student pnpm dev接入 CogSeed
CogSeed 中打开连接器设置 → 添加自定义 MCP(custom transport, stdio)
填入:
display_name:
NSEAP 学习平台command:
npx tsx /path/to/nseap-mcp/src/index.ts(或构建后的node /path/to/nseap-mcp/dist/index.js)env(API key 走 secrets_enc 加密存储):
NSEAP_SERVER_URL= 平台地址NSEAP_API_KEY= 学生的 api_key(平台登录后下载 NSEAP-config-{学号}.json 获取)NSEAP_STUDENT_ID= 学号NSEAP_COHORT= 班级
确认弹窗(展示将执行的精确命令)→ 用户同意后生效
模型经
list_connector_tools/call_connector_tool使用这些工具
测试
pnpm typecheck # tsc 零错误
pnpm test # 33 个单元测试(含 5 个契约测试)
pnpm smoke # 冒烟(握手/12工具注册/预检/拦截)
pnpm demo:student # 学生全流程预演(9 步,mock 模式,无需凭证)
pnpm demo:teacher # 教师全流程预演(5 步,mock 模式,无需凭证)错误码
code | 含义 |
| api_key 无效/过期 |
| 无权操作 |
| 重复提交(60s 防重窗口) |
| 消息总线不可用 |
| 任务不存在/已过期 |
| 无法连接平台 |
| 校验未通过(如缺交付物) |
| 未知错误 |
目录结构
src/
index.ts # MCP Server 主入口(6 工具注册)
config.ts # 环境变量加载 + 脱敏 + 身份固定
errors.ts # NseapError + 错误码表
client.ts # 平台 HTTP 客户端(重试/限流/mock)
tools/
local.ts # 交付物检查(纯本地)
read.ts # 只读工具
submit.ts # 提交工具
test/ # 单元测试
scripts/smoke-m0.sh # M0 冒烟许可
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA PRD-first multi-agent MCP server that wraps agent definitions, collaboration rules, and staged delivery into a local stdio service for standardized software delivery workflows.MIT
- AlicenseNot gradedqualityBmaintenanceEnables file operations, npm package management, and configuration checking through MCP.81MIT
- AlicenseNot gradedqualityCmaintenanceA repo-native stdio MCP server that helps AI agents and human users make better use of existing CE-RISE Digital Passport components, services, schemas, documentation, and deployment workflows.European Union Public 1.2
- AlicenseBqualityBmaintenanceA local, evidence-driven MCP runtime and control plane for open-source maintainers that provides workspace-bounded tools including controlled file operations, command execution, validation primitives, durable execution records, and human review workflows via stdio and Streamable HTTP transports.33MIT
Related MCP Connectors
MCP server for the Inistate platform: module discovery, entry management, and activity submission.
Create, co-edit, analyze, publish, and export collaborative step-sequencer sessions through MCP.
Remote MCP for Kiro release readiness, evidence binders, signoff, and CI approval receipts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/a976xw7td/nseap-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server