Metadata-Version: 2.4
Name: fleetmesh-field
Version: 0.5.0a1
Summary: FleetMesh Field: MCP server, development harness, living Moiré diagram engine, and grounded FleetMesh information agent
License: CC0-1.0
Project-URL: Homepage, https://www.fleetmesh.org
Project-URL: Documentation, https://www.fleetmesh.org/docs/
Project-URL: Source, https://gitlab.com/fleetmesh/field
Project-URL: Issues, https://gitlab.com/fleetmesh/fleetmesh/-/issues
Keywords: fleetmesh,mcp,model-context-protocol,dev-harness,nostr,didcomm,moire,agent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Networking
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: build>=1.2; extra == "dev"
Dynamic: license-file

<p align="center">
  <img src="https://gitlab.com/fleetmesh/assets/-/raw/main/logos/logo-meshfield-lockup.svg" alt="meshfield by fleetmesh" width="420" />
</p>

# fleetmesh-field

**FleetMesh Field** is the official Model Context Protocol (**MCP**) server, local development harness, Topographic Moiré SVG engine, and grounded information agent for [FleetMesh](https://www.fleetmesh.org/).

Zero mandatory third-party dependencies — installs cleanly with Python 3.11+ via `pip` or `uvx`.

---

## Install

FleetMesh Field is an alpha, so its version is a pre-release: pin it.

```bash
pipx install fleetmesh-field==0.5.0a1     # or: pip install --pre fleetmesh-field==0.5.0a1
```

Or run it without installing anything permanent:

```bash
uvx fleetmesh-field@0.5.0a1 mcp
docker run -i --rm fleetmesh/meshfield:0.5.0a1 mcp
```

---

## For AI agents: "install the FleetMesh Field harness"

Field is a stdio MCP server. Pick whichever runner the host has, `uvx`
(preferred), `pipx`, or `docker`, and register it with the MCP client:

```json
{
  "mcpServers": {
    "fleetmesh-field": {
      "command": "uvx",
      "args": ["fleetmesh-field@0.5.0a1", "mcp"]
    }
  }
}
```

With Docker instead: `"command": "docker", "args": ["run", "-i", "--rm", "fleetmesh/meshfield:0.5.0a1", "mcp"]`.
After `pipx install`: `"command": "meshfield", "args": ["mcp"]`.

The same as one command per client:

```bash
claude mcp add fleetmesh-field -- uvx fleetmesh-field@0.5.0a1 mcp
codex mcp add fleetmesh-field -- uvx fleetmesh-field@0.5.0a1 mcp
hermes mcp add fleetmesh-field --command uvx --args fleetmesh-field@0.5.0a1 mcp
```

Check it with `meshfield --version`, or ask the agent to call
`fleetmesh_harness_doctor`. No account or key is needed: the FleetMesh
knowledge base ships inside the package. Set `OPENROUTER_API_KEY` in the
server's environment only if you want `fleetmesh_ask` to use a live model.

---

## MCP tools

| Tool | Purpose |
| :--- | :--- |
| `fleetmesh_search` | IDF-weighted search across all 102 docs, 28 concepts (`FM-01`–`FM-28`), 35+ packages, 18 Nostr kinds, and 12 DIDComm protocol families |
| `fleetmesh_ask` | Grounded FleetMesh Q&A with ambiguity/clarification detection (uses live OpenRouter DeepSeek when `OPENROUTER_API_KEY` is set) |
| `fleetmesh_packages` | Complete filterable index of PyPI, npm, crates.io, Docker Hub, GitLab repos, and install commands |
| `fleetmesh_schema_lookup` | Direct lookup for Nostr kinds (e.g. `30830`, `30834`), DIDComm URIs, and `FM-*` concepts |
| `fleetmesh_render_moire` | Generate standalone Topographic Moiré SVG illustrations (16+ archetypes, `custom_scene`, and `orb` emblem) |
| `fleetmesh_harness_doctor` | Inspect local FleetMesh dev tooling (`meshnode`, `meshctl`, Podman/Docker, kubectl, Cargo, Node, checkout dirs) |
| `fleetmesh_validate_event` | Validate FleetMesh Nostr event JSON or DIDComm v2 envelopes against wire rules & registered kinds |
| `fleetmesh_probe_node` | Probe a local or remote `meshnode` URL for `/.well-known/did.json`, `/health`, and latency |
| `fleetmesh_scaffold` | Output ready-to-run bootstrap commands for `podman`, `kubernetes`, `systemd`, or `local-fleet` |

### MCP resources and prompts

- **Resources**: `fleetmesh://kb/meta`, `fleetmesh://ecosystem`, `fleetmesh://concepts`, `fleetmesh://logo.svg`
- **Prompts**: `explore_fleetmesh`, `deploy_meshnode`, `debug_fleet`

---

## CLI & Dev Harness Usage

```bash
# Run local interactive Field web UI + /api/explore proxy on http://127.0.0.1:8789
meshfield serve

# Ask grounded FleetMesh questions from your terminal (or omit question for REPL)
meshfield ask "What is FleetMesh?"
meshfield ask "How does private visibility isolation work?"

# Inspect local dev tooling & workspace readiness
meshfield doctor

# Validate a FleetMesh Nostr event or DIDComm envelope
meshfield validate event.json

# Probe a local or production meshnode
meshfield probe http://127.0.0.1:8080

# Render a standalone Topographic Moiré SVG diagram
meshfield render orb --out field-orb.svg
meshfield render isolation_wall --out isolation.svg

# Print complete PyPI / npm / crates.io / Docker Hub / GitLab index
meshfield packages
```

---

## Licence

Dedicated to the public domain under [CC0 1.0 Universal](LICENSE).
