Skip to content

Chore/refactor#8

Merged
Sharmaz merged 5 commits into
mainfrom
chore/refactor
Feb 1, 2026
Merged

Chore/refactor#8
Sharmaz merged 5 commits into
mainfrom
chore/refactor

Conversation

@Sharmaz

@Sharmaz Sharmaz commented Feb 1, 2026

Copy link
Copy Markdown
Owner

Summary

Refactor tools to comply with MCP 2025 specification standards and update dependencies to latest
versions.

Changes

Error Handling

  • Add centralized fetchPhoenixd utility with proper try/catch for network errors
  • All tools now return isError: true on failures (MCP spec requirement)
  • HTTP status validation before processing responses

Dependencies

  • Update @modelcontextprotocol/sdk to ^1.25.3
  • Update zod to ^4.0.0
  • Add engines field requiring Node >= 18

CI/CD

  • Migrate npm publishing from classic tokens to OIDC trusted publishing
  • Update workflows to Node 24
  • Simplify linter workflow

Code Quality

  • Refactor all 17 tools to use the new fetch utility
  • Consistent error response formatting across all tools
  • Update .gitignore and fix dependency vulnerabilities

Test plan

  • Build passes (npm run build)
  • Lint passes (npm run lint)
  • Manual testing with MCP Inspector
  • Verify npm publish with OIDC after merge

@Sharmaz Sharmaz merged commit 097528b into main Feb 1, 2026
1 check 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