0.0.7 • Published 7 months ago
@mcp-sdk/server v0.0.7
@mcp-sdk/server
A TypeScript SDK for the Model Context Protocol (MCP) server implementation.
Installation
# Using npm
npm install @mcp-sdk/server
# Using yarn
yarn add @mcp-sdk/server
# Using pnpm
pnpm add @mcp-sdk/server
# Using bun
bun add @mcp-sdk/server
Usage
Basic Example
import { MCP } from '@mcp-sdk/server';
// Initialize MCP
const mcp = new MCP();
// Configure and use as needed
// ... your code here
// Start the server
mcp.listen();
Example with Authentication
import { MCP } from '@mcp-sdk/server';
// Initialize MCP with authentication
const mcp = new MCP({
auth: {
// Configure authentication options here
}
});
// Start the server
mcp.listen();
API Documentation
Development
This project uses Changesets for managing releases and tsup for bundling.
Setup
# Install dependencies
bun install
Scripts
bun run build
: Build the packagebun run dev
: Start development mode with watchbun run lint
: Run TypeScript type checkingbun run changeset
: Create a new changesetbun run version
: Update versions and changelogsbun run release
: Build and publish the package
License
MIT