🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

agent-common

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-common

Shared foundation for agent-* MCP servers — SQLite, REST, WebSocket, MCP, cleanup, events, dashboard scaffolding

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
131
59.76%
Maintainers
1
Weekly downloads
 
Created
Source

agent-common

Shared foundation for agent-* MCP servers (agent-comm, agent-tasks, agent-knowledge, agent-discover).

What it provides

  • storage — better-sqlite3 wrapper with WAL pragmas, transaction helper, migration runner
  • transport/rest — node:http router with :param matching, JSON helper, CORS preflight, body reader, static file serving
  • transport/ws — WebSocket server with full-state-on-connect, DB-fingerprint polling for cross-process delta updates, ping/pong heartbeat, max-connection cap
  • transport/mcp — JSON-RPC over stdio, tool dispatcher, ToolDefinition type
  • domain/events — typed in-process EventBus with wildcard subscribers
  • domain/cleanup — base CleanupService with retention timer, startup reset hook
  • dashboard — auto-start with port leader-election (graceful skip if port in use)
  • package-meta — runtime read of name + version from a consumer's package.json
  • fts — FTS5 virtual table + trigger boilerplate, search helper with LIKE fallback

Who uses it

Internal: the four agent-* MCP servers. The package is host-agnostic — no ~/.claude paths or Claude-specific config baked in.

License

MIT — see LICENSE.

Keywords

mcp

FAQs

Package last updated on 08 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts