Skip to content

docs(ai-mcp): document options/close()/expose modes, tidy internals#31

Merged
suleimansh merged 1 commit into
mainfrom
quality/ai-mcp
Jun 26, 2026
Merged

docs(ai-mcp): document options/close()/expose modes, tidy internals#31
suleimansh merged 1 commit into
mainfrom
quality/ai-mcp

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Code quality + docs pass for @gemstack/ai-mcp (part of the per-package GemStack quality sweep).

Docs (README)

  • Fixed the "expose an Agent as an MCP server external clients" grammar.
  • Documented mcpClientTools options (filter / namePrefix / streaming) with an example.
  • Explained the close() lifecycle: present only when this call owns the connection (HTTP / stdio), absent when you pass your own Client.
  • Expanded the three expose modes and listed the remaining server options (name/version/instructions/agentToolName).

Internals

  • Removed the unused RemoteTool.outputSchema field and a redundant buildTransport overload.
  • Documented the RemoteTool / MinimalClient internal interfaces and the deliberate unknown double-cast in resolveClient.
  • Documented why safeInstructions swallows errors (best-effort optional metadata; pass opts.instructions to bypass).

No public API change, so no changeset. Build + 19 tests green.

Code quality + docs pass for @gemstack/ai-mcp:

- README: fixed the "expose an Agent as an MCP server external clients"
  grammar; documented mcpClientTools options (filter/namePrefix/streaming)
  with an example; explained the close() lifecycle (present only when this
  call owns the connection); expanded the three expose modes and listed
  the remaining server options.
- index.ts: same grammar fix in the module doc.
- client-tools.ts: removed the unused RemoteTool.outputSchema field and a
  redundant buildTransport overload; documented the RemoteTool/MinimalClient
  internal interfaces and the deliberate unknown double-cast in resolveClient.
- server-from-agent.ts: documented why safeInstructions swallows errors
  (best-effort optional metadata; pass opts.instructions to bypass).

No public API change. Build + 19 tests green.
@suleimansh suleimansh added the documentation Improvements or additions to documentation label Jun 26, 2026
@suleimansh suleimansh self-assigned this Jun 26, 2026
@suleimansh suleimansh merged commit 829f146 into main Jun 26, 2026
1 check passed
@suleimansh suleimansh deleted the quality/ai-mcp branch June 26, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant