payrolla-mcp 0.2.2 → 0.2.4
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.
- package/dist/index.js +17 -16
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -34,7 +34,6 @@ function buildCustomGlobalParams(customParams) {
|
|
|
34
34
|
if (!customParams) return void 0;
|
|
35
35
|
return {
|
|
36
36
|
minWage: customParams.minWage,
|
|
37
|
-
minWageNet: customParams.minWageNet,
|
|
38
37
|
ssi_LowerLimit: customParams.ssiLowerLimit,
|
|
39
38
|
ssi_UpperLimit: customParams.ssiUpperLimit,
|
|
40
39
|
stampTaxRatio: customParams.stampTaxRatio,
|
|
@@ -55,7 +54,7 @@ async function calculatePayroll(client, input) {
|
|
|
55
54
|
} = input;
|
|
56
55
|
const payments = [
|
|
57
56
|
{
|
|
58
|
-
paymentAmount:
|
|
57
|
+
paymentAmount: void 0,
|
|
59
58
|
paymentName: "Maas",
|
|
60
59
|
paymentType: PaymentType.RegularPayment,
|
|
61
60
|
paymentRef: "1"
|
|
@@ -120,13 +119,7 @@ async function calculatePayroll(client, input) {
|
|
|
120
119
|
};
|
|
121
120
|
}
|
|
122
121
|
async function calculateBulkPayroll(client, input) {
|
|
123
|
-
const {
|
|
124
|
-
employees,
|
|
125
|
-
year,
|
|
126
|
-
month,
|
|
127
|
-
periodCount = 1,
|
|
128
|
-
customParams
|
|
129
|
-
} = input;
|
|
122
|
+
const { employees, year, month, periodCount = 1, customParams } = input;
|
|
130
123
|
const employeeResults = [];
|
|
131
124
|
let totalYearlyCost = 0;
|
|
132
125
|
let totalYearlyNet = 0;
|
|
@@ -176,9 +169,21 @@ var DEFAULT_PARAMS_2025 = {
|
|
|
176
169
|
incomeTaxBrackets: [
|
|
177
170
|
{ limit: 158e3, rate: 0.15, description: "158,000 TL'ye kadar %15" },
|
|
178
171
|
{ limit: 33e4, rate: 0.2, description: "158,000-330,000 TL aras\u0131 %20" },
|
|
179
|
-
{
|
|
180
|
-
|
|
181
|
-
|
|
172
|
+
{
|
|
173
|
+
limit: 12e5,
|
|
174
|
+
rate: 0.27,
|
|
175
|
+
description: "330,000-1,200,000 TL aras\u0131 %27"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
limit: 43e5,
|
|
179
|
+
rate: 0.35,
|
|
180
|
+
description: "1,200,000-4,300,000 TL aras\u0131 %35"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
limit: Number.MAX_SAFE_INTEGER,
|
|
184
|
+
rate: 0.4,
|
|
185
|
+
description: "4,300,000 TL'den fazlas\u0131 %40"
|
|
186
|
+
}
|
|
182
187
|
]
|
|
183
188
|
};
|
|
184
189
|
|
|
@@ -197,9 +202,6 @@ function applyScenario(defaults, scenario) {
|
|
|
197
202
|
if (scenario.minWage !== void 0) {
|
|
198
203
|
result.minWage = scenario.minWage;
|
|
199
204
|
}
|
|
200
|
-
if (scenario.minWageNet !== void 0) {
|
|
201
|
-
result.minWageNet = scenario.minWageNet;
|
|
202
|
-
}
|
|
203
205
|
if (scenario.ssiLimitIncreasePercent !== void 0) {
|
|
204
206
|
const multiplier = 1 + scenario.ssiLimitIncreasePercent / 100;
|
|
205
207
|
result.ssiLowerLimit = defaults.ssiLowerLimit * multiplier;
|
|
@@ -262,7 +264,6 @@ async function simulateBudget(client, input) {
|
|
|
262
264
|
scenarioApplied: {
|
|
263
265
|
salaryRaisePercent: scenario.salaryRaisePercent || 0,
|
|
264
266
|
effectiveMinWage: customParams.minWage || defaults.minWage,
|
|
265
|
-
effectiveMinWageNet: customParams.minWageNet || defaults.minWageNet,
|
|
266
267
|
effectiveTaxBrackets
|
|
267
268
|
},
|
|
268
269
|
summary: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payrolla-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "MCP server for Payrolla payroll budget simulations - enables LLMs to calculate Turkish payroll and simulate budget scenarios",
|
|
5
5
|
"author": "Payrolla",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
50
|
-
"payrolla": "^0.2.
|
|
50
|
+
"payrolla": "^0.2.4",
|
|
51
51
|
"zod": "^3.25.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|