Browser developer tools

Read plain Markdown

# Browser developer tools

JustClaw-It includes five deterministic utilities under [/tools](/tools). They run in the browser, require no account or hosted AI key, and do not add tools to the MCP server.

## Privacy and execution boundary

- Generate runs locally in the browser. The input is not posted to JustClaw-It.
- The pages do not store input in cookies or local storage.
- Downloads are made from an in-memory browser Blob.
- Do not paste live secrets. The config generator emits placeholders, and the linter may display redacted evidence from the supplied config.
- There is no server-processing fallback in this release. If one is added later, it must be a separate, explicit opt-in path with its own retention and cost disclosure.

## Versioned contracts and status

The shared browser module uses contract version `1.0.0`. Every tool is marked **beta** and returns either a typed output or structured validation issues. “Beta” means its fixtures pass but client formats and supported rule coverage can change.

| utility | route | execution | key limitation |
| --- | --- | --- | --- |
| MCP config generator | [/tools/mcp-config-browser](/tools/mcp-config-browser) | browser-only | each client has its own serializer; generated output must still be reviewed in that client |
| MCP config security linter | [/tools/mcp-security](/tools/mcp-security) | browser-only | static configuration scope only; no runtime or server-code assurance |
| README + AGENTS.md generator | [/tools/repo-docs](/tools/repo-docs) | browser-only | uses supplied facts only; unknown facts remain TODO/UNKNOWN |
| metadata + JSON-LD generator | [/tools/metadata](/tools/metadata) | browser-only | supports a deliberately small schema.org type allowlist |
| changelog + release notes generator | [/tools/release-notes](/tools/release-notes) | browser-only | SemVer bump is a suggestion that must be checked against project policy |

## MCP config generator

The generator has a separate serializer for Claude Code, Claude Desktop, Cursor, Windsurf, Codex CLI, OpenClaw, Hermes Agent and VS Code. Remote URLs must use HTTPS; HTTP is accepted only for loopback development. It never accepts or embeds a real API key.

Each result includes the target client, filename, media type, client-specific official source and the date that source was checked. A config for one client is not presented as compatible with another.

## Scoped security linter

The linter recognises the supported JSON, TOML and YAML MCP client config families. It checks only covered static patterns, including possible hard-coded secrets, remote HTTP, unexpected URL schemes, shell interpreters, unpinned `npx` packages, wildcard origins and explicit fail-open flags.

Results use three states:

- `findings` — at least one covered rule produced evidence.
- `no_findings_in_scope` — no covered rule fired; this is not a security pass or certification.
- `insufficient_data` — input was empty, unrecognised or otherwise inadequate; this is never converted into a pass score.

SARIF 2.1.0 is downloadable for evidence transfer to code-review systems.

## Repository docs generator

The generator requires a project name and summary. Optional repository URL, stack, commands, licence, rules and protected paths are copied from the supplied fact object. Missing facts remain explicit instead of defaulting to MIT, a framework, a package manager or a command.

## Metadata generator

The generator validates absolute URLs, restricts schema.org types to its documented allowlist, escapes HTML attributes, and escapes `<`, `>` and `&` inside JSON-LD so supplied text cannot close the script element.

## Release notes generator

The generator recognises Conventional Commits `type(scope): subject`, a `!` breaking marker and `BREAKING CHANGE:` / `BREAKING-CHANGE:` footers. It groups entries, preserves optional commit references and suggests patch, minor or major according to the supplied current version and explicit zero-major policy.

## Verification

The canonical tests are in `tests/test_deterministic_tools_20261105.mjs` and run with:

```sh
node --test tests/test_deterministic_tools_20261105.mjs
```

The test set includes client serializer parsing, deterministic output, remote-HTTP rejection, secret and transport findings, fail-closed empty input, SARIF structure, unknown-fact preservation, HTML/JSON-LD injection strings, and breaking-change parsing.