node-wire-slack
Slack connector for Node Wire. Lets an agent or app post messages to channels, send direct messages to users, and upload files, using a Slack bot token.
Part of Node Wire. Every call runs through the Node Wire runtime, so it gets input validation, retries with a circuit breaker, scope policy, a shared error taxonomy, and OpenTelemetry tracing. A Node Wire host exposes each action over REST, gRPC and MCP.
Install
pip install node-wire-slack
This pulls in node-wire-runtime. Pre-releases
are published as X.Y.ZbN; install one with pip install --pre node-wire-slack. To install
every connector at once, use node-wire-connectors.
The wheel is pure Python (py3-none-any) and installs on CPython 3.11, 3.12 and 3.13 on any
OS and CPU.
Actions
The connector registers as slack. MCP tool names are <connector_id>_<action>, with
dots replaced by underscores.
| Action | MCP tool | What it does |
|---|---|---|
post_message |
slack_post_message |
Posts a message, with optional Block Kit blocks, to a channel ID, #channel-name or user |
send_direct_message |
slack_send_direct_message |
Sends a private message to a user, opening the DM if needed |
upload_file |
slack_upload_file |
Uploads a file (base64 content, or a file from the attachments directory) and shares it to a channel or DM |
Configuration
Add the connector to config/connectors.yaml:
connectors:
slack:
enabled: true
exposed_via: ["rest", "grpc", "mcp"]
auth:
provider: static_token
secret_key: SLACK_BOT_TOKEN
Secrets are read through the configured secret provider (environment variables by default):
| Variable | Purpose |
|---|---|
SLACK_BOT_TOKEN |
Bot user OAuth token (xoxb-...). Needs the chat:write, files:write and im:write scopes |
NW_SLACK_ATTACHMENTS_DIR |
Optional. The only directory upload_file may read from disk (default /slack_attachments) |
NW_SLACK_UPLOAD_LIMIT_MB |
Optional. Largest file upload_file accepts, in MB (default 50, capped at 100) |
Usage
Set NW_ALLOWED_CONNECTORS=slack (comma-separate several). Node Wire loads only the
connectors listed there, and discovers them through the node_wire.connectors entry point.
A Node Wire host (the REST, gRPC or MCP server, or ConnectorFactory) then builds the connector
from the configuration above. See Use a connector.
Security notes
upload_file reads local files only from inside NW_SLACK_ATTACHMENTS_DIR. The path must be
absolute, and is refused if it resolves outside that directory, including through a symlink.
Documentation
- Node Wire on GitHub: source, issues and full documentation
- Slack setup guide: bot setup, channel resolution and error codes
- Connector reference
- Configuration
- Error codes
- Changelog
License
Apache-2.0. See LICENSE.
Metadata
Release files for node-wire-slack 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| node_wire_slack-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for node_wire_slack-1.1.0-py3-none-any.whl |
Release files / node_wire_slack-1.1.0-py3-none-any.whl
| Download URL | node_wire_slack-1.1.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51014752a378f7c7270ec278ef7237baf47341750840202de3ad1c85ca4f0a40
|
|
BLAKE2b-256 checksum How to use checksums |
918cdfd628909dd5e7235957604b0f2ef479d5e312715c009e61724dc31207dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for node-wire-slack 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for node_wire_slack-1.1.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.