huangjuhua-aigc/dsh-a2a ↗★ 2

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

Package
dsh-a2a-server
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.2 <0.3.0
Cordis peer range
^4.0.5
Version
0.4.1
License
MIT
Last updated
Nov 5, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-a2a-server@0.4.1

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
KeyDefaultMeaning
basePath/a2aJSON-RPC route
publicUrlderived from HostRoutable URL published on the card
provider · model—Model route for every agent this server creates
card.publictrueServe 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
trustedPeersall authenticatedAccess allow-list for conversation and scoped file reads; [] denies everyone
rateLimitPerMinute60Sliding window per identity
maxContextTurns5Messages accepted per context before rejected
sendModeblockDefault when the client sends no returnImmediately
blockTimeoutMs60000Maximum blocking wait; returns the current task on timeout so the client can poll
contextIdleTtlMs1800000Idle time before a context's agent is released
maxResidentContexts64Ceiling on resident contexts
maxConcurrentTasks / maxConcurrentTasksPerPeer8 / 2Atomic task admission; excess requests receive 429
maxTasksPerPeerPerDay200Persisted task allowance per identity per UTC day
taskTimeoutMs120000Cancels execution when its deadline expires
maxModelCallsPerTask / maxOutputTokens8 / 4096Model request and per-request output limits
maxInputChars / maxOutputChars32000 / 64000Input/output text limits
streamHeartbeatMs / maxStreamsPerTask15000 / 4Heartbeat interval and subscription cap
maxStreamBufferBytes262144Disconnect a stream whose buffered frame exceeds the cap
storage.directory~/.dsh-a2a/Private checkpoints; one process per directory
storage.retentionMs / storage.maxContexts86400000 / 256Retention after last activity, and maximum stored contexts
storage.maxContextBytes4000000Maximum checkpoint bytes per context
isolation.workspaceModeper-peerLegacy 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.privateRootdeployment-specific home directoryPrivate workspace parent, outside public data
isolation.executionread-onlySelect 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.socketPathdeployment-specificWindows named pipe or private Unix socket for owner RPC and monitoring
push.enabledfalseReserved; 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 }