open-index/open-npm huggingface dataset:
npm package: @markvp/mcp-lambda-layer
Description: DEPRECATED - Use @markvp/mcp-lambda-sam instead
Author: Mark Van Proctor
Latest version: 1.0.9
Deprecated: This package has been renamed to @markvp/mcp-lambda-sam

# MCP Lambda Server

A Node.js package that provides MCP (Model Context Protocol) server infrastructure for AWS Lambda functions with SSE support.

## Features

- Adapts the MCP TypeScript SDK to work with AWS Lambda
- Supports Server-Sent Events (SSE) through Lambda response streaming
- Handles CORS and HTTP method validation
- TypeScript support

## Important Notes

- Lambda response streaming **only works with Function URLs**. It does not work with API Gateway or Application Load Balancer.
- Only Node.js runtime is officially supported for response streaming.

## Installation

```bash
npm install @markvp/mcp-lambda-layer
```

## Usage

Create your Lambda function and import the package:

```typescript
import { MCPHandlerFactory } from '@markvp/mcp-lambda-layer';
import { z } from 'zod';

// Create MCP handler factory with your configuration
const factory = new MCPHandlerFactory({
  tools: {
    summarize: {
      params: {
        text: z.string(),
      },
      handler: async ({ text }) => {
        // Your implementation here - could be any service/model/API
        const summary = await yourSummarizeImplementation(text);
        return {
          content: [{ type: 'text', text: summary }],
        };
      },
    },
  },
  prompts: {
    generate: {
      description: 'Generate content based on a prompt',
      handler: async extra => {
        // Your implementation here - could be any service/model/API
        const result = await yourGenerateImplementation(extra.prompt);
        return {
          content: [{ type: 'text', text: result }],
        };
      },
    },
  },
});

// Export the handler directly
export const handler = factory.getHandler();
```

### Required Lambda Configuration

- Runtime: Node.js 18.x or later
- Handler: index.handler
- Memory: 128 MB minimum (adjust based on your needs)
- Timeout: 120 seconds recommended
- Function URL: Required and must have response streaming enabled
- API Gateway/ALB: Not supported with streaming

### Package Contents

This package provides:

- MCP Server implementation with SSE transport
- Protocol handling (JSON-RPC)
- Streaming response support
- Type definitions and interfaces

Your Lambda function provides:

- Tool and prompt implementations
- Business logic
- Any necessary API clients or services
- Configuration

## License

MIT
npm package: @markw65/peggy-optimizer
Description: Peggy plugin to produce optimized js
Author: markw65
Latest version: 1.0.1

# Peggy Optimizer Plugin

This package provides a peggy plugin that produces an optimized parser that will typically outperform a parser generated by peggy alone.

### Installation

```
npm install @markw65/peggy-optimizer
```

### Command line usage

Just add `--plugin @markw65/peggy-optimizer` to your normal peggy command line

```
npx peggy --plugin @markw65/peggy-optimizer [other options...] grammar.peggy
```

### Peggy API

```
const peggyOptimizer = require("@markw65/peggy-optimizer");
const peggy = require("peggy");
...
const parser = peggy.generate(source, {
    grammarSource: "grammar.peggy",
    plugins: [peggyOptimizer],
    ...otherOptions
});
```
npm package: @markwhen/mw
Description: CLI for markwhen documents
Latest version: 1.2.4

# @markwhen/mw

`mw` is the [markwhen](https://docs.markwhen.com) command line interface (CLI). You can use it to parse markwhen files and optionally render a view of it (timeline+gantt/calendar/resume).

All html output is self-contained; js and css are inlined and there are no external scripts.

## Installation

```sh
npm i -g @markwhen/mw
```

## Usage

### Output HTML

```sh
mw [serve] <input_file> [<destination>] [-o <outputType>] [-d <destination>] [-p <port>] [-s <socket_port>]
```

| Option        | Description                                                                                                                                                                                                                       |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `serve`       | If provided, will start a server at the specified `port` and watch the `input_file` for changes                                                                                                                                   |
| `outputType`  | one of `json` \| `timeline` \| `calendar` \| `resume`                                                                                                                                                                             |
| `destination` | File to write to. Output type can be inferred from the filename if `outputType` is not specified; i.e., files ending in `timeline.html` will produce the timeline view, files ending in `json` will produce the raw parse output. |
| `port`        | If serving, port to serve from                                                                                                                                                                                                    |
| `socketPort`  | If serving, socket port to serve from                                                                                                                                                                                             |

Parse markwhen document and output json:

```sh
mw project.mw
# -> outputs timeline.mw.json
```

Render a timeline view:

```sh
mw my_markwhen_file.mw timeline.html
# -> outputs timeline.html (timeline+gantt view)
```

Render a calendar view:

```sh
mw ThingsToDo.mw ThingsToDo-calendar.html
# -> outputs ThingsToDo-calendar.html (calendar view - inferred from the filename)
```

### Start a server and watch file

`mw serve <input_file>` will start a server and reflect changes to the input file.

Watch `projects.mw` and get immediate updates in `localhost:3000`:

```sh
mw serve projects.mw -o calendar
```
npm package: @markwhen/parser
Description: Markwhen parser
Author: Rob Koch
Latest version: 1.0.1

# Markwhen parser

Parse markwhen documents. Outputs a list of events given plain text.

See [markwhen.com](https://markwhen.com), [the documentation](https://docs.markwhen.com), and the [changelog](./CHANGELOG.md).

```js
import { parse } from "@markwhen/parser";

const markwhen = parse(`
title: this is my title
timezone: America/New_York

#neat:
  color: blue
  timezone: -3

2022: event

group My Group #neat
2024: another event

`);

console.log(markwhen);
```