MCP Shipyard
← Guides

Build a remote MCP server for developer tools: tools, auth and review-ready metadata

Design a remote MCP server for developer tools: registry and repository lookup tools, auth, a TypeScript example and checks for review.

dev-toolstoolsauthsubmissionleaderboardtypescript

Build a remote MCP server for developer tools

Short answer: a developer tools server for public data needs focused lookup tools (one registry, host or format each), no authentication, read-only annotations and no generic run or execute tool. Anything on private repositories needs OAuth, and then it is a different server.

Basis: the MCP specification, the official TypeScript SDK docs (v2, package @modelcontextprotocol/server, read 2026-12-04) and our scanner rule pages. Tool sets are our recommendation, not a requirement. Anything marked (unverified) is not confirmed in those sources.

Name the registry or host in every description. This set uses a fictional acme registry.

get_package_info

  • Title: Get package info
  • Description: see the example below.
  • Input: name string, required (exact package name)
  • Annotations: readOnlyHint true, destructiveHint false, openWorldHint false

list_package_versions

  • Title: List package versions
  • Description: "Use this to list published versions of one acme package with release dates, newest first, up to 50."
  • Input: name string, required; limit integer 1 to 50
  • Annotations: readOnlyHint true, destructiveHint false, openWorldHint false

get_repo_summary

  • Title: Get repository summary
  • Description: "Use this for public repository facts: description, default branch, open issue count and latest release. Takes owner and repository."
  • Input: owner string, repo string, both required
  • Annotations: readOnlyHint true, destructiveHint false, openWorldHint false

get_ci_status

  • Title: Get CI status
  • Description: "Use this for the latest build result of a public repository's default branch."
  • Input: owner, repo strings, required
  • Annotations: readOnlyHint true, destructiveHint false, openWorldHint false

Annotations are hints, not security (see annotations explained). Here openWorldHint is true only where a tool reaches arbitrary outside parties, and false for a fixed domain. Any tool that deletes or overwrites would need destructiveHint true (annotations.destructive-not-flagged); this public set has none.

Auth

Recommendation: no authentication. This is public read-only data, which the checks accept. Hold any upstream key on your server so no user ever types one (schema.secret-param). Add no write tools to a no-auth server, because auth.write-tools-unauthenticated warns when it lists create, update or delete tools. Without sign-in your protection is rate limiting and bounded results; see rate limits and 429s.

Transport

Serve Streamable HTTP on one HTTPS path such as https://mcp.example.com/mcp (auth.https). In the v2 SDK, createMcpHandler(factory) builds a fresh McpServer for every request, so the endpoint is stateless and needs no sticky sessions (sessions and serverless). The handler checks no Host, Origin or token itself, so put those checks in front of it. Still on SSE? See the migration guide. Keep the handshake fast (latency.handshake).

Minimal TypeScript example

This targets SDK v2; coming from v1, use the SDK's migration guide. In v2 inputSchema is a z.object(...). Replace lookup with your own code.

import { createMcpHandler, McpServer } from '@modelcontextprotocol/server';
import * as z from 'zod/v4';

const handler = createMcpHandler(() => {
  const server = new McpServer({ name: 'acme-devtools', version: '1.0.0' });
  server.registerTool(
    'get_package_info',
    {
      title: "Get package info",
      description:
        "Use this for metadata of one package on the acme registry: latest version, license, release date and maintainers count. Does not read private packages; use list_package_versions for history.",
      inputSchema: z.object({
        name: z.string().describe('Exact package name on the acme registry')
      }),
      annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false }
    },
    async (args) => {
      const result = await lookup(args); // your upstream call
      if (!result) return { isError: true, content: [{ type: 'text', text: 'Package not found on the acme registry. Check the exact name.' }] };
      return { content: [{ type: 'text', text: JSON.stringify(result) }] };
    }
  );
  return server;
});

export default handler; // web-standard runtimes; wrap with toNodeHandler on Node

Keep the identifier format (exact package name, owner and repo) in the description.

Errors, size and speed

Return isError: true with text that says what was wrong and how to fix it; messages such as "Internal Server Error" fail review (errors.unhelpful-message). Reviewers run every tool with valid input and reject failures (errors.fixture-failed). Keep a call under 3 seconds where you can: the scanner warns above 3 and fails above 15 (latency.tool-call). For slower work see tool timeouts, cap result size (response size limits) and never echo keys or tokens in output (errors.secrets-in-output). Run the same calls in CI so a regression never reaches review.

Getting models to pick your tools

The leaderboard method shows the model every tool in the category as a function named <server>__<tool>, with your description and input schema, and records the first tool it calls. Your name, description and schema are the whole pitch. In the December 4 2026 run, 88.0% (95 of 108) of developer tools trials ended with no tool called. Developer prompts name packages, repositories and error strings. The method's dev-tools set was rewritten toward public registries, public repositories and public trackers, because open servers cannot answer questions about a user's private code. Say which registry or host you cover and the identifier you expect. With 88.0% no-tool trials in this category, a precise first sentence is the lever, not more tools. Limits apply: the harness is offline, uses one model family, and measures selection, not correct answers. Rewrite method and prompt sets are in writing tool descriptions models pick; write about your own task and sibling tools, never about other servers (desc.injection-directive).

Pitfalls our rules catch

Submission checklist

Check your server against these rules at https://mcpshipyard.com/scan.

Check your server against these rules

Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.

Scan a server