Skip to content

feat(SMI-1814): support internal source-backed connections#784

Merged
calclavia merged 3 commits into
mainfrom
henry/smi-1814-dynamic-tool-prototype
May 30, 2026
Merged

feat(SMI-1814): support internal source-backed connections#784
calclavia merged 3 commits into
mainfrom
henry/smi-1814-dynamic-tool-prototype

Conversation

@calclavia

@calclavia calclavia commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • bump @smithery/api to 0.67.0 for the generated source target types
  • add a hidden internal source-backed connection path for mcp add, with namespace create/set support and explicit rejection of incompatible install/config options
  • submit one TypeScript entrypoint from either a cwd-relative file path or stdin (--source -), format invalid_module diagnostics, and forward source targets through ConnectSession
  • route dynamic-module tool listing and calls through mcp.smithery.run so smithery tool list/call works for source-backed connections

Review follow-up

  • addressed council findings for raw argv parsing, name defaults, local import handling, source size guardrails, and non-destructive conflict behavior
  • verified the option is hidden from command help and no user-facing docs were added

Smoke proof

  • created codex-pipe-proof in namespace calclavia using cat .context/codex-pipe-proof.ts | node dist/index.js --json mcp add --source - --id codex-pipe-proof ...
  • verified node dist/index.js --json tool list codex-pipe-proof --flat --limit 20 returns proof_ping
  • verified node dist/index.js --json tool call codex-pipe-proof proof_ping '{"echo":"cli dynamic invocation"}' returns marker SMI-1814-pipe-proof-20260530

Tests

  • pnpm install --frozen-lockfile
  • pnpm run check
  • pnpm test
  • pnpm typecheck
  • pnpm run build
  • node dist/index.js mcp add --help | rg -e '--source|support\\.ts|dynamic MCP|TypeScript module' || true

@calclavia calclavia changed the title feat: support internal source-backed connections feat(SMI-1814): support internal source-backed connections May 30, 2026
@calclavia calclavia merged commit f0a8422 into main May 30, 2026
4 checks passed
@calclavia calclavia deleted the henry/smi-1814-dynamic-tool-prototype branch May 30, 2026 14:03
@smithery-chore-bot smithery-chore-bot Bot mentioned this pull request May 30, 2026
calclavia pushed a commit that referenced this pull request May 31, 2026
Automated Release PR
---


## [1.2.0](v1.1.2...v1.2.0)
(2026-05-30)


### Features

* **SMI-1814:** support internal source-backed connections
([#784](#784))
([f0a8422](f0a8422))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: smithery-chore-bot[bot] <259537197+smithery-chore-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant