MCP Server

View source
Use the @movk/core MCP server to let AI assistants discover functions, read source, and fetch usage examples through the Model Context Protocol.

What is MCP?

MCP (Model Context Protocol) is a standardized protocol that enables AI assistants to access external data sources and tools. @movk/core provides an MCP server so AI tools can directly access function information, source code, and usage examples.

Available Resources

The @movk/core MCP server exposes the following resources for AI discovery and browsing:

Resource URIDescription
resource://movk-core/all-functionsComplete list of all available functions with metadata and category information
resource://movk-core/tree-operationsIn-depth documentation for tree structure operations (a core feature)

Use @ to access these resources in tools like Claude Code.

Available Tools

Tool NameDescription
list-functionsList all @movk/core functions with their categories and basic information
get-functionGet detailed documentation and usage examples for a specific function; provide functionName in camelCase or kebab-case
search-functionsSearch functions by category, subcategory, or keyword

Available Prompts

The @movk/core MCP server provides guided prompts for common workflows:

Prompt NameDescription
find-function-for-usecaseRecommend the most suitable function for a given use case

Use / to access these prompts in tools like Claude Code.

Configuration

The @movk/core MCP server uses HTTP transport and can be configured in various AI assistants.

Claude Code

Make sure Claude Code is installed. See the Anthropic docs for installation instructions.

Add the server via CLI:

claude mcp add --transport http movk-core https://core.mhaibaraai.cn/mcp

Claude Desktop

  1. Open Claude Desktop, go to Settings > Developer
  2. Click Edit Config to open the local Claude configuration directory
  3. Edit claude_desktop_config.json:
claude_desktop_config.json
{
  "mcpServers": {
    "movk-core": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://core.mhaibaraai.cn/mcp"
      ]
    }
  }
}
  1. Restart Claude Desktop — the @movk/core MCP server is now registered.

Cursor

One-click install: Click the button below to install the @movk/core MCP server directly in Cursor.

Install MCP in Cursor

Manual configuration: Go to Settings > Tools & MCP to add the @movk/core MCP server, or create/edit .cursor/mcp.json in your project root:

.cursor/mcp.json
{
  "mcpServers": {
    "movk-core": {
      "type": "http",
      "url": "https://core.mhaibaraai.cn/mcp"
    }
  }
}

Visual Studio Code

Install MCP in VS Code
Requires the GitHub Copilot and GitHub Copilot Chat extensions.
  1. Open the VS Code Command Palette (Ctrl/Cmd + Shift + P)
  2. Type Preferences: Open Workspace Settings (JSON) and execute
  3. Create or edit mcp.json in your project's .vscode directory:
.vscode/mcp.json
{
  "servers": {
    "movk-core": {
      "type": "http",
      "url": "https://core.mhaibaraai.cn/mcp"
    }
  }
}

Windsurf

  1. Go to Settings > Windsurf Settings > Cascade
  2. Click Manage MCPs > View raw config
  3. Add the following configuration:
.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "movk-core": {
      "type": "http",
      "url": "https://core.mhaibaraai.cn/mcp"
    }
  }
}

Usage Examples

Once configured, you can ask your AI assistant questions like:

Discovery & Queries

  • "List all available @movk/core functions"
  • "Get the documentation for the chunk function"
  • "What parameters does Tree.fromList accept?"
  • "Find array-related functions"

Tree Structures (Core Feature)

  • "List all tree structure operation functions"
  • "I need to convert tree data to a flat list — which function should I use?"
  • "How do I filter a tree by a field while keeping ancestor nodes?"

Use-Case Based Selection

  • "Which function converts a string to kebab-case?"
  • "How do I deep-merge multiple config objects?"
  • "Show all URL query parameter handling functions"
  • "Get usage examples for useAppStorage"

The AI assistant will fetch structured data via MCP tools and provide scenario-specific recommendations. Questions like "which should I use?" or "what's recommended?" will automatically trigger the guided prompt.

Copyright © 2024 - 2026 YiXuan - MIT License