@agilemonster/mcp-server 1.0.9 → 1.0.10

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/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AgileMonsterProjectConfig, AutonomousStepResponse, Board, BoardAgentConfig, Card, ContextResponse, DiscoveredProject, PulseResponse } from './types.js';
2
- export declare const MCP_SERVER_VERSION = "1.0.9";
2
+ export declare const MCP_SERVER_VERSION = "1.0.10";
3
3
  export declare class AgileMonsterClient {
4
4
  private apiKey;
5
5
  private baseUrl;
package/dist/client.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { execSync } from 'node:child_process';
4
- export const MCP_SERVER_VERSION = '1.0.9';
4
+ export const MCP_SERVER_VERSION = '1.0.10';
5
5
  export class AgileMonsterClient {
6
6
  apiKey = '';
7
7
  baseUrl;
package/dist/server.js CHANGED
@@ -862,6 +862,12 @@ function collectProjectSourceFiles(projectPath, keywords) {
862
862
  }
863
863
  catch { }
864
864
  }
865
+ // Bonus score for UI components / screens when task mentions UX or UI
866
+ if (ext === '.tsx' || ext === '.jsx' || ext === '.dart' || ext === '.vue') {
867
+ if (lowerRel.includes('component') || lowerRel.includes('screen') || lowerRel.includes('widget') || lowerRel.includes('modal')) {
868
+ score += 8;
869
+ }
870
+ }
865
871
  results.push({ rel, score });
866
872
  }
867
873
  }
@@ -913,9 +919,9 @@ export async function executeQueuedCardAutonomously(client, card, projectPath) {
913
919
  action: 'select_files',
914
920
  file_index: fileIndex,
915
921
  });
916
- const selectedFiles = (selectionRes.selected_files || []).slice(0, 4);
922
+ const selectedFiles = (selectionRes.target_files || selectionRes.selected_files || []).slice(0, 4);
917
923
  if (selectedFiles.length === 0) {
918
- selectedFiles.push(...fileIndex.slice(0, 2));
924
+ selectedFiles.push(...fileIndex.slice(0, 3));
919
925
  }
920
926
  const filesPayload = {};
921
927
  for (const rel of selectedFiles) {
@@ -942,9 +948,10 @@ export async function executeQueuedCardAutonomously(client, card, projectPath) {
942
948
  const edits = editsRes.edits || [];
943
949
  const modifiedFiles = [];
944
950
  for (const edit of edits) {
945
- if (!edit.path || !edit.search || typeof edit.replace !== 'string')
951
+ const relPath = edit.file || edit.path;
952
+ if (!relPath || !edit.search || typeof edit.replace !== 'string')
946
953
  continue;
947
- const fullPath = path.resolve(projectPath, edit.path);
954
+ const fullPath = path.resolve(projectPath, relPath);
948
955
  if (!fullPath.startsWith(path.resolve(projectPath)))
949
956
  continue;
950
957
  if (!fs.existsSync(fullPath))
@@ -954,8 +961,8 @@ export async function executeQueuedCardAutonomously(client, card, projectPath) {
954
961
  const updatedContent = currentContent.replace(edit.search, edit.replace);
955
962
  if (updatedContent !== currentContent) {
956
963
  fs.writeFileSync(fullPath, updatedContent, 'utf8');
957
- if (!modifiedFiles.includes(edit.path)) {
958
- modifiedFiles.push(edit.path);
964
+ if (!modifiedFiles.includes(relPath)) {
965
+ modifiedFiles.push(relPath);
959
966
  }
960
967
  }
961
968
  }
package/dist/types.d.ts CHANGED
@@ -99,14 +99,17 @@ export interface PulseResponse {
99
99
  }>;
100
100
  }
101
101
  export interface AutonomousEdit {
102
- path: string;
102
+ path?: string;
103
+ file?: string;
103
104
  search: string;
104
105
  replace: string;
106
+ explanation?: string;
105
107
  }
106
108
  export interface AutonomousStepResponse {
107
109
  card_id: string;
108
- action: 'select_files' | 'generate_edits';
110
+ action?: 'select_files' | 'generate_edits';
109
111
  selected_files?: string[];
112
+ target_files?: string[];
110
113
  edits?: AutonomousEdit[];
111
114
  summary?: string;
112
115
  verification_steps?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemonster/mcp-server",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "description": "Official Model Context Protocol (MCP) server & Orchestrator for Agile Monster (Cursor, Claude Code, Antigravity, Codex, Hermes, Windsurf)",
6
6
  "main": "dist/server.js",