AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Mcp Client Generator

skill-patonkikh-apes-mcp-client-generator · by patonkikh

>

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-patonkikh-apes-mcp-client-generator

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-patonkikh-apes-mcp-client-generator)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mcp Client Generator? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

MCP Client Generator

Purpose

Generate MCP client integration: connection setup, capability discovery, tool invocation patterns, and error handling for agent applications.

Input: Target MCP server(s), host application type (agent IDE, backend service, CLI), auth model, required capabilities Output: MCP Client Integration Specification with connection config, invocation patterns, and test plan Examples: See [examples.md](examples.md) for worked input/output.


Workflow

Step 1: Inventory MCP servers

| Server | Transport | Capabilities needed | Auth method | |--------|-----------|---------------------|-------------| | | stdio / HTTP | tools, resources | env / OAuth |

Document server startup command (stdio) or endpoint URL (HTTP).

Step 2: Design connection lifecycle

Init → Connect → Discover capabilities → Cache schema → Invoke → Disconnect/Reconnect

| Phase | Responsibility | Timeout | |-------|----------------|---------| | Connect | Spawn process or HTTP handshake | 10s | | Discover | listtools, listresources | 5s | | Invoke | calltool, readresource | Per-tool SLA | | Reconnect | On disconnect with backoff | Exponential |

Step 3: Define client configuration

{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "package-name"],
      "env": { "API_KEY": "${API_KEY}" }
    }
  }
}

For HTTP servers: base URL, headers, auth token injection.

Step 4: Design invocation patterns

| Pattern | Use case | |---------|----------| | Direct call | Agent selects tool with args | | Wrapper function | Application abstracts tool names | | Resource prefetch | Load context before agent turn | | Prompt template | Server-provided prompt with args |

Document argument validation before send (client-side schema check).

Step 5: Plan error handling

| Error | Client action | |-------|---------------| | Connection refused | Retry 3x with backoff; surface to user | | Tool execution error | Parse structured error; retry if retryable | | Timeout | Cancel; return partial result flag | | Schema mismatch | Log; do not retry; report to server maintainer |

Step 6: Validate

Run Validation checklist.


Decision Rules

| Condition | Action | |-----------|--------| | Multiple servers with overlapping tools | Namespace tool names in wrapper layer | | stdio server in production backend | Prefer HTTP transport or sidecar pattern | | User-specific OAuth per server | Store tokens securely; refresh before expiry | | Tool args from LLM output | Validate against JSON Schema before invocation | | Server not yet built | Generate client against capability manifest from mcp-server-generator | | High-frequency tool calls | Add client-side rate limiter and connection pool |


Validation

  • [ ] All target servers documented with transport and auth
  • [ ] Connection lifecycle with timeouts defined
  • [ ] Configuration template provided (no real secrets)
  • [ ] Invocation patterns match application architecture
  • [ ] Error handling per error type
  • [ ] Capability discovery and schema caching planned
  • [ ] Test plan: connect, list tools, invoke, error cases
  • [ ] Logging excludes sensitive args and tokens

Anti-patterns

  • Hardcoded tool list — skipping discovery; breaks on server updates.
  • Unvalidated LLM args — passing raw model output directly to tools.
  • Secret in config file — committing tokens to version control.
  • No timeout — hanging client on unresponsive server.
  • Tight coupling — application logic embedded in MCP transport layer.

Best Practices

  • Cache discovered tool schemas with TTL; refresh on connect.
  • Wrap MCP calls in application service layer, not in UI code.
  • Log tool name and duration; redact arguments containing PII.
  • Support graceful degradation when server unavailable.
  • Pair with mcp-security-review for production auth patterns.

Output Structure

# MCP Client Integration: [Application Name]

## Server Inventory
| Server | Transport | Auth | Startup |
|--------|-----------|------|---------|

## Connection Lifecycle
[Phases, timeouts, reconnect policy]

## Configuration
[Template with placeholders]

## Invocation Patterns
| Pattern | Tool/Resource | Wrapper API |
|---------|---------------|-------------|

## Error Handling
| Error | Action | User message |
|-------|--------|--------------|

## Test Plan
| Case | Steps | Expected |
|------|-------|----------|

## Security Notes
[Token storage, log redaction]

Next Skills

| Outcome | Recommended Skill | |---------|-------------------| | Build the MCP server | mcp/mcp-server-generator | | Design tools consumed by client | mcp/mcp-tool-generator | | Security review | mcp/mcp-security-review | | Production patterns | mcp/mcp-best-practices | | Agent workflow using tools | ai/ai-workflow-builder |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.