Skip to content

[AI-stack FAI-7] MCP pooling primitive + ui:// resource extraction #463

Description

@rickylabs

Part of #238 (AI-stack umbrella). F-ai slice FAI-7.

Summary

MCP pooling primitive + ui:// resource extraction, built in @netscript/ai core.

Justification

createMcpTransport builds a single transport with no pooling (factory.ts:16-21); eis-chat pools multi-server keyed by id with keep-alive + ui:// extraction (analysis/F-ai/02 §2). This is new work over the now-closed #240 MCP-engine cluster — the existing StdioMcpTransport/StreamableHttpMcpTransport already carry reconnect backoff + lifecycle state, so this is a pool over them, not a rewrite.

Acceptance

  • A multi-server pool keyed by id over the existing transports; keep-alive across turns; tool-name prefixing; ui://-resource extraction surfaced to the render-ui seam.
  • Built in @netscript/ai core (no plugins/ai consumer re-hand-rolls it).
  • gate:jsr: @netscript/ai/mcp surface deno doc --lint clean on the full export map; deno publish --dry-run green.

Dependencies

  • Dep: none. Blocks: FAI-8, FAI-14.

Milestone

0.0.1-beta.6 (beta.6 flagship — MCP pooling + widgets).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions