post-truegrit-mcp
post-truegrit-mcp installs a postiz-mcp command that combines the remote
Postiz MCP endpoint with an opt-in local
egress connector. The MCP tools and scheduling logic stay on the Postiz
server. Only allow-listed HTTPS connections can leave through the local
machine, and only while a short-lived lease is active.
Install and log in (browser, no key copy/paste)
python3 -m pip install post-truegrit-mcp
postiz-mcp login --url https://post.truegrit.dev/post/mcp --device-name my-mac
login opens your browser at Postiz. Sign in if asked, then click Connect —
the page hands the organization API key straight to a one-shot listener on
127.0.0.1 on your machine, and it is saved to ~/.config/postiz-mcp/config.json
(owner-only). Nothing to paste. Re-run postiz-mcp login any time to
re-link or switch accounts. Use --no-browser to just print the URL.
Your Postiz role must be ADMIN to read the org key.
Install and configure (manual key)
python3 -m pip install post-truegrit-mcp
postiz-mcp configure \
--url https://post.truegrit.dev/post/mcp \
--device-name my-mac
The command prompts for the API key (or accepts --api-key) and writes the
server URL, API key and device ID to ~/.config/postiz-mcp/config.json. The
file is created with owner-only permissions (0600). You can also write it by
hand:
{
"mcp_url": "https://post.truegrit.dev/post/mcp",
"api_key": "your-postiz-api-key",
"device_id": "my-mac"
}
POSTIZ_MCP_URL, POSTIZ_API_KEY and POSTIZ_DEVICE_ID override the file,
and POSTIZ_MCP_CONFIG points at a different config file. No system keyring
is used.
Install from a development checkout
git clone https://github.com/mengbingrock/post-truegrit-mcp.git
cd post-truegrit-mcp
python3 -m venv .venv-postiz-mcp
.venv-postiz-mcp/bin/python -m pip install --upgrade pip
.venv-postiz-mcp/bin/python -m pip install -e .
.venv-postiz-mcp/bin/postiz-mcp configure \
--url https://post.truegrit.dev/post/mcp \
--device-name my-mac
Editable installation means later changes from git pull are immediately
used by the installed postiz-mcp command. Windows users can replace
.venv-postiz-mcp/bin/ with .venv-postiz-mcp\\Scripts\\.
Add the local bridge to Codex:
[mcp_servers.postiz]
command = "postiz-mcp"
args = ["serve"]
Or add it to Claude Code:
claude mcp add postiz -- postiz-mcp serve
The serve process transparently forwards MCP JSON-RPC over stdio and keeps
an outbound secure WebSocket connected for local egress. It never opens a
listening port on the user's machine.
Multiple MCP clients can safely use the same configured device. A local
process lock elects one connector owner; additional serve processes continue
forwarding MCP calls without replacing the owner or interrupting an active
egress lease. If the owner exits, a waiting process automatically takes over.
On-demand egress
The connector only relays TLS connections (port 443) to an allowlist of
first-party hosts: ChineseInLA, and — since 0.1.5 — Xiaohongshu/RedNote
(*.xiaohongshu.com, *.xhscdn.com, *.rednotecdn.com, *.rednote.com, *.xhslink.com,
*.xhs.cn). A server with REDNOTE_PROXY enabled routes RedNote login and
publishing through your machine so Xiaohongshu sees your residential IP; the
server starts and stops the lease automatically around each operation.
With the MCP client running, an agent can call egressProxyStartTool,
egressProxyTestTool, and egressProxyStopTool. The same controls are
available from a shell:
postiz-mcp proxy status
postiz-mcp proxy start --ttl-minutes 30
postiz-mcp proxy test
postiz-mcp proxy stop
The server currently permits only HTTPS port 443 to ChineseInLA domains and the IP-check host used by the test command. Leases expire automatically after 5–60 minutes. Stopping the local process immediately closes all streams.
Metadata
Release files for post-truegrit-mcp 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| post_truegrit_mcp-0.1.5.tar.gz | 24.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| post_truegrit_mcp-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.7 kB
Release files / post_truegrit_mcp-0.1.5.tar.gz
| Download URL | post_truegrit_mcp-0.1.5.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45e572ddbeee0411be5322630797433b6b5a150786763c20a03b91ed0985d287
|
|
BLAKE2b-256 checksum How to use checksums |
ef7494a5ef888c85d2f6d66973fad40262737b43c75a9bc02a1370c8be37d51a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / post_truegrit_mcp-0.1.5-py3-none-any.whl
| Download URL | post_truegrit_mcp-0.1.5-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b57889db32ee00dd76fd07ec7a2360b3ddc04591df010c483d2f4ceaca5c8bbe
|
|
BLAKE2b-256 checksum How to use checksums |
c74f7e2ff71c7c419fde461695297f660896a9109c35009469410ac0923d1192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for post-truegrit-mcp 0.1.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.