Skip to main content

Connect lab instruments to AI assistants

Project description

teasel

Connect lab instruments to AI assistants.

teasel is a CLI and TUI for configuring which instruments are available to your AI assistant. It browses the community instrument registry, prompts for connection details, and writes a .mcp.json file that Claude Code (or any MCP-compatible assistant) picks up automatically.

Quick start

uvx teasel

This opens the interactive TUI. Browse instruments, select one, enter your connection details, and the config is written.

CLI commands

# Add an instrument (prompts for required config)
uvx teasel add lecroy-wavesurfer

# Add with config inline
uvx teasel add lecroy-wavesurfer --set LECROY_HOST=192.168.1.111

# List configured instruments
uvx teasel list

# Remove an instrument
uvx teasel remove lecroy-wavesurfer

# Regenerate .mcp.json from saved state
uvx teasel apply

What it generates

teasel writes a .mcp.json in the current directory:

{
  "mcpServers": {
    "lab": {
      "command": "uvx",
      "args": ["teasel-server"],
      "env": {
        "LECROY_HOST": "192.168.1.111",
        "PM5190_PORT": "/dev/ttyUSB0"
      }
    }
  }
}

Claude Code reads this file and starts teasel-server automatically. You only need to run teasel once per project, or whenever your instrument setup changes.

Instrument state

Configured instruments are saved to ~/.config/teasel/instruments.toml. Running teasel apply in any directory regenerates .mcp.json from this state.

License

AGPL v3 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teasel-0.3.1.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teasel-0.3.1-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file teasel-0.3.1.tar.gz.

File metadata

  • Download URL: teasel-0.3.1.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teasel-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1347734811ef0108c3a784e80de57cc5df99cba44968eff0c3ef3be2ae420f2a
MD5 c8c4bc69efa9655494b55149a543ce9b
BLAKE2b-256 45ebb5c5a29125b1d9dd8b80634e38d4436401c451e6f4f61f7e07fa3b0d79d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for teasel-0.3.1.tar.gz:

Publisher: release.yml on teasel-tools/teasel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teasel-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: teasel-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teasel-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0af7ddfadf35fb0328742f4eb5fd4d6a649fd4b88196b22820c24d54f55a454c
MD5 a5f5fc2556d7549354f39f2c947c0f12
BLAKE2b-256 bb06b5c12a704ba6c47a2edae50852c8c970b2e31ac2dabe5e488aeabeb2851d

See more details on using hashes here.

Provenance

The following attestation bundles were made for teasel-0.3.1-py3-none-any.whl:

Publisher: release.yml on teasel-tools/teasel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page