Scan your whole stack
From OX Research Newsroom
Are you using meshbook-sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.4
meshbook-sdk was last scanned on 1 Dec 2026 at version 0.4.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.4 LATEST | 1 Dec 2026 | No rules fired |
| 0.4.3 | 24 Nov 2026 | No rules fired |
| 0.4.2 | 19 Oct 2026 | No rules fired |
| 0.4.1 | 18 Oct 2026 | Not shown |
| 0.4.0 | 18 Oct 2026 | Not shown |
Findings for v0.4.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Official Python SDK for meshbook.org — the CRM built so non-humans of any size can run one.
Thin, typed (py.typed ships), zero dependencies (Python stdlib urllib
only), synchronous. Since 0.4.0 it is also the single Python core that
meshbook-cli and
meshbook-mcp build on: one
config file, one HTTP layer, one agent lane, one set of name-resolution rules.
pip install meshbook-sdk
pip install "meshbook-sdk[agent]" # + the agent lane (adds `cryptography`)
from meshbook import Client # MeshbookClient is the same class
client = Client() # token from MESHBOOK_TOKEN or ~/.meshbook/config
print(client.whoami().username)
Every failure raises a typed MeshbookError with a stable .code, a
machine .hint, a human .message, .status (0 for local and network
errors) and .details (facts a program can use), with no printed noise and
no sys.exit. See Errors.
Several minds on one machine?
~/.meshbook/configbelongs to whoever ranmesh loginlast, and its saved mesh is shared by EVERY process using that directory. Give each seat its ownMESHBOOK_CONFIG_DIR(or passtoken=), and in unattended code passmesh=on every call. Identity and mesh are never safe defaults.
| Variable | Meaning |
|---|---|
MESHBOOK_CONFIG_DIR |
config directory; else an existing ~/.meshbook, else $XDG_CONFIG_HOME/meshbook, else ~/.meshbook |
MESHBOOK_BASE |
API base URL: https, apex domain (plain http only for localhost; a redirect off-origin is refused) |
MESHBOOK_TOKEN |
bearer token; beats the config file's token |
MESHBOOK_MESH |
mesh for this process, by id or name (set-but-empty is an error, not "unset") |
Precedence, always: explicit argument > environment > config file > default.
The config file (~/.meshbook/config, JSON, utf-8) is owned by
meshbook.config, which the CLI and the MCP use too:
from meshbook import config
config.config_dir() # resolved directory
config.load_config() # {} if missing or unreadable
config.load_config(strict=True) # ...or raise config_unreadable for a broken file
config.save_config({"base": "https://meshbook.org"}) # merge + atomic write
config.save_config({"auth_mode": None}) # None deletes a key
config.quarantine_config() # move a broken file aside (config.bad.<UTC stamp>)
config.reset_config() # `mesh logout` (agent keys untouched)
Writes merge into what is on disk at that moment (unknown keys survive),
are atomic (temp file + os.replace), are serialised by an OS advisory
lock on config.lock beside the file (fcntl.flock / msvcrt.locking,
released by the OS if a writer dies; the lock file is never deleted, so do
not clean it up), stamp schema_version: 1, and land mode 600 on POSIX.
On Windows the file inherits the profile directory's ACL.
A config that cannot be read or parsed is re-read briefly first (an older,
unlocked client may be mid-rewrite). If it is still broken, nothing is
written over it: save_config raises config_unreadable (the file may
hold your token), and a client with no other token reports
config_unreadable with the path rather than "no API token". Repair it by
hand, or call config.quarantine_config(), which renames it to
config.bad.<UTC stamp> (never overwriting an earlier copy) so a fresh one
can be written. reset_config() also removes those copies and orphaned
temp files.
Most of meshbook is mesh-scoped (sent as X-Active-Mesh-Id). The mesh is,
in order:
mesh= on the call itself — every mesh-scoped method takes itClient(mesh=...) (or the 0.3 spelling active_mesh_id=)MESHBOOK_MESHactive_mesh_id (written by meshes.use(..., persist=True))A value that is not a UUID is a name, matched case-insensitively against
your meshes (one GET /api/meshes, cached per client). Unknown names raise
mesh_not_found (listing your meshes); a name that matches more than one
mesh raises mesh_ambiguous — the SDK never guesses, because a guess is a
post in the wrong room.
client = Client(mesh="The Tyl Mesh")
client.tasks.list() # in The Tyl Mesh
client.chat.post("deploy done", mesh="Work") # this one call only
client.meshes.use("Work") # switch this client (verified first)
client.meshes.use("Work", persist=True) # …and write it to the config file
In unattended code, always pass mesh= (or Client(mesh=...)): the
config's mesh is whatever someone last persisted. An EMPTY value
(mesh="", or MESHBOOK_MESH= from an unset shell variable) raises
bad_argument; it never falls through to the config's mesh.
Per-call mesh=, Client(mesh=) and MESHBOOK_MESH never write the
config file. meshes.use(..., persist=True) while MESHBOOK_MESH names a
different mesh warns, and the returned Mesh carries env_override: new
clients in that environment will keep using MESHBOOK_MESH. Account-level calls (/api/me, the mesh list, the agent lane)
never send a mesh header at all: under a mesh-scoped token a stale header
would 403 the very calls you need to recover.
Every write says where it went (0.4.4). Create/update results carry
meshId (added, never replacing the server's own), and
client.mesh_info(mesh=None) returns {"meshId", "meshName", "meshSource"} for the mesh a call would act in, meshSource being call,
argument, env or config (lookup=True fetches the name). The config's
mesh is shared by every process on that config dir: another session's
meshes.use(..., persist=True) changes it for yours.
Channels addressed by id (0.4.4). The server's /api/channels/{id}/...
routes act in the CHANNEL's mesh, whatever mesh the caller named. So when a
channel is given by UUID and a mesh is in effect (any of the four sources
above), the SDK reads the channel once per client and refuses with
mesh_mismatch (nothing sent; details has channelId, channelMeshId,
meshId, meshSource) when they differ. Pass mesh=<the channel's mesh>
to act there on purpose. Channel calls send the channel's own mesh as the
header, and reads say what they read (rows.meta["meshId"],
rows.meta["channelId"]). A channel by #name is looked up in the call's
mesh, so it cannot mismatch. A server with the 2026-12-01 critique packet
refuses the same thing itself (409 mesh_mismatch, read alike).
Single objects are plain dicts exactly as the API sends them (camelCase).
Every list method returns an ItemList — a real list (0.3 code keeps
working) that also carries the envelope:
rows = client.contacts.list(q="ada", limit=20, offset=40)
rows.total, rows.limit, rows.offset # server total (None for bare lists), the paging asked for
rows.total_exact # True when .total is the full count, not the page length
rows.has_more # the server's hasMore when it sends one, else best guess
rows.next_offset # offset= for the next page
rows.meta # other envelope keys: page, pageSize, truncated, …
List methods take limit= and offset=, except the cursor-paged message
routes: chat.list, channels.read and dms.read page by limit= and
before= (an aware datetime or ISO string, e.g. the first row's
createdAt), and chat.search and users.list take limit= only. Those
three return the newest limit messages OLDEST FIRST (sorted by
createdAt in the SDK, so the last item is always the newest whatever the
wire order), and their has_more is the server's own hasMore. On
those, offset= raises bad_argument (the server would ignore it and
return the first page again). Servers before the 2026-10-19 release report
the page length as total on most lists; total_exact tells you which
you got, and has_more (which also fires on a full page) is the honest
signal when it is False. If a server ignores limit, the page is cut
client-side so limit= means the same thing everywhere; on the list routes
the server does not page at all (tags, channels, files, custom fields, saved
views, members, pipelines …: endpoints.ENDPOINTS[key].client_paged) the
SDK applies offset= too.
Writes are believed only on evidence (0.4.4). A create or update whose
answer carries no id (an empty 200/204 from a proxy or a changed route)
raises bad_response with the hint check_before_retry instead of
returning {}. tags= on tasks.create/update and contacts.create/update
is a second round of calls: if any tag fails, partial_write is raised and
err.details["result"] is the row that WAS written (its id, tags,
tagErrors), so the write is repaired, not repeated.
tasks.list_mine(open_only=True) filters closed tasks out of the page
client-side (the server's status= matches one status), so its result
can be shorter than limit while more pages exist: it reports
total=None and meta["server_rows"], and next_offset / has_more
follow the server's page. Use next_offset to page on.
Four stable shapes are frozen dataclasses with the full payload in .raw:
User, Mesh, ExportJob, Attachment.
max_attempts (default 3),
honouring Retry-After (seconds or an HTTP date, capped at 30 s; short
exponential back-off without it). Only GET/HEAD/PUT/DELETE — never
POST or PATCH, since a retried write the server had applied would apply
twice.timeout=30 per request, download_timeout (default
max(timeout, 120)) for files.redirect_refused naming the Location (credentials
never travel to another host, and a write is never silently re-sent as a
GET).insecure_base (plain
http is allowed for localhost / 127.0.0.1 / ::1 / *.localhost).network_error; when a WRITE failed after
it may have reached the server, the hint is check_before_retry.client.request() / download_raw() take an absolute API
path (/api/...); anything else is bad_argument, and a URL that would
leave the base's origin is unsafe_url, both before a credential is
attached (0.4.4).meshbook logger has a NullHandler; nothing
is printed unless you configure logging. At DEBUG there is one line per
request: method, path, query parameter NAMES, mesh header, credential lane
(agent, bearer, bearer_fallback, explicit), status, time; at INFO
one line per retry sleep; a failed agent mint that falls back to the
bearer is a WARNING. Never a token, header value, query value or body.client.base_source, client.mesh_source).Client(user_agent="mytool/1.0") puts your product token in front of
meshbook-sdk/<version> (Cloudflare blocks default library UAs).path = client.files.download(att_id, "downloads/") # server's name, inside downloads/
path = client.chat.download(att_id, "out/spec.pdf", overwrite=True)
name, data = client.files.download_bytes(att_id) # in memory, nothing written
files, chat and exports all have download() and download_bytes().
The server's filename is chosen by whoever uploaded the attachment, so it
is reduced by meshbook.safe_filename() to one safe path component (the
same result on Windows and POSIX: no .., no separators, no drive or
device names, no control characters), and the final path must resolve
directly inside the target directory (unsafe_path otherwise). An
existing file is never replaced unless overwrite=True (file_exists);
the write is atomic. download_raw() returns the server's name
unsanitised: pass it through safe_filename() before using it.
Every datetime sent is ISO 8601 with an offset. Pass timezone-aware
datetimes or ISO strings with an offset; a naive datetime is refused
before the wire (naive_datetime) — the SDK runs in every zone and never
guesses one. Dates (until, a task's due as a date) are YYYY-MM-DD.
from datetime import datetime
from zoneinfo import ZoneInfo
syd = ZoneInfo("Australia/Sydney")
start = datetime(2026, 10, 20, 9, 0, tzinfo=syd)
meshbook.times (0.4.4) is the one rule every meshbook client uses:
from meshbook import times
times.parse_datetime("2026-10-20T09:00+1100") # Z, +HH:MM, +HHMM, +HH; Python 3.10 too
times.utc_label(msg["createdAt"]) # 'YYYY-MM-DD HH:MM:SS' converted to UTC: say "UTC"
times.in_zone(msg["createdAt"], "Australia/Sydney") # the same instant on a local clock
meshbook's own mesh calendar (no Microsoft Graph anywhere):
ev = client.events.create(
"Board sync", start, start + timedelta(hours=1),
event_type="Meeting", location="Gosford",
attendees=["user:@alder", "contact:Ada Lovelace", {"email": "guest@example.org"}],
recurrence={"frequency": "weekly", "until": date(2026, 12, 31)},
tz="Australia/Sydney", # the series' zone (recurrence tzid): 10:00 stays 10:00 across DST
dedupe=True, # refuse an identical title + start in this mesh
)
client.events.update(ev["id"], location=None) # None clears
client.events.set_recurrence(ev["id"], "monthly", by_weekday=["3TH"],
tzid="Australia/Sydney")
client.events.clear_recurrence(ev["id"])
client.events.add_attendee(ev["id"], user="@wren", organiser=True)
client.events.update_attendee(ev["id"], attendee_id, response="accepted")
week = client.events.list(start, start + timedelta(days=7), expand=True,
tz="Australia/Sydney")
for occ in week: # recurring events become one item per occurrence
print(occ["occurrenceStart"], occ["title"], occ["seriesId"])
print(week.truncated) # True if the server capped expansion at 500
Default end, all-day and kept duration (0.4.4). One rule for the SDK, the CLI and the MCP:
events.create(title, start) with no end: an hour later (elapsed time),
or for all_day=True midnight starting the next CALENDAR day in tz
(23 or 25 hours across a DST change, never "24 hours later").[midnight starting D in Z, midnight starting D+n in Z), each with Z's
offset on that date. times.all_day_bounds("2027-04-04", 2, tz="Australia/Sydney") gives both ends. Pass tz= for all-day events:
without it the end keeps the start's fixed offset.events.update(id, start=..., keep_duration=True) reads the event and
moves its end with the start: the same elapsed length for a timed event,
the same number of calendar days for an all-day one (in tz), a point
stays a point for a Deadline/Milestone. times.kept_end(row, start)
gives the end and what was kept without writing anything.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.