Skip to content

agentic-mcp 1.0.5: working tools/list, importable library entry, audit to 0 - #34

Merged
ruvnet merged 2 commits into
mainfrom
weaver/refresh-agentic-mcp
Nov 9, 2026
Merged

ruvnet merged 2 commits into
mainfrom
weaver/refresh-agentic-mcp

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

What

  • Bug: no MCP client could list tools. The tools/list handler returned the tool instances. Those hold an OpenAI client with a circular reference, so the SDK failed with Converting circular structure to JSON, both in 1.0.4 from the registry and on main. The handler now returns plain { name, description, inputSchema } entries (src/mcp/tool-definitions.ts). A regression test is added (red before the change, green after).
  • Bug: stdout protocol pollution. The four start-up console.log lines in src/index.ts went to stdout, the JSON-RPC channel. They now go to stderr.
  • Import fix: main was the CLI, so import/require started a server and exited without OPENAI_API_KEY. The README's “As a Library” example never worked. main is now dist/lib.js, which exports OpenAIAgentMCPServer and toToolDefinitions with no side effects. The agentic-mcp bin is unchanged.
  • Security: openai ^4.20.1 → ^6.49.0. Only chat.completions.create is used, and its API is unchanged. openai 6 accepts zod 4, so zod now resolves to the patched 4.6.7. Floors raised: @modelcontextprotocol/sdk ^1.32.2, @supabase/supabase-js ^2.80.0, dotenv ^16.6.1. Clean-install npm audit --omit=dev: 0 critical / 2 high → 0 / 0. The repo lockfile goes from 2 critical / 7 high to 0 / 0.
  • Metadata (ADR-356): homepage https://ruv.io, bugs, a 158-character description, engines. The README gains supported environments and a quick check with its real output.
  • CI: a new path-scoped workflow runs build, tests, production audit and the MCP tools/list smoke test on Node 18, 20 and 22.

Tarball: the only change from 1.0.4 is the added lib and tool-definitions files. src/tests/research.test.ts still has a pre-existing Context mock type error and is left out of CI.

The owner has authorized autonomous merges for the weaver refresh lane. This PR merges only when CI on the head is green.

🤖 Generated with claude-flow

…enai 6 (audit 0c/2h -> 0/0), CI

Co-Authored-By: claude-flow <ruv@ruv.net>
…Node 18 is EOL)

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet

ruvnet commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up: openai 6 relies on the global WebCrypto crypto, which Node 18 does not expose by default. CI on Node 18 failed with ReferenceError: crypto is not defined. engines.node is now >=20 (Node 18 reached end of life in April 2025), and the CI matrix is 20/22/24. The other route, staying on openai 4/5, keeps zod 3 and its high advisory.

@ruvnet
ruvnet merged commit c0306e7 into main Nov 9, 2026
3 checks passed
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