mcp-server

Build and deploy authenticated MCP servers with OAuth, testing, and multi-directory listing.

579|76|Updated Oct 29, 2026
Ready to run
npx skills add https://github.com/phuryn/product-engineering --skill mcp-server-phuryn
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: mcp-server
Source: https://github.com/phuryn/product-engineering/tree/main/app-stack/skills/mcp-server
Command: npx skills add https://github.com/phuryn/product-engineering --skill mcp-server-phuryn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building a production MCP server from scratch involves coordinating authentication, documentation, testing, OAuth integration, and publishing across multiple directories. This Skill consolidates those steps into a reliable workflow, preventing common mistakes like undocumented tools, incomplete OAuth setup, or drifting package versions. ## Core Features & Use Cases - OAuth & Authentication: Integrate Clerk OAuth, workspace tokens, and per-call logging with defensive validation. - Tool Documentation: Generate descriptions, argument schemas, output schemas, and annotations that pass directory scoring. - Multi-Directory Publishing: Coordinate releases across the Official MCP Registry, Smithery, Glama, Claude connectors, ChatGPT plugins, and Docker catalogs. - Use Case: You built a monitoring product's REST API and want to expose it as an MCP server. This Skill guides you through OAuth setup with Clerk, writing tool descriptions that Glama scores 4+, testing with real clients (Claude, ChatGPT, MCP Inspector), and publishing to four directories simultaneously while keeping the package and hosted server in sync. ## Quick Start Read the decision log in references/server.md to record who may call your server, then build the route with stateless HTTP, Clerk OAuth, and the per-call log before writing any tools.

Frequently Asked Questions about mcp-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up OAuth for an MCP server with Clerk?▼

Apply clerk-production § MCP OAuth: enable the MCP OAuth client in Clerk settings, configure the audience to match your server's exact endpoint URL, use CIMD or DCR for client registration, and verify the access token carries org_id before checking live membership on every call. Never cache membership; revoked users must be refused on the next request.

What makes tool descriptions score well on Glama?▼

Glama scores tool definitions (TDQS) on purpose, usage guidelines, behavior, parameters, completeness and conciseness. Highest scores come from stating what the tool returns, which sibling tool to use instead and when, which tool supplies input IDs, what the tool refuses and why, and what empty results mean. Keep descriptions under 900 characters; two to four sentences score best.

How do I ensure my MCP server works with Claude, ChatGPT, and other clients?▼

Record a happy path for each client: verify sign-in, tool discovery, and at least one read and write call. Write the test, date it, and store results in the distribution record. Claude requires the endpoint URL and Clerk sign-in; ChatGPT as a custom connector needs OAuth and the same; ChatGPT plugin requires a plugin package and pre-approval testing through a custom MCP server.

Why does my tools/list response keep growing too large?▼

Every tool description and parameter annotation is in the model's context. Pin tools/list size in a test (under 34 KB is reasonable). Cut redundant parameter descriptions by describing once in the shared schema; remove per-field output descriptions from outputSchema and keep only descriptions for status enums and overlapping counts.

What happens after I promote a tool-surface change to production?▼

Update in order: the package's tools, README table, and manifest; npm publish and verify the registry shows the version; rescan Smithery; update Glama's server and connector descriptions and bump the installed package version if Glama builds from the repository; update the product's public API docs and privacy page; record the change in the distribution record.

How do I handle authentication for an anonymous surface like a ChatGPT plugin?▼

Gate discovery answers (initialize, tools/list) to everyone; gate tool calls to requests from the platform's published IP ranges only. Validate the platform's anonymized user ID on every call (OpenAI sends it in _meta["openai/subject"]). Declare the plugin as auth.type: "none" before the first upload; completing an OAuth sign-in afterward locks it and requires a new plugin to undo.