Back to skills
SKILL.md
Mcp Server Config
ASecurityTitle: MCP Server Configuration Keywords: mcp-config, model-context-protocol, json-rpc, tool-registry, json-schemas, connector-setup, lobby-mcp-server, registry-mcp, aesirx-cmp-mcp, stdio Agents: mcp-architect, backend, api, runtime-adapter, developer-experience-engineer, wordpress-specialist, drupal-specialist, joomla-specialist, umbraco-specialist, infrastructure When to use: When building, auditing, or configuring Model Context Protocol (MCP) servers (`lobby-mcp-server`, `registry-mcp`, `@...
- 4 stars
- 0 votes
- 0 copies
- 1 view
- Added November 13, 2026
Works with
Security analysis
100/100npx -y skills add ronnikc/agent-os-protocol --skill mcp-server-config --agent claude-codeAre you the author of Mcp Server Config?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ronnikc-mcp-server-config)Title: MCP Server Configuration
Keywords: mcp-config, model-context-protocol, json-rpc, tool-registry, json-schemas, connector-setup, lobby-mcp-server, registry-mcp, aesirx-cmp-mcp, stdio
Agents: mcp-architect, backend, api, runtime-adapter, developer-experience-engineer, wordpress-specialist, drupal-specialist, joomla-specialist, umbraco-specialist, infrastructure
When to use: When building, auditing, or configuring Model Context Protocol (MCP) servers (`lobby-mcp-server`, `registry-mcp`, `@agent-os/aesirx-cmp-mcp`, or CMS connectors), JSON-RPC 2.0 tool schemas, preview-first write safety, or multi-IDE client configs (Antigravity, Cursor, Claude Code, Codex CLI, Gemini CLI).
Version: 1.1.0
Last updated: 2026-12-05
Build, audit, and configure Model Context Protocol (MCP `2024-11-05`) servers, JSON-RPC 2.0 stdio/HTTP transports, tool input schemas, preview-first write safety, secret rejection, and multi-IDE client connector configurations across Agent OS (`lobby-mcp-server`, `registry-mcp`, `aesirx-cmp-mcp`) and CMS integrations.
---
## Workflow
### Step 1 — Audit MCP server registration & protocol handshake
- Verify `initialize` responds with protocol version `2024-11-05`, server name/version, and explicit `capabilities.tools`.
- For stdio servers (e.g. `agent-os cmp-mcp`, `lobby-mcp-server`), ensure stdout carries ONLY valid JSON-RPC frames — route all diagnostics/logs strictly to `stderr`.
- For CMS or hosted HTTP MCP connectors, inspect `mcp-settings.json` / connector config and verify TLS + authentication headers.
### Step 2 — Validate tool schemas & deterministic naming
- Assert every tool exposes a unique `name`, clear `description`, and strict JSON Schema `inputSchema` with explicit property types and `required` fields.
- Confirm mutating tools support a preview-first dry-run mode (e.g. `apply: false`) and return structured planned diffs + rollback metadata before mutating workspace files.
### Step 3 — Enforce secret hygiene & exception isolation
- Reject private keys, API secrets, wallet seeds, or credential-like payloads passed into tool arguments or written into generated configs.
- Wrap every tool execution handler in deterministic error handling returning valid JSON-RPC error objects or `isError: true` tool results — never crash the stdio loop on bad input.
### Step 4 — Verify client configs & end-to-end stdio/HTTP invocation
- Check client configuration snippets for Antigravity, Cursor, Claude Code, Codex CLI, and Gemini CLI (see `docs/cmp-mcp-quickstart.md`).
- Execute live `initialize` → `tools/list` → `tools/call` smoke checks (e.g. `npm run verify-cmp-mcp`, `npm run verify-lobby`).
---
## Input Schema
```yaml
input:
target_server:
type: string
required: true
description: "Server slug or config path (e.g. aesirx-cmp-mcp, lobby-mcp-server, registry-mcp, or mcp-settings.json)"
transport:
type: string
required: false
enum: [stdio, http, sse]
default: stdio
mcp_spec_version:
type: string
required: false
default: "2024-11-05"
```
## Output Schema
```yaml
output:
validation:
type: object
properties:
valid: { type: boolean }
registered_tools: { type: integer }
stdout_clean: { type: boolean }
tools:
type: array
items:
type: object
properties:
tool_name: { type: string }
schema_valid: { type: boolean }
preview_first: { type: boolean }
secret_safe: { type: boolean }
```
## Quality Gate
- Protocol handshake returns `2024-11-05` with valid tool schemas for every registered tool.
- Stdio servers emit zero non-JSON-RPC log lines on `stdout`.
- Mutating tools enforce preview-first (`apply: false`) and reject secrets.
- Tool handlers catch all exceptions cleanly without terminating the MCP server process.
- Live stdio/HTTP verification (`npm run verify-cmp-mcp` / `npm run verify-lobby`) passes.
## Chain Metadata
```yaml
chain_metadata:
skill_slug: "mcp-server-config"
stage: "S1"
suggested_next:
- slug: "api-contract-validation"
stage: "S1"
reason: "Validate MCP tool payload schemas against backend API contracts"
- slug: "aesirx-cmp-setup"
stage: "S4"
reason: "Exercise aesirx-cmp-mcp end-to-end against a target website workspace"
```
## Error Handling
- Malformed JSON-RPC frame or invalid schema keywords → return JSON-RPC `-32602` / `-32700` without crashing the transport.
- Secret detected in tool arguments → reject call immediately with redacted diagnostic.
- Stray stdout logging detected in stdio mode → redirect to `stderr` and re-run live stdio verification.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.