open-index/open-npm huggingface dataset:
npm package: @sgalinski/image-dimensions
Description: A module that allows you to use an image-height and image-width function in you css
Author: Philipp Nowinski
Latest version: 1.0.0

# image-dimensions

This module takes a string of CSS code and looks for the occurences of ```image-width()``` and ```image-height()``` and replaces them with the dimensions of the referenced images.

## Example

```css
// styles.css
body {
    background-image: url('background.jpg');
    width: image-width('background.jpg');
    height: image-height('background.jpg');
}
```

```js
// build.js
const fs = require('fs');
let css = fs.readFileSync('./foo.css', 'utf-8');
let newCss = new ImageDimensions(css, {
    imageBasePath: './images'
}).process();
fs.writeFileSync('./foo.css', newCss);
```

```css
// styles.css
body {
    background-image: url('background.jpg');
    width: 213px;
    height: 160px;
}
```

## Options

You can pass an option object as the second parameter. Right now the only option you can set is the ```imageBasePath```. The ```imageBasePath``` will be prepended to the url that gets extracted from the ```imageWidth``` and ```imageHeight``` functions.
npm package: @sgaluza/openapi-mcp-bridge
Description: Generic OpenAPI → MCP stdio bridge. Turn any API with OpenAPI spec into an MCP server.
Latest version: 0.1.3

# openapi-mcp-bridge

Generic OpenAPI → MCP stdio bridge. Turn any API with an OpenAPI 3.x spec into an MCP (Model Context Protocol) server.

## Usage

```bash
# By URL
npx @sgaluza/openapi-mcp-bridge https://api.example.com/openapi.yaml

# Local file
npx @sgaluza/openapi-mcp-bridge ./openapi.yaml

# With auth header
npx @sgaluza/openapi-mcp-bridge https://api.example.com/openapi.yaml --header "X-API-Key: pk_xxx"

# Multiple headers
npx @sgaluza/openapi-mcp-bridge https://api.example.com/openapi.yaml \
  --header "X-API-Key: pk_xxx" \
  --header "X-Custom: value"

# Auth via env (auto-detects from securitySchemes in spec)
OPENAPI_API_KEY=pk_xxx npx @sgaluza/openapi-mcp-bridge https://api.example.com/openapi.yaml
OPENAPI_BEARER_TOKEN=token123 npx @sgaluza/openapi-mcp-bridge https://api.example.com/openapi.yaml
```

## Configuration for Claude Code / MetaMCP

```json
{
  "mcpServers": {
    "my-api": {
      "command": "npx",
      "args": ["-y", "@sgaluza/openapi-mcp-bridge", "https://api.example.com/openapi.yaml"],
      "env": {
        "OPENAPI_API_KEY": "pk_xxx"
      }
    }
  }
}
```

## How it works

Each OpenAPI endpoint becomes an MCP tool:

| OpenAPI | MCP Tool |
|---------|----------|
| `operationId` | Tool name (fallback: `{method}_{path}`) |
| `summary` + `description` | Tool description |
| Path params `{id}` | Required parameters |
| Query params `?page=1` | Optional parameters |
| `requestBody` | `body` parameter (object) |
| `servers[0].url` + path | HTTP request target |

## Auth resolution

1. `--header` flags — added to every request (highest priority)
2. `OPENAPI_BEARER_TOKEN` env — `Authorization: Bearer {token}`
3. `OPENAPI_API_KEY` env — uses `securitySchemes` from spec to determine header name

## License

MIT