AGENT SKILL

mcp-server

Use for Open Wearables FastMCP server setup, assistant configuration, tool/API client extension, prompt formatting, MCP tests, and backend/API-key failure handling.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
mcp-server
license
MIT
metadata
{ "disco-role": "operating" }
description
Use for Open Wearables FastMCP server setup, assistant configuration, tool/API client extension, prompt formatting, MCP tests, and backend/API-key failure handling.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

MCP Server

Use this sub-skill when the task is about the Open Wearables MCP package for AI assistants: FastMCP startup, Claude Desktop/Cursor/MCPJam connection templates, API-client configuration, MCP tool routing, prompt formatting, mocked MCP tests, or diagnosing API-key/backend failures surfaced through MCP tools.

Route Here When

  • The user mentions MCP, Model Context Protocol, FastMCP, Claude Desktop, Cursor MCP settings, MCPJam, or assistant access to wearable data.
  • The task names MCP tools such as get_users, get_activity_summary, get_sleep_summary, get_workout_events, or get_timeseries.
  • The task changes the MCP REST client, tool envelopes, typed error handling, date-range guidance, or the present_health_data prompt.
  • The task asks how to run the MCP server locally, configure OPEN_WEARABLES_API_URL / OPEN_WEARABLES_API_KEY, or test tool calls without a live API.

Route Elsewhere

  • Backend API route behavior, API-key issuance, user CRUD, summaries/events/timeseries endpoint implementation, auth, database, migrations, Redis, or Celery belong in backend-core.
  • Provider OAuth/import/webhook/coverage internals belong in provider-integrations.
  • React portal pages, hooks, settings UI, and dashboard/device-pairing presentation belong in frontend-portal.

Read Order

  1. For available tools, client endpoint paths, response envelopes, prompt behavior, or adding a tool, read references/tools-and-client.md.
  2. For local install, environment variables, assistant configuration templates, and non-live setup checks, read references/setup-and-assistant-config.md.
  3. For missing key, connection refused, 401/404/5xx, no users, date-range defaults, or app-import confusion, read references/troubleshooting.md.
  4. For a safe config/import diagnostic that never calls the live API by default, run or adapt scripts/check_mcp_config.py.

Operating Rules

  • Keep MCP changes REST-client-driven. Do not bypass the Open Wearables backend by sharing database models or direct DB access from the MCP package.
  • Treat the API key as a secret. Use placeholders in docs and assistant configs; never commit real keys or assistant-machine paths.
  • MCP summary tools require explicit date arguments. When the user omits a period, follow the server instruction default of the last 2 weeks before calling the tool.
  • Prefer mocked HTTP tests for MCP behavior. The native MCP test candidates use pytest, pytest-asyncio, and pytest-httpx; they do not require a live backend.
  • If tool behavior depends on a backend endpoint contract change, coordinate with backend-core and then update MCP client/tool tests.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351