JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 103
  • Score
    100M100P100Q68784F
  • License MIT

mcp tool kit shared

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mcp-tool-kit/shared) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    create-mcp-kit

    A CLI tool to create MCP (Model Context Protocol) applications with ease.

    Features

    • 🚀 Quick project scaffolding
    • 📦 TypeScript support out of the box
    • 🛠️ Built-in development tools
    • 🔧 Configurable project templates

    Usage

    npm create mcp-kit@latest

    or

    yarn create mcp-kit@latest

    or

    pnpm create mcp-kit@latest

    Project Structure

    The generated project will have the following structure:
    
    ├── src/
    │   ├── tools/          # MCP tools implementation
    │   ├── resources/      # MCP resources implementation
    │   ├── prompts/        # MCP prompts implementation
    │   ├── services/       # Server implementations (stdio/web)
    │   └── index.ts        # Entry point
    ├── tests/              # Test files
    ├── scripts/            # Build and development scripts
    ├── .github/            # GitHub Actions workflows
    └── package.json

    Development Scripts

    • npm run dev - Start the development server in stdio mode
    • npm run dev:web - Start the development server in web mode
    • npm run build - Build the project
    • npm run test - Run tests
    • npm run coverage - Generate test coverage report

    Features

    MCP Tools

    Implement custom tools that can be used by MCP clients:

    server.registerTool(
      'GetData',
      {
        title: 'Get Data',
        description: 'Get Data',
        inputSchema: {
          keyword: z.string().describe('search keyword'),
        },
      },
      async ({ keyword }) => {
        // Your implementation
      }
    )

    MCP Resources

    Define resources that can be accessed by MCP clients:

    server.registerResource(
      'search',
      new ResourceTemplate('search://{keyword}', {
        list: undefined,
      }),
      {
        title: 'Search Resource',
        description: 'Dynamic generate search resource',
      },
      async (uri, { keyword }) => {
        // Your implementation
      }
    )

    MCP Prompts

    Create reusable prompts for MCP clients:

    server.registerPrompt(
      'echo',
      {
        title: 'Echo Prompt',
        description: 'Creates a prompt to process a message.',
        argsSchema: {
          message: z.string(),
        },
      },
      ({ message }) => {
        // Your implementation
      }
    )

    Contributing

    Feel free to dive in! Open an issue or submit PRs.

    Standard Readme follows the Contributor Covenant Code of Conduct.

    Contributors

    This project exists thanks to all the people who contribute.

    License

    MIT © MichaelSun