Skip to content

Expose skills and rules as MCP prompts and resources for non-Cursor clients #59

Closed

Description

@TMHSDigital

Summary

The MCP server registers only tools. The 10 skills and 6 rules, which hold most of the plugin's CFX knowledge, reach the model only through Cursor's plugin loader. Exposing them as MCP resources and prompts would give Claude Code and other MCP clients the same guidance.

Where

  • mcp-server/server.py:26-204 (only @mcp.tool(); no @mcp.resource or @mcp.prompt)
  • .cursor-plugin/plugin.json (skills and rules arrays)
  • skills/*/SKILL.md, rules/*.mdc
  • CLAUDE.md:11 ("any MCP-compatible client")

Details

Clients that connect only to the MCP server get the tools but none of the conventions, security rules and patterns the tools assume (for example the fxmanifest standards or the client-server patterns).

Impact

This weakens the "works with any MCP-compatible client" claim: non-Cursor users get tool output without the guidance that makes it correct.

Suggested fix

  • At startup, register each skills/*/SKILL.md as an MCP resource (cfx://skills/<name>) and a prompt (cfx-<name>), and each rules/*.mdc as a resource (cfx://rules/<name>), using the frontmatter description.
  • Resolve paths from the plugin root relative to server.py; do not duplicate content.
  • Trade-off: the server then depends on repo layout outside mcp-server/. If the server is ever packaged separately, bundle the files as package data.

Acceptance criteria

  • An MCP client lists one resource per skill and per rule, and one prompt per skill.
  • Reading a resource returns the current file content.
  • Adding a skill directory exposes it with no code change.

Getting started

  • Relevant files: mcp-server/server.py, skills/, rules/
  • How to run checks: there is no test suite yet; run the MCP server with cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in .github/workflows/validate.yml
  • Related docs: MCP Python SDK (FastMCP resources and prompts)

Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: M. audit-key: enhancement|mcp-server/server.py|mcp.resource

Activity

  1. added
    enhancement
    help wanted
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in bf5624e.

    At startup the server registers each skills//SKILL.md as resource cfx://skills/<name> and prompt cfx-<name>, and each rules/.mdc as resource cfx://rules/<name>, using the frontmatter description. Files are read on every request (no duplicated content), and new skill directories are exposed with no code change. Trade-off noted in the docs: the server needs a full checkout because it reads skills/ and rules/ next to mcp-server/.

    Verified by tests: list_resources/list_prompts include every skill and rule from plugin.json (16 resources, 10 prompts), a resource returns the current content after an edit, and a temporary skill directory is picked up automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions