mirror of
https://github.com/gitroomhq/postiz-agent.git
synced 2026-09-14 13:46:24 +08:00
b4960beefa
Add plugins/dsh-postiz, an installable DeepSeek Harness bundle (`dsh plugin --profile web add "github:gitroomhq/postiz-agent#path:/plugins/dsh-postiz"`). - cordis.patch.yml mounts a `postiz` provider row plus one @deepseek-ai/dsh-mcp-client row pointed at https://mcp.postiz.com/mcp (streamable HTTP, Bearer auth from POSTIZ_API_KEY; baseUrl overridable for self-hosted instances) - the provider exposes ctx.postiz (url/headers) for the mcp row's !!js config and registers a `postiz` skill covering the integrationList → integrationSchema → schedulePostTool workflow and HTML content rules - node:test unit tests; verified against dsh 0.1.5-rc: the mcp row activates, sends the Bearer header, and retries on auth failure - README / CHANGELOG entries; ignore plugin-local lockfiles Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
39 lines
1.6 KiB
YAML
39 lines
1.6 KiB
YAML
# Patch layer contributed by the dsh-postiz bundle.
|
|
#
|
|
# Two rows:
|
|
# 1. `postiz` - this package's provider plugin. Reads the Postiz API key
|
|
# (POSTIZ_API_KEY by default), exposes `ctx.postiz` with the
|
|
# MCP endpoint URL and auth headers, and registers the
|
|
# `postiz` skill that teaches the agent the posting workflow.
|
|
# 2. `postiz-mcp` - one @deepseek-ai/dsh-mcp-client instance that connects to
|
|
# the Postiz MCP server over streamable HTTP and registers
|
|
# its tools as mcp__postiz__* (integrationList,
|
|
# integrationSchema, schedulePostTool, ...).
|
|
#
|
|
# Configuration (override the `postiz` row in your profile's cordis.patch.yml):
|
|
# apiKeyEnv - env var holding the Postiz API key (default: POSTIZ_API_KEY)
|
|
# apiKey - inline key; prefer the env var or a .env file in $DSH_HOME
|
|
# baseUrl - Postiz host (default: https://mcp.postiz.com; self-hosted
|
|
# instances use their own backend URL)
|
|
# skill - register the `postiz` workflow skill (default: true)
|
|
- insert:
|
|
- id: postiz
|
|
name: dsh-postiz
|
|
config:
|
|
apiKeyEnv: POSTIZ_API_KEY
|
|
baseUrl: https://mcp.postiz.com
|
|
- id: postiz-mcp
|
|
name: '@deepseek-ai/dsh-mcp-client'
|
|
inject: [postiz]
|
|
config:
|
|
transport: streamable-http
|
|
serverName: postiz
|
|
url: !!js ctx.postiz.url
|
|
headers: !!js ctx.postiz.headers
|
|
failOnStartupError: false
|
|
reconnect:
|
|
enabled: true
|
|
initialDelayMs: 2000
|
|
maxDelayMs: 30000
|
|
maxAttempts: 10
|