dsh-a2a-server
Inbound A2A (Agent2Agent) protocol server for DeepSeek Harness: publish an Agent Card and let any A2A-compliant peer submit tasks to a harness agent
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-a2a-server@0.4.1說明文件
閱讀完整 README ↗Configuration
- id: a2a-server
name: dsh-a2a-server
config:
basePath: /a2a
publicUrl: https://agents.example.com/a2a # advertised on the card
provider: deepseek-official
model: deepseek-v4-flash
card:
name: dsh-harness
description: Answers questions using code and text in the authorized directory.
public: true
skills:
- id: general
name: general
description: Chat and scoped file reading.
tags: [coding, research]
extendedSkills: # authenticated peers only
- id: internal
name: internal diagnostics
description: Explains project documentation from the authorized directory.
tags: [internal]
provider:
organization: Example Inc.
url: https://example.com
peers:
alice: { tokenEnv: A2A_PEER_ALICE }
bob: { tokenEnv: A2A_PEER_BOB }
trustedPeers: [alice]
rateLimitPerMinute: 60
maxContextTurns: 5
sendMode: block
blockTimeoutMs: 60000
contextIdleTtlMs: 1800000
maxResidentContexts: 64
isolation:
workspaceMode: per-peer
workspaceRoot: /srv/dsh/a2a
peerWorkspaces:
alice: /srv/project
push:
enabled: false
| Key | Default | Meaning |
|---|---|---|
basePath | /a2a | JSON-RPC route |
publicUrl | derived from Host | Routable URL published on the card |
provider · model | — | Model route for every agent this server creates |
card.public | true | Serve the card without a credential |
card.skills | [] | Declared skills; falls back to one general entry |
card.extendedSkills | [] | Skills revealed only through GetExtendedAgentCard |
peers | {} | Identity → credential reference name |
trustedPeers | all authenticated | Access allow-list for conversation and scoped file reads; [] denies everyone |
rateLimitPerMinute | 60 | Sliding window per identity |
maxContextTurns | 5 | Messages accepted per context before rejected |
sendMode | block | Default when the client sends no returnImmediately |
blockTimeoutMs | 60000 | Maximum blocking wait; returns the current task on timeout so the client can poll |
contextIdleTtlMs | 1800000 | Idle time before a context's agent is released |
maxResidentContexts | 64 | Ceiling on resident contexts |
maxConcurrentTasks / maxConcurrentTasksPerPeer | 8 / 2 | Atomic task admission; excess requests receive 429 |
maxTasksPerPeerPerDay | 200 | Persisted task allowance per identity per UTC day |
taskTimeoutMs | 120000 | Cancels execution when its deadline expires |
maxModelCallsPerTask / maxOutputTokens | 8 / 4096 | Model request and per-request output limits |
maxInputChars / maxOutputChars | 32000 / 64000 | Input/output text limits |
streamHeartbeatMs / maxStreamsPerTask | 15000 / 4 | Heartbeat interval and subscription cap |
maxStreamBufferBytes | 262144 | Disconnect a stream whose buffered frame exceeds the cap |
storage.directory | ~/.dsh-a2a/ | Private checkpoints; one process per directory |
storage.retentionMs / storage.maxContexts | 86400000 / 256 | Retention after last activity, and maximum stored contexts |
storage.maxContextBytes | 4000000 | Maximum checkpoint bytes per context |
isolation.workspaceMode | per-peer | Legacy migration field; visitors now have an external private cwd |
isolation.workspaceRoot | — | Required; shared public read-only data root |
isolation.peerWorkspaces | {} | Legacy per-identity read-root override |
isolation.privateRoot | deployment-specific home directory | Private workspace parent, outside public data |
isolation.execution | read-only | Select microsandbox for per-visitor VMs (Portal default); legacy docker also supported |
preamble.files | [".hop/handoff.md"] | Host briefing files (agent-level: resolved against the workspace root and shared by every visitor; absolute paths pass through), merged into each context's first message; absent files are skipped |
briefing.prompt | — | Optional single-update instruction executed as the bounded local owner at startup and hourly; configured by Portal, requires owner administration |
briefing.settingsFile | — | Absolute path to a JSON { "enabled": boolean } preference; absent file means enabled, observed every 5 seconds. Disabling preserves the current briefing and lets active work finish; restart timing is persisted |
admin.tokenEnv | — | Credential reference for local owner and monitoring requests; rejected by public RPC |
admin.socketPath | deployment-specific | Windows named pipe or private Unix socket for owner RPC and monitoring |
push.enabled | false | Reserved; see Boundaries |
Configuration is refused at load when isolation.workspaceRoot is absent, a peer
name is not [A-Za-z0-9][A-Za-z0-9_-]*, a tokenEnv is not a POSIX identifier,
trustedPeers or peerWorkspaces names an undeclared peer, or basePath does
not start with /.
Credentials
Configuration carries credential references, never values:
peers:
alice: { tokenEnv: A2A_PEER_ALICE }