atomic

flowstate-epic-flowstate-community-epicdm-flowstate-mcp-client

Package-local agent skill for @epicdm/flowstate-mcp-client.

Tags

Publisher

Versions

1 version published — latest: 1.0.7

  • 1.0.7
    publishedInvalid Date

Skill

flowstate-mcp-client Package Skill

Package: @epicdm/flowstate-mcp-client Repository: epic-flowstate-community Path: packages/flowstate-mcp-client Version: 1.0.7

Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.

Primary Package Workflow

MCP Client Consumer Integration

Use this skill when another package wraps or embeds MCPClient.

Integration Pattern

  1. Construct the client with the active base URL and bearer token.
  2. Use health() or a lightweight tool list check for availability.
  3. Cache listTools() results in the consumer if provider conversion is expensive.
  4. Use callTool() for execution and preserve MCPClientError details where possible.
  5. Call updateAuthToken() after token refresh instead of constructing a stale client.

Known Consumer

mcp-web-transport uses this package to cache tool definitions, convert them to provider tool shapes, execute tools, and check availability.

Pitfalls

  • The client returns unwrapped tool result, not the full server envelope.
  • Tool schemas are typed as any; consumers that need provider-specific strictness must validate or normalize schemas themselves.
  • console.log in the client is visible to consumers.
  • Do not use this package for /mcp Streamable HTTP integration.

Package Skill Inventory

Package Skill Inventory: @epicdm/flowstate-mcp-client

Skill Map

SkillTypeTriggerTeachesDojo
flowstate-mcp-clientorchestratorUse when integrating, changing, testing, or documenting this packageWhen to use the client, route to REST/error/consumer/maintenance skillslocal-only
flowstate-mcp-client-rest-transportworkflowUse when calling FlowState MCP REST endpoints through MCPClientbaseUrl, listTools, callTool, health, auth token, timeout, URL encodingready-after-review
flowstate-mcp-client-error-handlingworkflow/referenceUse when handling HTTP errors, tool failures, timeouts, and response envelopesMCPClientError, method-specific status preservation, response shapesready-after-review
flowstate-mcp-client-consumer-integrationworkflowUse when wiring into mcp-web-transport or other UI/runtime packagesTool caching, availability checks, provider tool conversion, token refreshready-after-review
flowstate-mcp-client-contract-maintenancemaintenanceUse before changing exports, types, endpoint paths, timeout/auth behavior, docs, or DojoVerification, mocked-fetch tests, docs drift, downstream referenceslocal-only

Anti-Sprawl Decision

Do not create one skill per exported type. The package has one primary class and a few contract risks, so five compact skills cover the real workflows.

Deferred Skills

  • Streamable MCP HTTP protocol skill: defer because this client intentionally calls custom REST endpoints.
  • Dedicated browser auth skill: defer to consuming packages unless this package adds token refresh flows.
  • One skill per endpoint: fold into rest-transport.

Review Gate

Package Skills Review: @epicdm/flowstate-mcp-client

Verdict

Pass with fixes.

The skillset is intentionally small and teaches the REST client contract instead of listing exported symbols.

Findings

SeveritySkillIssueEvidenceRequired Fix
Importanterror-handlinglistTools() and health() can collapse original HTTP errors into status 500src/client.tsDocument now; fix before promising status fidelity
ImportantmaintenanceTests do not validate fetch behavior, headers, URL encoding, timeout, or error envelopessrc/__tests__/client.test.tsAdd mocked-fetch tests before Dojo publish
ImportantdocsREADME/docs use stale scope/version/consumer informationREADME, .flowstate/docsUpdate docs before publish
MinortransportPackage is REST-only, not MCP /mcp Streamable HTTPsource/http server contractKeep explicit in skills

Verification

Review worker ran:

yarn workspace @epicdm/flowstate-mcp-client test --runInBand
yarn workspace @epicdm/flowstate-mcp-client typecheck

Results:

  • Tests passed.

  • Typecheck passed.

  • Lint passed with 7 existing warnings: loose any, console logging, and one unused test import.

  • Build passed.

Dojo Publication Decision

Do not publish existing generated .flowstate/dojo artifacts. Rebuild from these reviewed workflow skills after mocked-fetch contract coverage is added or explicitly deferred.

Usage

Start with this skill to understand the package purpose, then use the package-local focused skills for specific workflows. Keep this Dojo version aligned with packages/flowstate-mcp-client/package.json. Do not treat generated feature lists as lessons; use workflow evidence from CODE-REVIEW.md, SKILL-INVENTORY.md, and REVIEW.md.

Install

Run this in your project to install via CLI:

fscloud dojo skill install flowstate-epic-flowstate-community-epicdm-flowstate-mcp-client --target <target> --out ./skills

Replace <target> with your agent target identifier. See the CLI docs for details.