1. Conduid
  2. AI
  3. server
MCP server · AI

server

Shared utilities and server orchestration for building MCP (Model Context Protocol) servers

Unclaimed ai
39Low

Scored 5 months ago · breakdown

About server

server is an MCP server published by git+mcp-z in the AI category: shared utilities and server orchestration for building MCP (Model Context Protocol) servers.

Install

Install
npx @mcp-z/server
Claude Code
claude mcp add server-gitmcpz -- npx -y @mcp-z/server
npx
npx -y @mcp-z/server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about server

Powered by Claude · Grounded in docs

I know everything about server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

README

@mcp-z/server

Docs: https://mcp-z.github.io/server Shared utilities for building MCP servers with stdio + HTTP transports, middleware composition, and file serving.

Common uses

  • Parse transport config for stdio or HTTP
  • Wire MCP servers to stdio or Express HTTP
  • Compose auth/logging middleware
  • Serve generated files (PDFs, CSVs)
  • Build field/pagination/shape schemas

Install

npm install @mcp-z/server

Peer dependencies:

npm install @modelcontextprotocol/sdk express

Quick start

import express from 'express';
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { parseConfig, connectStdio, connectHttp } from '@mcp-z/server';

const mcpServer = new McpServer({ name: 'my-server', version: '1.0.0' });
const config = parseConfig(process.argv.slice(2), process.env);

if (config.transport.type === 'stdio') {
  await connectStdio(mcpServer, { logger: console });
} else {
  const app = express();
  await connectHttp(mcpServer, { logger: console, app, port: config.transport.port });
}

Registration helpers

  • registerTools(server, tools)
  • registerResources(server, resources)
  • registerPrompts(server, prompts)

Middleware composition

Use composeMiddleware with middleware layers (auth, logging, etc.):

import { composeMiddleware, createLoggingMiddleware } from '@mcp-z/server';

const logging = createLoggingMiddleware({ logger: console });
const composed = composeMiddleware({ tools, resources, prompts }, [
  { withTool: authMiddleware.withToolAuth, withResource: authMiddleware.withResourceAuth, withPrompt: authMiddleware.withPromptAuth },
  { withTool: logging.withToolLogging, withResource: logging.withResourceLogging, withPrompt: logging.withPromptLogging }
]);

File serving utilities

For servers that generate files (PDFs, CSVs, images):

  • reserveFile() - Reserve a file path for streaming writes
  • writeFile() - Write a buffer directly
  • getFileUri() - file:// or http:// URI based on transport
  • createFileServingRouter() - Express router to serve files
import { reserveFile, getFileUri, createFileServingRouter } from '@mcp-z/server';

const reservation = await reserveFile('report.csv', { resourceStoreUri: 'file:///tmp/files' });
const uri = getFileUri(reservation.storedName, transport, {
  resourceStoreUri: 'file:///tmp/files',
  baseUrl: 'https://example.com',
  endpoint: '/files'
});

const router = createFileServingRouter({ resourceStoreUri: 'file:///tmp/files' }, { contentType: 'text/csv' });
app.use('/files', router);

Schema helpers

Helpers for consistent tool inputs and output shaping:

  • createFieldsSchema() / parseFields() / filterFields()
  • createPaginationSchema()
  • createShapeSchema() / toColumnarFormat()

Requirements

  • Node.js >= 24

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About server

How do I install server?

Run npx @mcp-z/server, then add the server to your MCP client's configuration.

Is server safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.