Simfinity.js example: expose selected GraphQL operations as MCP tools via stdio
Affectionate_Hawk971 · reddit · 2026-09-16
A Simfinity.js contributor shared a runnable example of the optional @simtlix/simfinity-mcp package, which lets projects with existing GraphQL resolvers expose a small set of operations to an MCP client.
- The demo uses a plain GraphQLSchema with two in-memory rows — no database or model API key needed
- It publishes one tool, catalogstarters (with an optional database filter), while a second field, serviceStatus, stays out of the tool list
- Tool generation is controlled via include, toolNamePrefix, toolOverrides (custom description and field selection), and maxResultBytes limits
- generateMCPTools(schema, options) returns tool definitions plus a callTool function; the companion stdio.js runs it as an MCP server
- Verified on Simfinity MCP 3.2.0 with Node 24.15.0
The author notes that selecting which operations become tools does not replace authorization — application resolvers and trusted context must still enforce access to real data. The full example is Apache-2.0 licensed.
More from coding & agent
- CausalSmith uses Lean proofs to make self-improving agents automate causal research — skoularidou · 2026-09-16
- Synthesia launches real-time Interactive Avatar API on LiveKit — synthesiaIO · 2026-09-16
- Founder ditches $10/mo Super.so as AI agent migrates 100-page site in 5 minutes — thisiskp_ · 2026-09-16
- Open-source cross-connector memory layer lets one agent's verified knowledge transfer to others — Neither-Witness-6010 · 2026-09-16
- Claude Remote: launch Claude Code on your own PC from your phone via Tailscale — TearInternational414 · 2026-09-16
- Celesto 开源:给 AI 智能体一台安全持久的虚拟电脑 — aniketmaurya · 2026-09-16