quantix-mcp 0.5.0 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/README.md +12 -1
  2. package/dist/tools/subscriptions.d.ts.map +1 -1
  3. package/dist/tools/subscriptions.js +46 -1
  4. package/dist/tools/subscriptions.js.map +1 -1
  5. package/dist/tools/transactions.d.ts.map +1 -1
  6. package/dist/tools/transactions.js +5 -5
  7. package/dist/tools/transactions.js.map +1 -1
  8. package/dist/types/schemas.d.ts +17 -0
  9. package/dist/types/schemas.d.ts.map +1 -1
  10. package/dist/types/schemas.js +21 -4
  11. package/dist/types/schemas.js.map +1 -1
  12. package/package.json +9 -4
  13. package/.claude/commands/opsx/apply.md +0 -152
  14. package/.claude/commands/opsx/archive.md +0 -157
  15. package/.claude/commands/opsx/bulk-archive.md +0 -242
  16. package/.claude/commands/opsx/continue.md +0 -114
  17. package/.claude/commands/opsx/explore.md +0 -174
  18. package/.claude/commands/opsx/ff.md +0 -94
  19. package/.claude/commands/opsx/new.md +0 -69
  20. package/.claude/commands/opsx/onboard.md +0 -525
  21. package/.claude/commands/opsx/sync.md +0 -134
  22. package/.claude/commands/opsx/verify.md +0 -164
  23. package/.claude/settings.local.json +0 -9
  24. package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
  25. package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
  26. package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  27. package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
  28. package/.claude/skills/openspec-explore/SKILL.md +0 -290
  29. package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
  30. package/.claude/skills/openspec-new-change/SKILL.md +0 -74
  31. package/.claude/skills/openspec-onboard/SKILL.md +0 -529
  32. package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
  33. package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
  34. package/.dockerignore +0 -8
  35. package/.gemini/commands/opsx/apply.toml +0 -149
  36. package/.gemini/commands/opsx/archive.toml +0 -154
  37. package/.gemini/commands/opsx/bulk-archive.toml +0 -239
  38. package/.gemini/commands/opsx/continue.toml +0 -111
  39. package/.gemini/commands/opsx/explore.toml +0 -171
  40. package/.gemini/commands/opsx/ff.toml +0 -91
  41. package/.gemini/commands/opsx/new.toml +0 -66
  42. package/.gemini/commands/opsx/onboard.toml +0 -522
  43. package/.gemini/commands/opsx/sync.toml +0 -131
  44. package/.gemini/commands/opsx/verify.toml +0 -161
  45. package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
  46. package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
  47. package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  48. package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
  49. package/.gemini/skills/openspec-explore/SKILL.md +0 -290
  50. package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
  51. package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
  52. package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
  53. package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
  54. package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
  55. package/.github/agents/copilot-instructions.md +0 -32
  56. package/.github/agents/speckit.analyze.agent.md +0 -184
  57. package/.github/agents/speckit.checklist.agent.md +0 -294
  58. package/.github/agents/speckit.clarify.agent.md +0 -181
  59. package/.github/agents/speckit.constitution.agent.md +0 -82
  60. package/.github/agents/speckit.implement.agent.md +0 -135
  61. package/.github/agents/speckit.plan.agent.md +0 -89
  62. package/.github/agents/speckit.specify.agent.md +0 -258
  63. package/.github/agents/speckit.tasks.agent.md +0 -137
  64. package/.github/agents/speckit.taskstoissues.agent.md +0 -30
  65. package/.github/copilot-instructions.md +0 -17
  66. package/.github/prompts/speckit.analyze.prompt.md +0 -3
  67. package/.github/prompts/speckit.checklist.prompt.md +0 -3
  68. package/.github/prompts/speckit.clarify.prompt.md +0 -3
  69. package/.github/prompts/speckit.constitution.prompt.md +0 -3
  70. package/.github/prompts/speckit.implement.prompt.md +0 -3
  71. package/.github/prompts/speckit.plan.prompt.md +0 -3
  72. package/.github/prompts/speckit.specify.prompt.md +0 -3
  73. package/.github/prompts/speckit.tasks.prompt.md +0 -3
  74. package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
  75. package/.github/workflows/publish.yaml +0 -29
  76. package/.opencode/command/speckit.analyze.md +0 -184
  77. package/.opencode/command/speckit.checklist.md +0 -294
  78. package/.opencode/command/speckit.clarify.md +0 -181
  79. package/.opencode/command/speckit.constitution.md +0 -84
  80. package/.opencode/command/speckit.implement.md +0 -135
  81. package/.opencode/command/speckit.plan.md +0 -89
  82. package/.opencode/command/speckit.specify.md +0 -258
  83. package/.opencode/command/speckit.tasks.md +0 -137
  84. package/.opencode/command/speckit.taskstoissues.md +0 -30
  85. package/.qwen/commands/opsx-apply.toml +0 -149
  86. package/.qwen/commands/opsx-archive.toml +0 -154
  87. package/.qwen/commands/opsx-bulk-archive.toml +0 -239
  88. package/.qwen/commands/opsx-continue.toml +0 -111
  89. package/.qwen/commands/opsx-explore.toml +0 -171
  90. package/.qwen/commands/opsx-ff.toml +0 -91
  91. package/.qwen/commands/opsx-new.toml +0 -66
  92. package/.qwen/commands/opsx-onboard.toml +0 -522
  93. package/.qwen/commands/opsx-sync.toml +0 -131
  94. package/.qwen/commands/opsx-verify.toml +0 -161
  95. package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
  96. package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
  97. package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
  98. package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
  99. package/.qwen/skills/openspec-explore/SKILL.md +0 -290
  100. package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
  101. package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
  102. package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
  103. package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
  104. package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
  105. package/.specify/memory/constitution.md +0 -58
  106. package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
  107. package/.specify/scripts/powershell/common.ps1 +0 -137
  108. package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
  109. package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
  110. package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
  111. package/.specify/templates/agent-file-template.md +0 -28
  112. package/.specify/templates/checklist-template.md +0 -40
  113. package/.specify/templates/constitution-template.md +0 -50
  114. package/.specify/templates/plan-template.md +0 -104
  115. package/.specify/templates/spec-template.md +0 -115
  116. package/.specify/templates/tasks-template.md +0 -251
  117. package/.vscode/launch.json +0 -14
  118. package/.vscode/settings.json +0 -14
  119. package/.vscode/tasks.json +0 -15
  120. package/AGENTS.md +0 -117
  121. package/CLAUDE.md +0 -70
  122. package/Dockerfile +0 -30
  123. package/GEMINI.md +0 -117
  124. package/QWEN.md +0 -117
  125. package/docker-compose.yml +0 -17
  126. package/openapi.yaml +0 -3127
  127. package/openspec/README.md +0 -33
  128. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
  129. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
  130. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
  131. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
  132. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
  133. package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
  134. package/openspec/config.yaml +0 -20
  135. package/openspec/specs/accounts/spec.md +0 -86
  136. package/openspec/specs/categories/spec.md +0 -78
  137. package/openspec/specs/credit-card-transactions/spec.md +0 -64
  138. package/openspec/specs/credit-cards/spec.md +0 -109
  139. package/openspec/specs/data/spec.md +0 -49
  140. package/openspec/specs/settings/spec.md +0 -48
  141. package/openspec/specs/subscriptions/spec.md +0 -85
  142. package/openspec/specs/summary/spec.md +0 -49
  143. package/openspec/specs/transactions/spec.md +0 -113
  144. package/openspec/specs/transfers/spec.md +0 -74
  145. package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
  146. package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
  147. package/specs/001-mcp-api-integration/data-model.md +0 -106
  148. package/specs/001-mcp-api-integration/plan.md +0 -73
  149. package/specs/001-mcp-api-integration/quickstart.md +0 -74
  150. package/specs/001-mcp-api-integration/research.md +0 -58
  151. package/specs/001-mcp-api-integration/spec.md +0 -119
  152. package/specs/001-mcp-api-integration/tasks.md +0 -64
  153. package/src/config.ts +0 -39
  154. package/src/index.ts +0 -116
  155. package/src/services/apiClient.ts +0 -55
  156. package/src/services/requestContext.ts +0 -11
  157. package/src/tools/accounts.ts +0 -122
  158. package/src/tools/categories.ts +0 -102
  159. package/src/tools/credit-cards.ts +0 -203
  160. package/src/tools/data.ts +0 -45
  161. package/src/tools/settings.ts +0 -64
  162. package/src/tools/subscriptions.ts +0 -159
  163. package/src/tools/summary.ts +0 -29
  164. package/src/tools/transactions.ts +0 -200
  165. package/src/tools/transfers.ts +0 -122
  166. package/src/types/schemas.ts +0 -333
  167. package/src/utils/toolHelpers.ts +0 -11
  168. package/tests/benchmark.test.d.ts +0 -2
  169. package/tests/benchmark.test.d.ts.map +0 -1
  170. package/tests/benchmark.test.js +0 -33
  171. package/tests/benchmark.test.js.map +0 -1
  172. package/tests/benchmark.test.ts +0 -38
  173. package/tests/server.test.d.ts +0 -2
  174. package/tests/server.test.d.ts.map +0 -1
  175. package/tests/server.test.js +0 -13
  176. package/tests/server.test.js.map +0 -1
  177. package/tests/server.test.ts +0 -14
  178. package/tests/setup.d.ts +0 -4
  179. package/tests/setup.d.ts.map +0 -1
  180. package/tests/setup.js +0 -17
  181. package/tests/setup.js.map +0 -1
  182. package/tests/setup.ts +0 -20
  183. package/tests/tools/accounts.test.ts +0 -159
  184. package/tests/tools/categories.test.d.ts +0 -2
  185. package/tests/tools/categories.test.d.ts.map +0 -1
  186. package/tests/tools/categories.test.js +0 -63
  187. package/tests/tools/categories.test.js.map +0 -1
  188. package/tests/tools/categories.test.ts +0 -120
  189. package/tests/tools/credit-cards.test.d.ts +0 -2
  190. package/tests/tools/credit-cards.test.d.ts.map +0 -1
  191. package/tests/tools/credit-cards.test.js +0 -71
  192. package/tests/tools/credit-cards.test.js.map +0 -1
  193. package/tests/tools/credit-cards.test.ts +0 -131
  194. package/tests/tools/data.test.ts +0 -100
  195. package/tests/tools/settings.test.ts +0 -116
  196. package/tests/tools/subscriptions.test.ts +0 -173
  197. package/tests/tools/summary.test.d.ts +0 -2
  198. package/tests/tools/summary.test.d.ts.map +0 -1
  199. package/tests/tools/summary.test.js +0 -36
  200. package/tests/tools/summary.test.js.map +0 -1
  201. package/tests/tools/summary.test.ts +0 -63
  202. package/tests/tools/transactions.test.d.ts +0 -2
  203. package/tests/tools/transactions.test.d.ts.map +0 -1
  204. package/tests/tools/transactions.test.js +0 -67
  205. package/tests/tools/transactions.test.js.map +0 -1
  206. package/tests/tools/transactions.test.ts +0 -133
  207. package/tests/tools/transfers.test.ts +0 -141
  208. package/tsconfig.json +0 -52
  209. package/vitest.config.d.ts +0 -3
  210. package/vitest.config.d.ts.map +0 -1
  211. package/vitest.config.js +0 -14
  212. package/vitest.config.js.map +0 -1
  213. package/vitest.config.ts +0 -14
@@ -1,115 +0,0 @@
1
- # Feature Specification: [FEATURE NAME]
2
-
3
- **Feature Branch**: `[###-feature-name]`
4
- **Created**: [DATE]
5
- **Status**: Draft
6
- **Input**: User description: "$ARGUMENTS"
7
-
8
- ## User Scenarios & Testing *(mandatory)*
9
-
10
- <!--
11
- IMPORTANT: User stories should be PRIORITIZED as user journeys ordered by importance.
12
- Each user story/journey must be INDEPENDENTLY TESTABLE - meaning if you implement just ONE of them,
13
- you should still have a viable MVP (Minimum Viable Product) that delivers value.
14
-
15
- Assign priorities (P1, P2, P3, etc.) to each story, where P1 is the most critical.
16
- Think of each story as a standalone slice of functionality that can be:
17
- - Developed independently
18
- - Tested independently
19
- - Deployed independently
20
- - Demonstrated to users independently
21
- -->
22
-
23
- ### User Story 1 - [Brief Title] (Priority: P1)
24
-
25
- [Describe this user journey in plain language]
26
-
27
- **Why this priority**: [Explain the value and why it has this priority level]
28
-
29
- **Independent Test**: [Describe how this can be tested independently - e.g., "Can be fully tested by [specific action] and delivers [specific value]"]
30
-
31
- **Acceptance Scenarios**:
32
-
33
- 1. **Given** [initial state], **When** [action], **Then** [expected outcome]
34
- 2. **Given** [initial state], **When** [action], **Then** [expected outcome]
35
-
36
- ---
37
-
38
- ### User Story 2 - [Brief Title] (Priority: P2)
39
-
40
- [Describe this user journey in plain language]
41
-
42
- **Why this priority**: [Explain the value and why it has this priority level]
43
-
44
- **Independent Test**: [Describe how this can be tested independently]
45
-
46
- **Acceptance Scenarios**:
47
-
48
- 1. **Given** [initial state], **When** [action], **Then** [expected outcome]
49
-
50
- ---
51
-
52
- ### User Story 3 - [Brief Title] (Priority: P3)
53
-
54
- [Describe this user journey in plain language]
55
-
56
- **Why this priority**: [Explain the value and why it has this priority level]
57
-
58
- **Independent Test**: [Describe how this can be tested independently]
59
-
60
- **Acceptance Scenarios**:
61
-
62
- 1. **Given** [initial state], **When** [action], **Then** [expected outcome]
63
-
64
- ---
65
-
66
- [Add more user stories as needed, each with an assigned priority]
67
-
68
- ### Edge Cases
69
-
70
- <!--
71
- ACTION REQUIRED: The content in this section represents placeholders.
72
- Fill them out with the right edge cases.
73
- -->
74
-
75
- - What happens when [boundary condition]?
76
- - How does system handle [error scenario]?
77
-
78
- ## Requirements *(mandatory)*
79
-
80
- <!--
81
- ACTION REQUIRED: The content in this section represents placeholders.
82
- Fill them out with the right functional requirements.
83
- -->
84
-
85
- ### Functional Requirements
86
-
87
- - **FR-001**: System MUST [specific capability, e.g., "allow users to create accounts"]
88
- - **FR-002**: System MUST [specific capability, e.g., "validate email addresses"]
89
- - **FR-003**: Users MUST be able to [key interaction, e.g., "reset their password"]
90
- - **FR-004**: System MUST [data requirement, e.g., "persist user preferences"]
91
- - **FR-005**: System MUST [behavior, e.g., "log all security events"]
92
-
93
- *Example of marking unclear requirements:*
94
-
95
- - **FR-006**: System MUST authenticate users via [NEEDS CLARIFICATION: auth method not specified - email/password, SSO, OAuth?]
96
- - **FR-007**: System MUST retain user data for [NEEDS CLARIFICATION: retention period not specified]
97
-
98
- ### Key Entities *(include if feature involves data)*
99
-
100
- - **[Entity 1]**: [What it represents, key attributes without implementation]
101
- - **[Entity 2]**: [What it represents, relationships to other entities]
102
-
103
- ## Success Criteria *(mandatory)*
104
-
105
- <!--
106
- ACTION REQUIRED: Define measurable success criteria.
107
- These must be technology-agnostic and measurable.
108
- -->
109
-
110
- ### Measurable Outcomes
111
-
112
- - **SC-001**: [Measurable metric, e.g., "Users can complete account creation in under 2 minutes"]
113
- - **SC-002**: [Measurable metric, e.g., "System handles 1000 concurrent users without degradation"]
114
- - **SC-003**: [User satisfaction metric, e.g., "90% of users successfully complete primary task on first attempt"]
115
- - **SC-004**: [Business metric, e.g., "Reduce support tickets related to [X] by 50%"]
@@ -1,251 +0,0 @@
1
- ---
2
-
3
- description: "Task list template for feature implementation"
4
- ---
5
-
6
- # Tasks: [FEATURE NAME]
7
-
8
- **Input**: Design documents from `/specs/[###-feature-name]/`
9
- **Prerequisites**: plan.md (required), spec.md (required for user stories), research.md, data-model.md, contracts/
10
-
11
- **Tests**: The examples below include test tasks. Tests are OPTIONAL - only include them if explicitly requested in the feature specification.
12
-
13
- **Organization**: Tasks are grouped by user story to enable independent implementation and testing of each story.
14
-
15
- ## Format: `[ID] [P?] [Story] Description`
16
-
17
- - **[P]**: Can run in parallel (different files, no dependencies)
18
- - **[Story]**: Which user story this task belongs to (e.g., US1, US2, US3)
19
- - Include exact file paths in descriptions
20
-
21
- ## Path Conventions
22
-
23
- - **Single project**: `src/`, `tests/` at repository root
24
- - **Web app**: `backend/src/`, `frontend/src/`
25
- - **Mobile**: `api/src/`, `ios/src/` or `android/src/`
26
- - Paths shown below assume single project - adjust based on plan.md structure
27
-
28
- <!--
29
- ============================================================================
30
- IMPORTANT: The tasks below are SAMPLE TASKS for illustration purposes only.
31
-
32
- The /speckit.tasks command MUST replace these with actual tasks based on:
33
- - User stories from spec.md (with their priorities P1, P2, P3...)
34
- - Feature requirements from plan.md
35
- - Entities from data-model.md
36
- - Endpoints from contracts/
37
-
38
- Tasks MUST be organized by user story so each story can be:
39
- - Implemented independently
40
- - Tested independently
41
- - Delivered as an MVP increment
42
-
43
- DO NOT keep these sample tasks in the generated tasks.md file.
44
- ============================================================================
45
- -->
46
-
47
- ## Phase 1: Setup (Shared Infrastructure)
48
-
49
- **Purpose**: Project initialization and basic structure
50
-
51
- - [ ] T001 Create project structure per implementation plan
52
- - [ ] T002 Initialize [language] project with [framework] dependencies
53
- - [ ] T003 [P] Configure linting and formatting tools
54
-
55
- ---
56
-
57
- ## Phase 2: Foundational (Blocking Prerequisites)
58
-
59
- **Purpose**: Core infrastructure that MUST be complete before ANY user story can be implemented
60
-
61
- **⚠️ CRITICAL**: No user story work can begin until this phase is complete
62
-
63
- Examples of foundational tasks (adjust based on your project):
64
-
65
- - [ ] T004 Setup database schema and migrations framework
66
- - [ ] T005 [P] Implement authentication/authorization framework
67
- - [ ] T006 [P] Setup API routing and middleware structure
68
- - [ ] T007 Create base models/entities that all stories depend on
69
- - [ ] T008 Configure error handling and logging infrastructure
70
- - [ ] T009 Setup environment configuration management
71
-
72
- **Checkpoint**: Foundation ready - user story implementation can now begin in parallel
73
-
74
- ---
75
-
76
- ## Phase 3: User Story 1 - [Title] (Priority: P1) 🎯 MVP
77
-
78
- **Goal**: [Brief description of what this story delivers]
79
-
80
- **Independent Test**: [How to verify this story works on its own]
81
-
82
- ### Tests for User Story 1 (OPTIONAL - only if tests requested) ⚠️
83
-
84
- > **NOTE: Write these tests FIRST, ensure they FAIL before implementation**
85
-
86
- - [ ] T010 [P] [US1] Contract test for [endpoint] in tests/contract/test_[name].py
87
- - [ ] T011 [P] [US1] Integration test for [user journey] in tests/integration/test_[name].py
88
-
89
- ### Implementation for User Story 1
90
-
91
- - [ ] T012 [P] [US1] Create [Entity1] model in src/models/[entity1].py
92
- - [ ] T013 [P] [US1] Create [Entity2] model in src/models/[entity2].py
93
- - [ ] T014 [US1] Implement [Service] in src/services/[service].py (depends on T012, T013)
94
- - [ ] T015 [US1] Implement [endpoint/feature] in src/[location]/[file].py
95
- - [ ] T016 [US1] Add validation and error handling
96
- - [ ] T017 [US1] Add logging for user story 1 operations
97
-
98
- **Checkpoint**: At this point, User Story 1 should be fully functional and testable independently
99
-
100
- ---
101
-
102
- ## Phase 4: User Story 2 - [Title] (Priority: P2)
103
-
104
- **Goal**: [Brief description of what this story delivers]
105
-
106
- **Independent Test**: [How to verify this story works on its own]
107
-
108
- ### Tests for User Story 2 (OPTIONAL - only if tests requested) ⚠️
109
-
110
- - [ ] T018 [P] [US2] Contract test for [endpoint] in tests/contract/test_[name].py
111
- - [ ] T019 [P] [US2] Integration test for [user journey] in tests/integration/test_[name].py
112
-
113
- ### Implementation for User Story 2
114
-
115
- - [ ] T020 [P] [US2] Create [Entity] model in src/models/[entity].py
116
- - [ ] T021 [US2] Implement [Service] in src/services/[service].py
117
- - [ ] T022 [US2] Implement [endpoint/feature] in src/[location]/[file].py
118
- - [ ] T023 [US2] Integrate with User Story 1 components (if needed)
119
-
120
- **Checkpoint**: At this point, User Stories 1 AND 2 should both work independently
121
-
122
- ---
123
-
124
- ## Phase 5: User Story 3 - [Title] (Priority: P3)
125
-
126
- **Goal**: [Brief description of what this story delivers]
127
-
128
- **Independent Test**: [How to verify this story works on its own]
129
-
130
- ### Tests for User Story 3 (OPTIONAL - only if tests requested) ⚠️
131
-
132
- - [ ] T024 [P] [US3] Contract test for [endpoint] in tests/contract/test_[name].py
133
- - [ ] T025 [P] [US3] Integration test for [user journey] in tests/integration/test_[name].py
134
-
135
- ### Implementation for User Story 3
136
-
137
- - [ ] T026 [P] [US3] Create [Entity] model in src/models/[entity].py
138
- - [ ] T027 [US3] Implement [Service] in src/services/[service].py
139
- - [ ] T028 [US3] Implement [endpoint/feature] in src/[location]/[file].py
140
-
141
- **Checkpoint**: All user stories should now be independently functional
142
-
143
- ---
144
-
145
- [Add more user story phases as needed, following the same pattern]
146
-
147
- ---
148
-
149
- ## Phase N: Polish & Cross-Cutting Concerns
150
-
151
- **Purpose**: Improvements that affect multiple user stories
152
-
153
- - [ ] TXXX [P] Documentation updates in docs/
154
- - [ ] TXXX Code cleanup and refactoring
155
- - [ ] TXXX Performance optimization across all stories
156
- - [ ] TXXX [P] Additional unit tests (if requested) in tests/unit/
157
- - [ ] TXXX Security hardening
158
- - [ ] TXXX Run quickstart.md validation
159
-
160
- ---
161
-
162
- ## Dependencies & Execution Order
163
-
164
- ### Phase Dependencies
165
-
166
- - **Setup (Phase 1)**: No dependencies - can start immediately
167
- - **Foundational (Phase 2)**: Depends on Setup completion - BLOCKS all user stories
168
- - **User Stories (Phase 3+)**: All depend on Foundational phase completion
169
- - User stories can then proceed in parallel (if staffed)
170
- - Or sequentially in priority order (P1 → P2 → P3)
171
- - **Polish (Final Phase)**: Depends on all desired user stories being complete
172
-
173
- ### User Story Dependencies
174
-
175
- - **User Story 1 (P1)**: Can start after Foundational (Phase 2) - No dependencies on other stories
176
- - **User Story 2 (P2)**: Can start after Foundational (Phase 2) - May integrate with US1 but should be independently testable
177
- - **User Story 3 (P3)**: Can start after Foundational (Phase 2) - May integrate with US1/US2 but should be independently testable
178
-
179
- ### Within Each User Story
180
-
181
- - Tests (if included) MUST be written and FAIL before implementation
182
- - Models before services
183
- - Services before endpoints
184
- - Core implementation before integration
185
- - Story complete before moving to next priority
186
-
187
- ### Parallel Opportunities
188
-
189
- - All Setup tasks marked [P] can run in parallel
190
- - All Foundational tasks marked [P] can run in parallel (within Phase 2)
191
- - Once Foundational phase completes, all user stories can start in parallel (if team capacity allows)
192
- - All tests for a user story marked [P] can run in parallel
193
- - Models within a story marked [P] can run in parallel
194
- - Different user stories can be worked on in parallel by different team members
195
-
196
- ---
197
-
198
- ## Parallel Example: User Story 1
199
-
200
- ```bash
201
- # Launch all tests for User Story 1 together (if tests requested):
202
- Task: "Contract test for [endpoint] in tests/contract/test_[name].py"
203
- Task: "Integration test for [user journey] in tests/integration/test_[name].py"
204
-
205
- # Launch all models for User Story 1 together:
206
- Task: "Create [Entity1] model in src/models/[entity1].py"
207
- Task: "Create [Entity2] model in src/models/[entity2].py"
208
- ```
209
-
210
- ---
211
-
212
- ## Implementation Strategy
213
-
214
- ### MVP First (User Story 1 Only)
215
-
216
- 1. Complete Phase 1: Setup
217
- 2. Complete Phase 2: Foundational (CRITICAL - blocks all stories)
218
- 3. Complete Phase 3: User Story 1
219
- 4. **STOP and VALIDATE**: Test User Story 1 independently
220
- 5. Deploy/demo if ready
221
-
222
- ### Incremental Delivery
223
-
224
- 1. Complete Setup + Foundational → Foundation ready
225
- 2. Add User Story 1 → Test independently → Deploy/Demo (MVP!)
226
- 3. Add User Story 2 → Test independently → Deploy/Demo
227
- 4. Add User Story 3 → Test independently → Deploy/Demo
228
- 5. Each story adds value without breaking previous stories
229
-
230
- ### Parallel Team Strategy
231
-
232
- With multiple developers:
233
-
234
- 1. Team completes Setup + Foundational together
235
- 2. Once Foundational is done:
236
- - Developer A: User Story 1
237
- - Developer B: User Story 2
238
- - Developer C: User Story 3
239
- 3. Stories complete and integrate independently
240
-
241
- ---
242
-
243
- ## Notes
244
-
245
- - [P] tasks = different files, no dependencies
246
- - [Story] label maps task to specific user story for traceability
247
- - Each user story should be independently completable and testable
248
- - Verify tests fail before implementing
249
- - Commit after each task or logical group
250
- - Stop at any checkpoint to validate story independently
251
- - Avoid: vague tasks, same file conflicts, cross-story dependencies that break independence
@@ -1,14 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "request": "launch",
7
- "name": "Launch Program",
8
- "skipFiles": ["<node_internals>/**"],
9
- "program": "${workspaceFolder}/src/index.ts",
10
- "preLaunchTask": "build",
11
- "outFiles": ["${workspaceFolder}/dist/**/*.js"]
12
- }
13
- ]
14
- }
@@ -1,14 +0,0 @@
1
- {
2
- "chat.promptFilesRecommendations": {
3
- "speckit.constitution": true,
4
- "speckit.specify": true,
5
- "speckit.plan": true,
6
- "speckit.tasks": true,
7
- "speckit.implement": true
8
- },
9
- "chat.tools.terminal.autoApprove": {
10
- ".specify/scripts/bash/": true,
11
- ".specify/scripts/powershell/": true
12
- }
13
- }
14
-
@@ -1,15 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "label": "build",
6
- "type": "shell",
7
- "command": "npm run build",
8
- "isBackground": false,
9
- "problemMatcher": [
10
- "$tsc"
11
- ],
12
- "group": "build"
13
- }
14
- ]
15
- }
package/AGENTS.md DELETED
@@ -1,117 +0,0 @@
1
- # Quantix MCP Server Context
2
-
3
- This project is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that provides a bridge between AI models and the **Quantix Personal Finance API**. It allows AI assistants to manage accounts, transactions, categories, credit cards, and financial summaries.
4
-
5
- ## Project Overview
6
-
7
- - **Purpose**: Expose Quantix API endpoints as MCP tools for personal finance management.
8
- - **Authentication**: Uses **API Key authentication** (`x-api-key` header). Although the Quantix API supports JWT/Bearer tokens for web use, they expire every 15 minutes. For persistent MCP access, a long-lived API Key is required.
9
- - **Architecture**:
10
- - **Modular Tools**: Tools are categorized by domain (e.g., `accounts.ts`, `transactions.ts`) in `src/tools/`.
11
- - **Centralized API Client**: `src/services/apiClient.ts` handles communication with the Quantix API using a singleton `apiClient`.
12
- - **Schema Validation**: Extensive use of [Zod](https://zod.dev/) in `src/types/schemas.ts` to ensure input/output safety and provide descriptive metadata for the AI.
13
- - **Configuration**: Managed via `dotenv` and validated with Zod in `src/config.ts`.
14
- - **Key Technologies**: TypeScript, Node.js, @modelcontextprotocol/sdk, Zod, Vitest.
15
-
16
- ## Building and Running
17
-
18
- ### Prerequisites
19
- - Node.js (v18+)
20
- - Valid `QUANTIX_API_URL` and `QUANTIX_API_KEY` in a `.env` file.
21
-
22
- ### Commands
23
- - **Install Dependencies**: `npm install`
24
- - **Build**: `npm run build` (Compiles TypeScript to `dist/`)
25
- - **Development**: `npm run dev` (Runs directly from source using `tsx`)
26
- - **Production**: `npm start` (Runs the compiled `dist/index.js`)
27
- - **Test**: `npm test` (Runs the test suite using Vitest)
28
- - **MCP Inspector**: `npx @modelcontextprotocol/inspector node dist/index.js` (Recommended for interactive tool testing)
29
-
30
- ## Development Conventions
31
-
32
- ### Adding New Tools
33
- 1. Define the input/output schemas in `src/types/schemas.ts`.
34
- 2. Create or update the relevant domain file in `src/tools/`.
35
- 3. Use the `registerTool` method on the `McpServer` instance.
36
- 4. Export a registration function (e.g., `registerNewDomainTools`) and call it in `src/index.ts`.
37
-
38
- ### Error Handling
39
- - Use the `handleToolError` helper from `src/utils/toolHelpers.ts` to provide consistent error messages to the AI.
40
- - The `apiClient` throws `ApiClientError` for non-2xx responses, which includes the status code and status text.
41
-
42
- ### Tool Guidelines
43
- - **Descriptions**: Always provide clear, detailed descriptions for tools and their arguments in the Zod schemas (using `.describe()`). This helps the AI understand when and how to use the tool.
44
- - **Idempotency**: Ensure that "Get" operations are read-only and mutations follow standard REST patterns.
45
- - **Validation**: Rely on Zod for input validation. If a required field is missing, the MCP SDK will automatically inform the user/AI.
46
-
47
- ### Testing
48
- - Place tests in the `tests/` directory.
49
- - Use `tests/setup.ts` to mock the global `fetch` and the project `config`.
50
- - Aim for high coverage of tool logic by mocking various API responses.
51
-
52
- ## Environment Variables
53
- | Variable | Description | Default |
54
- |----------|-------------|---------|
55
- | `QUANTIX_API_URL` | Base URL for the Quantix API | `https://api.quantix.example.com` |
56
- | `QUANTIX_API_KEY` | Your secret API Key | (Required) |
57
- | `MCPPORT` | Port for HTTP transport (if used) | `3001` |
58
- | `NODE_ENV` | Environment mode | `development` |
59
-
60
- # context-mode — MANDATORY routing rules
61
-
62
- You have context-mode MCP tools available. These rules are NOT optional — they protect your context window from flooding. A single unrouted command can dump 56 KB into context and waste the entire session.
63
-
64
- ## BLOCKED commands — do NOT attempt these
65
-
66
- ### curl / wget — BLOCKED
67
- Any shell command containing `curl` or `wget` will be intercepted and blocked. Do NOT retry.
68
- Instead use:
69
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` to fetch and index web pages
70
- - `mcp__context-mode__ctx_execute(language: "javascript", code: "const r = await fetch(...)")` to run HTTP calls in sandbox
71
-
72
- ### Inline HTTP — BLOCKED
73
- Any shell command containing `fetch('http`, `requests.get(`, `requests.post(`, `http.get(`, or `http.request(` will be intercepted and blocked. Do NOT retry with shell.
74
- Instead use:
75
- - `mcp__context-mode__ctx_execute(language, code)` to run HTTP calls in sandbox — only stdout enters context
76
-
77
- ### WebFetch / web browsing — BLOCKED
78
- Direct web fetching is blocked. Use the sandbox equivalent.
79
- Instead use:
80
- - `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` to query the indexed content
81
-
82
- ## REDIRECTED tools — use sandbox equivalents
83
-
84
- ### Shell (>20 lines output)
85
- Shell is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands.
86
- For everything else, use:
87
- - `mcp__context-mode__ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call
88
- - `mcp__context-mode__ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context
89
-
90
- ### read_file (for analysis)
91
- If you are reading a file to **edit** it → read_file is correct (edit needs content in context).
92
- If you are reading to **analyze, explore, or summarize** → use `mcp__context-mode__ctx_execute_file(path, language, code)` instead. Only your printed summary enters context.
93
-
94
- ### grep / search (large results)
95
- Search results can flood context. Use `mcp__context-mode__ctx_execute(language: "shell", code: "grep ...")` to run searches in sandbox. Only your printed summary enters context.
96
-
97
- ## Tool selection hierarchy
98
-
99
- 1. **GATHER**: `mcp__context-mode__ctx_batch_execute(commands, queries)` — Primary tool. Runs all commands, auto-indexes output, returns search results. ONE call replaces 30+ individual calls.
100
- 2. **FOLLOW-UP**: `mcp__context-mode__ctx_search(queries: ["q1", "q2", ...])` — Query indexed content. Pass ALL questions as array in ONE call.
101
- 3. **PROCESSING**: `mcp__context-mode__ctx_execute(language, code)` | `mcp__context-mode__ctx_execute_file(path, language, code)` — Sandbox execution. Only stdout enters context.
102
- 4. **WEB**: `mcp__context-mode__ctx_fetch_and_index(url, source)` then `mcp__context-mode__ctx_search(queries)` — Fetch, chunk, index, query. Raw HTML never enters context.
103
- 5. **INDEX**: `mcp__context-mode__ctx_index(content, source)` — Store content in FTS5 knowledge base for later search.
104
-
105
- ## Output constraints
106
-
107
- - Keep responses under 500 words.
108
- - Write artifacts (code, configs, PRDs) to FILES — never return them as inline text. Return only: file path + 1-line description.
109
- - When indexing content, use descriptive source labels so others can `search(source: "label")` later.
110
-
111
- ## ctx commands
112
-
113
- | Command | Action |
114
- |---------|--------|
115
- | `ctx stats` | Call the `stats` MCP tool and display the full output verbatim |
116
- | `ctx doctor` | Call the `doctor` MCP tool, run the returned shell command, display as checklist |
117
- | `ctx upgrade` | Call the `upgrade` MCP tool, run the returned shell command, display as checklist |
package/CLAUDE.md DELETED
@@ -1,70 +0,0 @@
1
- # CLAUDE.md
2
-
3
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
- ## Commands
6
-
7
- ```bash
8
- npm run build # Compile TypeScript → dist/
9
- npm run dev # Run with tsx (no build required)
10
- npm start # Run compiled dist/index.js
11
- npm test # Run all tests with vitest
12
- ```
13
-
14
- Run a single test file:
15
- ```bash
16
- npx vitest run tests/tools/categories.test.ts
17
- ```
18
-
19
- Inspect the MCP server interactively (requires a build first):
20
- ```bash
21
- npx @modelcontextprotocol/inspector node dist/index.js
22
- ```
23
-
24
- ## Environment
25
-
26
- Create `.env` in the project root:
27
- ```
28
- QUANTIX_API_URL=https://api.quantix.example.com
29
- QUANTIX_API_KEY=your_api_key_here
30
- MCPPORT=3001
31
- ```
32
-
33
- `QUANTIX_API_KEY` is required. `QUANTIX_API_URL` defaults to `https://api.quantix.example.com`.
34
-
35
- ## Authentication
36
-
37
- The MCP server uses **API Key authentication** via the `x-api-key` header for all requests to the Quantix API.
38
-
39
- While the Quantix web application uses JWT (Bearer) tokens, they expire in 15 minutes, which is unsuitable for a persistent MCP server. Users **must** generate an API Key in the Quantix web settings to use with this server.
40
-
41
- ## Architecture
42
-
43
- This is an MCP server that proxies Quantix Personal Finance API endpoints as MCP tools. It runs in **stdio mode** (for Claude Desktop / `npx quantix-mcp`).
44
-
45
- **Data flow:** MCP client → `src/index.ts` (McpServer + StdioTransport) → tool handler → `src/services/apiClient.ts` → Quantix REST API
46
-
47
- ### Key files
48
-
49
- | File | Role |
50
- |------|------|
51
- | `src/index.ts` | Creates `McpServer`, registers all tool groups, connects via `StdioServerTransport` |
52
- | `src/config.ts` | Zod-validated env vars; exports `config` object |
53
- | `src/services/apiClient.ts` | Thin `fetch` wrapper; injects `x-api-key` header; exports `apiClient.get/post/patch/put/delete` |
54
- | `src/types/schemas.ts` | All Zod schemas — both domain entity schemas and tool input schemas |
55
- | `src/tools/*.ts` | Each file exports a `register*Tools(server: McpServer)` function |
56
- | `tests/setup.ts` | Vitest setup — mocks `global.fetch` and mocks `config` module |
57
-
58
- ### Adding a new tool group
59
-
60
- 1. Create `src/tools/mymodule.ts` exporting `registerMyModuleTools(server: McpServer)`.
61
- 2. Define input schemas in `src/types/schemas.ts`.
62
- 3. Import and call `registerMyModuleTools(mcpServer)` in `src/index.ts`.
63
- 4. Add a test file at `tests/tools/mymodule.test.ts` — mock `apiClient` (not `fetch`), create a mock server to capture registered handlers, then call handlers directly.
64
-
65
- ### Conventions
66
-
67
- - All imports use `.js` extension (ESM `nodenext` module resolution), even for `.ts` source files.
68
- - Tool handlers return `{ content: [{ type: 'text', text: '...' }] }`.
69
- - The `mode` query param (`SINGLE` | `PENDING` | `ALL`) on transaction update/delete controls scope for recurring transactions.
70
- - `ApiClientError` (from `apiClient.ts`) is thrown on non-2xx responses and includes `status` and `statusText`.
package/Dockerfile DELETED
@@ -1,30 +0,0 @@
1
- # Build stage
2
- FROM node:22-alpine AS builder
3
-
4
- WORKDIR /app
5
-
6
- COPY package*.json ./
7
- RUN npm ci
8
-
9
- COPY tsconfig.json ./
10
- COPY src/ ./src/
11
-
12
- RUN npm run build
13
-
14
- # Production stage
15
- FROM node:22-alpine AS runner
16
-
17
- WORKDIR /app
18
-
19
- COPY package*.json ./
20
- RUN npm ci --omit=dev
21
-
22
- COPY --from=builder /app/dist ./dist
23
-
24
- ENV TRANSPORT=http
25
- ENV MCPPORT=3001
26
- ENV NODE_ENV=production
27
-
28
- EXPOSE ${MCPPORT}
29
-
30
- CMD ["node", "dist/index.js"]