nseap-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
nseap-mcp
NSEAP Education Platform × Cogseed Connector — stdio MCP Server. Wraps the platform HTTP Agent protocol (x-api-key), providing local deliverable checking and a submit-review-notify closed loop toolset.
Positioning
Local tools (offline-capable, non-authoritative):
nseap_check_deliverables— checks file completeness in the local workspace against challenge deliverable requirements (supports*wildcards)Platform tools (authoritative, auditable): challenge queries / my submissions / task polling / project submission
Architecture red lines (inherited from platform constraints):
Submissions must go through the platform message bus (Agent channel, no fallback)
No tools that write directly to Feishu sheets are exposed
from_agentis fixed tostudent-companion-<student-id>, not forgeable via tool argumentsLong-running operations always follow submit → task_id → polling
Related MCP server: MCP Security Server
Tool list (13 tools, trimmed by role)
Student role (12 tools):
Tool | Description |
| Local deliverable wildcard check (offline) |
| Local submission pre-check report (action items + submission draft) |
| List published challenges |
| Single challenge details (deliverables/rubric/scoring dimensions/red lines) |
| My submission history |
| Async task status (poll after submission) |
| Submit project (pre-check → Envelope → task_id) |
| Review details (AI/teacher/peer, per-dimension scores + strengths/weaknesses) |
| Submit review (peer: platform validates assignment / teacher: via message bus) |
| Progress stats (challenges/submissions/completed/pending review) |
| Trigger Feishu notification (student DM/class group) |
| Platform connectivity check (latency/mode) |
Teacher role (+1): nseap_publish_challenge — publish challenge (via message bus, Feishu group announcement)
Installation & Running
pnpm install # Node ≥20
pnpm dev # 开发模式(tsx 直跑)
pnpm build && pnpm start # 生产模式(dist/)
pnpm bundle # 单文件打包(dist-bundle/nseap-mcp.mjs,自包含无 node_modules)Distribution (M1, recommended)
pnpm bundle
# 产物 dist-bundle/nseap-mcp.mjs(1.1MB 自包含),任意有 Node ≥20 的机器:
node dist-bundle/nseap-mcp.mjsThe CogSeed connector command points directly to this file; no nseap-mcp project environment needed.
Environment variables: see .env.example.
Local development (mock mode, no platform credentials needed)
NSEAP_MOCK=1 NSEAP_STUDENT_ID=test-student pnpm devConnecting to CogSeed
In CogSeed, open Connector Settings → Add Custom MCP (custom transport, stdio)
Fill in:
display_name:
NSEAP Learning Platformcommand:
npx tsx /path/to/nseap-mcp/src/index.ts(or the builtnode /path/to/nseap-mcp/dist/index.js)env (API key stored encrypted via secrets_enc):
NSEAP_SERVER_URL= platform addressNSEAP_API_KEY= student's api_key (obtained by downloading NSEAP-config-{student-id}.json after logging into the platform)NSEAP_STUDENT_ID= student IDNSEAP_COHORT= class
Confirmation dialog (shows the exact command to be executed) → takes effect after user consent
The model uses these tools via
list_connector_tools/call_connector_tool
Testing
pnpm typecheck # tsc 零错误
pnpm test # 33 个单元测试(含 5 个契约测试)
pnpm smoke # 冒烟(握手/12工具注册/预检/拦截)
pnpm demo:student # 学生全流程预演(9 步,mock 模式,无需凭证)
pnpm demo:teacher # 教师全流程预演(5 步,mock 模式,无需凭证)Error codes
code | Meaning |
| api_key invalid/expired |
| Unauthorized operation |
| Duplicate submission (60s anti-repeat window) |
| Message bus unavailable |
| Task does not exist/expired |
| Cannot connect to platform |
| Validation failed (e.g., missing deliverables) |
| Unknown error |
Directory structure
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 冒烟License
MIT
Related MCP Connectors
MCP server for the Inistate platform: module discovery, entry management, and activity submission.
Capability-routed CLI/MCP: signed provenance exports, WCAG-validated themes, sovereign deploy modes.
Deterministic MCP, JSON Schema, and SemVer preflight via Agothe's public MUV scope.
Read and write shared BitsWeave context, projects, tasks, and work sessions through MCP.
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
- AlicenseBqualityCmaintenanceEnables file operations, npm package management, and configuration checking through MCP.106 npm1MIT
- AlicenseNot gradedqualityBmaintenanceA 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
- AlicenseBqualityDmaintenanceA 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