architectgbt-mcp 0.1.2 → 0.1.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.
@@ -45,12 +45,12 @@ export async function handleGetRecommendation(args) {
45
45
  });
46
46
  if (!response.ok) {
47
47
  // Handle authentication requirement
48
- if (response.status === 401) {
48
+ if (response.status === 401 || response.status === 405) {
49
49
  return {
50
50
  content: [
51
51
  {
52
52
  type: "text",
53
- text: `❌ **Authentication Required**\n\nThe ArchitectGBT API requires authentication. To get AI model recommendations:\n\n1. Visit https://architectgbt.com\n2. Sign up for a free account\n3. Use the website directly for personalized recommendations\n\nAlternatively, you can:\n- Use \`list_models\` to browse available models\n- Use \`get_code_template\` to get integration code for any model\n\nFor your query: "${input.prompt}"\nI recommend visiting the website for a personalized analysis.`,
53
+ text: `❌ **Authentication Required**\n\nThe ArchitectGBT API requires authentication. To get AI model recommendations:\n\n1. Visit https://architectgbt.com\n2. Sign up for a free account (free tier available!)\n3. Use the website directly for personalized recommendations\n\nAlternatively, you can:\n- Use \`list_models\` to browse available models\n- Use \`get_code_template\` to get integration code for any model\n\nFor your query: "${input.prompt}"\nI recommend visiting the website for a personalized analysis with cost estimates and reasoning.`,
54
54
  },
55
55
  ],
56
56
  };
@@ -53,7 +53,10 @@ export async function handleListModels(args) {
53
53
  result += `| Model | Provider | Input $/1M | Output $/1M |\n`;
54
54
  result += `|-------|----------|------------|-------------|\n`;
55
55
  models.forEach((m) => {
56
- result += `| ${m.name} | ${m.provider} | $${m.input_price || "?"} | $${m.output_price || "?"} |\n`;
56
+ // Convert per-1K pricing to per-1M for display
57
+ const inputPer1M = m.input_cost_per_1k ? (m.input_cost_per_1k * 1000).toFixed(2) : "?";
58
+ const outputPer1M = m.output_cost_per_1k ? (m.output_cost_per_1k * 1000).toFixed(2) : "?";
59
+ result += `| ${m.name} | ${m.provider} | $${inputPer1M} | $${outputPer1M} |\n`;
57
60
  });
58
61
  result += `\n*Showing ${models.length} models. Use \`get_ai_recommendation\` for personalized suggestions.*`;
59
62
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architectgbt-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "MCP server for AI model recommendations from ArchitectGBT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",