Logo Mcp

Mcp

Cộng đồng
nitinjain999
mcp

MCP server and client development — scaffold, implement tools/resources/prompts, validate schemas, debug protocol compliance, and deploy with auth and rate limiting.

Add to TypingMind

Tổng quan

Nhà phát hànhnitinjain999
Kho mãplatform-skills
Tên kỹ năngmcp
Sao
71
Bản fork
14
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được nitinjain999 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Mcp trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/mcp
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nitinjain999/platform-skills.git /tmp/platform-skills
mkdir -p .claude/skills
cp -r /tmp/platform-skills/plugins/platform-skills/skills/mcp .claude/skills/mcp
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Mcp trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Mcp ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Mcp với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Build, review, or debug an MCP (Model Context Protocol) server or client.

Mode: create

Scaffold a production-ready MCP server.

Steps:

  1. Ask for: language (TypeScript or Python), transport (stdio / HTTP+SSE), list of tools and resources needed
  2. Generate project scaffold with correct SDK setup
  3. Implement tool handlers with Zod (TypeScript) or Pydantic (Python) schema validation
  4. Add resource providers and prompt templates as needed
  5. Configure transport layer
  6. Add error handling — return isError: true content, never throw unhandled exceptions to clients
  7. Add authentication and rate limiting for HTTP transports
  8. Provide MCP Inspector test commands and expected responses
  9. Add deployment checklist (env vars, secrets, logging)

Validation:

bash
# Smoke-test the MCP server before connecting a host
npx @modelcontextprotocol/inspector <your-server-command>
# This opens an interactive inspector — verify: tools list, resources list, no startup errors
# If the server is not discovered by the host, run /platform-skills:mcp debug

Reference: references/mcp.md → Protocol Fundamentals, TypeScript SDK, Python SDK

Mode: review

Review an existing MCP server or client implementation.

Evaluate in priority order:

  1. Protocol compliance — JSON-RPC 2.0 correctness, proper capability negotiation, well-formed content arrays
  2. Schema validation — all tool inputs validated with Zod/Pydantic; no z.any() or empty schemas
  3. Security — no credentials in tool responses or resource content; auth on HTTP transports; rate limiting present
  4. Error handling — errors return isError: true with a message, not unhandled exceptions
  5. Transport — correct transport for the use case; no blocking sync code in async transports

Output: Critical (must fix) / Improvement (should fix) / Note (informational)

Reference: references/mcp.md → Security, Error Handling, Testing and Debugging

Mode: debug

Diagnose MCP protocol or integration failures.

Classify the failure:

  • Transport — connection refused, EOF, serialisation error
  • Protocol — malformed JSON-RPC, missing id, wrong method names
  • Schema — Zod/Pydantic validation rejection, unexpected input types
  • Handler — unhandled exception, timeout, wrong return shape
  • Integration — tool not appearing in host, capabilities mismatch

Evidence to collect:

bash
# Run MCP Inspector to verify protocol compliance
npx @modelcontextprotocol/inspector node dist/index.js

# Smoke-test via stdio
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | node dist/index.js

# Check for schema errors
node -e "require('./dist/index.js')" 2>&1

Provide: observed symptom → likely root cause → evidence command → fix → validation step

Mode: configure-aws

Generate version-pinned, credential_process-backed MCP server configs for AWS services, with upfront cost warnings and CLI-first alternatives.

/platform-skills:mcp configure-aws [service|kit] [--profile <profile>] [--region <region>] [--host vscode|claude|both] [--scope global|workspace] [--multi-account]

Examples:

/platform-skills:mcp configure-aws eks-debug --profile prod-platform-eu --region eu-west-1 --host both
/platform-skills:mcp configure-aws eks --profile dev-sandbox --host vscode --scope workspace
/platform-skills:mcp configure-aws knowledge --host claude
/platform-skills:mcp configure-aws eks --profile prod-eu --region eu-west-1 --multi-account

Step 0: Gather Inputs (interactive — fires when any required value is missing)

When the user invokes configure-aws without arguments, or omits any required value, prompt for each missing piece one question at a time before proceeding.

Question 1 — Service or kit (skip if already provided as positional arg):

Which AWS service or starter kit do you need?

Services:
  eks         EKS cluster ops, nodegroups           (~2,000 tokens)
  cloudwatch  Logs, metrics, alarms                 (~1,750 tokens)
  prometheus  AMP metrics, rule groups              (~1,000 tokens)
  iam         IAM queries, read-only                (~1,500 tokens)
  bedrock-kb  Knowledge base retrieve + generate    (~750 tokens)
  docs        Real-time AWS documentation           (~500 tokens)
  api         All AWS services, catch-all           (~2,500 tokens)
  billing     Cost Explorer, budgets                (~1,000 tokens)
  serverless  SAM, Lambda lifecycle                 (~1,250 tokens)
  dynamodb    Table ops, queries                    (~1,250 tokens)

Starter kits (pre-bundled):
  eks-debug   eks + cloudwatch                      (~3,750 tokens)
  observe     cloudwatch + prometheus               (~2,750 tokens)
  knowledge   docs + bedrock-kb                     (~1,250 tokens)
  deploy      api + serverless                      (~3,750 tokens)
  cost        billing                               (~1,000 tokens)

Enter service or kit name:

Question 2 — Host (skip if --host provided):

Which tool are you configuring for?
  1. VS Code
  2. Claude Code
  3. Both

Enter 1, 2, or 3:

Question 3 — AWS profile (skip if --profile provided):

Read ~/.aws/config, list available profiles with type and environment tag (from ~/.aws-profile-tags.yaml if present):

Which AWS profile should MCP servers use?

Available profiles (from ~/.aws/config):
  prod-platform-eu   SSO          [prod]     123456789
  staging-assume     assumed-role [staging]  456789123
  dev-sandbox        SSO          [dev]      987654321

Enter profile name (or press enter for no profile — uses ambient credentials):

If ~/.aws/config is not readable or has no profiles, show: Could not read ~/.aws/config. Enter profile name manually (or press enter to skip):

Question 4 — Region (skip if --region provided):

Detect the profile's region field from ~/.aws/config and offer it as the default:

AWS region? [detected from profile 'prod-platform-eu': eu-west-1]
Press enter to accept or type a different region:

If no region is detected in the profile: AWS region? (e.g. us-east-1):

Question 5 — Scope (VS Code only; skip if --scope provided):

VS Code config scope?
  1. Workspace — .vscode/mcp.json (this project only)
  2. Global    — applies to all VS Code windows

Enter 1 or 2:

Question 6 — Multi-account (eks service only; skip if --multi-account provided or service is not eks):

Generate named instances for all prod-tagged profiles? (multi-account mode)
  This creates eks-prod-eu, eks-prod-us, etc. from ~/.aws-profile-tags.yaml.
  Requires ~/.aws-profile-tags.yaml with env: prod entries.

[y/N]:

After collecting all answers, confirm before proceeding:

Summary:
  Service/kit : eks-debug (eks + cloudwatch)
  Host        : both (VS Code + Claude Code)
  Profile     : prod-platform-eu
  Region      : eu-west-1
  VS Code scope: workspace

Proceeding with cost check...

Then continue with Steps 1–4 below using the collected values.


Step 1: Cost Warning

Before generating any config, show tool count and token cost. If total exceeds 5,000 tokens, flag it:

Servers requested: eks-mcp-server + cloudwatch-mcp-server

  awslabs.eks-mcp-server           ~40 tools   ~2,000 tokens
  awslabs.cloudwatch-mcp-server    ~35 tools   ~1,750 tokens
  ──────────────────────────────────────────────────────────
  Total                            ~75 tools   ~3,750 tokens

✓ Within recommended budget (<5,000 tokens). Continue? [y/N]

If over 5,000 tokens:

⚠ Over budget — ~8,500 tokens will be consumed by tool definitions before any conversation.
  This will noticeably compress available context for reasoning.
  Recommended: split into separate sessions, one kit per task.
  Continue anyway? [y/N]

Step 2: CLI-First Check

For simple single-service requests, show the CLI alternative before generating MCP config:

💡 For common EKS queries, the AWS CLI costs zero context:

  aws eks list-clusters --profile prod-platform-eu --region eu-west-1
  aws eks describe-cluster --name my-cluster --profile prod-platform-eu --region eu-west-1
  aws eks list-nodegroups --cluster-name my-cluster --profile prod-platform-eu

MCP adds value when the AI needs to chain calls — e.g., list clusters → describe all nodegroups →
correlate with CloudWatch alarms → identify degraded nodes → suggest remediation.

Is that the task you need? [y to continue with MCP / n to use CLI]

Step 3: credential_process Check

Before generating the config, check whether the target profile in ~/.aws/config has credential_process configured:

  • Has credential_process → generate config with AWS_PROFILE env var (credential_process handles refresh)
  • No credential_process → warn and emit both the MCP config AND the recommended ~/.aws/config stanza:
⚠ Profile 'prod-platform-eu' does not have credential_process configured.
  MCP servers using this profile will fail silently when the SSO token expires (TTL: ~8h).

  Add this to ~/.aws/config for automatic credential refresh:

  [profile prod-platform-eu]
  # ... existing fields ...
  credential_process = granted credential-process --profile prod-platform-eu

  See: references/aws-mcp-profiles.md → credential_process Pattern

Step 4: Config Generation

Emit ready-to-paste JSON for the target host(s). Always version-pin. Always set both AWS_PROFILE and AWS_REGION. Always include an _account comment.

VS Code (.vscode/mcp.json):

json
{
  "mcpServers": {
    "eks-prod-eu": {
      "command": "uvx",
      "args": ["awslabs.eks-mcp-server==VERSION", "--region", "eu-west-1"],
      "env": {
        "AWS_PROFILE": "prod-platform-eu",
        "AWS_REGION": "eu-west-1"
      },
      "_account": "Account: 123456789 | Env: prod | Permission: PowerUser"
    },
    "cloudwatch-prod-eu": {
      "command": "uvx",
      "args": ["awslabs.cloudwatch-mcp-server==VERSION"],
      "env": {
        "AWS_PROFILE": "prod-platform-eu",
        "AWS_REGION": "eu-west-1"
      },
      "_account": "Account: 123456789 | Env: prod | Permission: PowerUser"
    }
  }
}

Claude Code (~/.claude/settings.json → mcpServers):

json
{
  "eks-prod-eu": {
    "command": "uvx",
    "args": ["awslabs.eks-mcp-server==VERSION", "--region", "eu-west-1"],
    "env": {
      "AWS_PROFILE": "prod-platform-eu",
      "AWS_REGION": "eu-west-1"
    },
    "_account": "Account: 123456789 | Env: prod | Permission: PowerUser"
  }
}

Replace VERSION with the current version from PyPI:

bash
pip index versions awslabs.eks-mcp-server 2>/dev/null | head -1

Multi-Account Mode (--multi-account)

When --multi-account is passed for the eks service, generate distinct named instances for each prod-tagged profile in ~/.aws-profile-tags.yaml:

json
{
  "mcpServers": {
    "eks-prod-eu": {
      "command": "uvx",
      "args": ["awslabs.eks-mcp-server==VERSION", "--region", "eu-west-1"],
      "env": { "AWS_PROFILE": "prod-platform-eu", "AWS_REGION": "eu-west-1" },
      "_account": "123456789 | prod-eu"
    },
    "eks-prod-us": {
      "command": "uvx",
      "args": ["awslabs.eks-mcp-server==VERSION", "--region", "us-east-1"],
      "env": { "AWS_PROFILE": "prod-platform-us", "AWS_REGION": "us-east-1" },
      "_account": "234567890 | prod-us"
    }
  }
}

Show updated token cost after generating multi-instance config.

AWS MCP Server Catalog

Kit / ServicePackage~TokensUse case
eksawslabs.eks-mcp-server~2,000Cluster ops, nodegroups
cloudwatchawslabs.cloudwatch-mcp-server~1,750Logs, metrics, alarms
prometheusawslabs.prometheus-mcp-server~1,000AMP metrics, rule groups
iamawslabs.iam-mcp-server~1,500IAM queries (read-only)
bedrock-kbawslabs.bedrock-kb-retrieval-mcp-server~750KB retrieve + generate
docsawslabs.aws-documentation-mcp-server~500Real-time AWS docs
apiawslabs.aws-api-mcp-server~2,500All AWS services (catch-all)
billingawslabs.billing-cost-management-mcp-server~1,000Cost Explorer, budgets
serverlessawslabs.aws-serverless-mcp-server~1,250SAM, Lambda lifecycle
dynamodbawslabs.dynamodb-mcp-server~1,250Table ops, queries

Starter kits (pass kit name instead of service):

KitServers~Tokens
eks-debugeks + cloudwatch~3,750
observecloudwatch + prometheus~2,750
knowledgedocs + bedrock-kb~1,250
deployapi + serverless~3,750
costbilling~1,000

Reference: references/aws-mcp-profiles.md

Câu hỏi thường gặp

Kỹ năng AI Mcp làm được gì?

MCP server and client development — scaffold, implement tools/resources/prompts, validate schemas, debug protocol compliance, and deploy with auth and rate limiting.

Vì sao nên dùng Mcp trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Mcp là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Mcp trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/mcp. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Mcp?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Mcp với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Mcp với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Mcp có miễn phí không?

Có. Kỹ năng này được nitinjain999 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇