Skip to main content
Profy Experts can be consumed as a Skill or MCP Server by mainstream AI coding tools, giving developers access to Expert capabilities without leaving their IDE.

Supported Tools

Prerequisites

  • Profy account with Developer role
  • API Key (create at Developer Console, format sk-pro-*)
  • Expert must have API access enabled (apiAccess: "open")

A Skill is a Markdown file that teaches AI coding tools how to call the Profy API. Once installed, the agent automatically knows when and how to invoke Profy Experts.

Claude Code

The plugin ships in the Profy repository under agent-plugin/. Its installer detects which coding tools you have and writes the right file for each of them:
It carries four skillsquick-start, distillation, publish-and-earn and evolution — plus a .mcp.json pointing at the remote MCP server. Set your API Key:
Then simply tell Claude Code:
“Use Profy’s react-architect Expert to review this code”
Claude Code will follow the Skill instructions and call POST https://api.profy.cn/v1/agents/run with expert_identifier: "react-architect" automatically.

Cursor

The same installer writes a .cursor/rules/ entry plus .cursor/mcp.json:

Codex / Gemini CLI / others

The installer covers 13 tools natively — Claude Code, Copilot, Gemini CLI, OpenCode, Cursor, Codex, Aider, Windsurf, OpenClaw, Qwen Code, Kimi Code, Osaurus and Hermes — each in that tool’s own format and install location. Anything else that speaks MCP can point at https://mcp.profy.cn/mcp directly. Make sure PROFY_API_KEY is exported in whichever shell the tool runs in.

Method 2: MCP Server Integration

MCP (Model Context Protocol) provides deeper integration, allowing AI tools to invoke Profy Experts via structured tool calls.

Configure .mcp.json

Create .mcp.json at your project root:

Register in Claude Code

Available tools

The MCP server exposes 22 tools, grouped by what they let you do from inside the IDE. Note the emphasis: this surface is built for creating and shipping Experts, not just calling them.
There is no invoke_expert tool — running an Expert against a payload goes through the REST API (POST /v1/agents/run). MCP covers the authoring loop: distil, configure, test, publish, watch earnings.

API Endpoint Reference

All requests require Authorization: Bearer $PROFY_API_KEY. Base URL: https://api.profy.cn The full inventory, including sessions, files and environments, is in the endpoint reference.

Invoke an Expert

The Expert identifier goes in the body, not the path:
Response: an SSE stream (text/event-stream).
X-End-User-Id is required when calling with an API key. Omitting it returns 400 — it’s what attributes the run to one of your end users rather than to your key itself.

Multi-turn Conversations

Pass session_id to continue an existing thread:

OpenAI-Compatible Chat


For Creators: Enable API Access for Your Expert

API access is off by default on every Expert — that’s the stored default of the api_access column, and it carries through releases and pending submissions like any other content field.
  1. Edit your Expert in Studio
  2. Set API Access to Open (any developer holding an API key may invoke it)
  3. Publish a new version — the change reaches the public surface only after review, like every other content change
Once enabled, your Expert can be invoked by developers worldwide from Claude Code, Cursor, and Codex.

FAQ

  • Skill: Plain text instructions that teach AI how to curl your API. Zero infrastructure, cross-platform compatible.
  • MCP Server: Structured tool protocol where AI makes function calls. More powerful but requires server-side support.
Start with Skills. Upgrade to MCP Server seamlessly once available.
The Expert’s api_access field is off, which is the default for every Expert. Ask its creator to enable API access, or use one that already has api_access: open.
Responses use standard Server-Sent Events format. Each line starts with data: and the stream ends with data: [DONE]. Most HTTP clients and AI tools natively support SSE parsing.
Via the /v1/chat/completions endpoint, all platform-configured models are available (DeepSeek, Qwen, etc.). Available models depend on platform configuration.
Token-based billing (METERED). Credits are deducted from the API Key owner’s account. View usage in the Developer Console.

Key numbers

Failures and fixes

Next Steps

Endpoint reference

Every /v1/* route with auth and purpose

SSE events

The event types you’ll parse out of a run

MCP tools

Full parameter reference for all 22 tools

Python SDK

A typed client instead of raw curl
Verified 2026-08-12. Sources: services/core/src/routes/platform-api/index.ts (the /v1 surface), services/core/src/routes/mcp/tools/index.ts (22 registered tools), packages/db/src/schema/marketplace.ts (api_access default).