# Min Ts Mcp Auth

> Minimal implementation of MCP server auth with TypeScript.

- **Type:** MCP server
- **Install:** `agentstack add mcp-localden-min-ts-mcp-auth`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [localden](https://agentstack.voostack.com/s/localden)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [localden](https://github.com/localden)
- **Source:** https://github.com/localden/min-ts-mcp-auth

## Install

```sh
agentstack add mcp-localden-min-ts-mcp-auth
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# min-ts-mcp-auth
Minimal implementation of MCP server auth with TypeScript.

## Security Notes

This demo always validates the access token audience (resource indicator) returned by the introspection endpoint.

Checks performed during introspection:

1. Token is successfully introspected (HTTP 200 from the authorization server).
2. `active` flag (RFC 7662) is not `false`.
3. `aud` claim (string or array) is present and at least one value matches the server's base URL (RFC 8707 resource indicator semantics).
4. Scopes are parsed into an array for later use (no specific scopes required by default).

Not implemented (could be added):
* Local JWT signature verification via JWKS (currently relies on remote introspection).
* Explicit `iss`, `typ`, `nbf`, `exp` enforcement (only `exp` is returned and stored, not validated inline).
* Caching / throttling of introspection requests.

Use this code for experimentation only; harden before production.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [localden](https://github.com/localden)
- **Source:** [localden/min-ts-mcp-auth](https://github.com/localden/min-ts-mcp-auth)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-localden-min-ts-mcp-auth
- Seller: https://agentstack.voostack.com/s/localden
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
