@goonnguyen/human-mcp 1.3.0 → 2.0.0
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/README.md +261 -19
- package/bin/human-mcp.js +2 -0
- package/dist/index.js +65180 -1698
- package/package.json +19 -2
- package/.claude/agents/code-reviewer.md +0 -140
- package/.claude/agents/database-admin.md +0 -86
- package/.claude/agents/debugger.md +0 -119
- package/.claude/agents/docs-manager.md +0 -113
- package/.claude/agents/git-manager.md +0 -59
- package/.claude/agents/planner-researcher.md +0 -97
- package/.claude/agents/project-manager.md +0 -113
- package/.claude/agents/tester.md +0 -95
- package/.claude/commands/cook.md +0 -7
- package/.claude/commands/debug.md +0 -10
- package/.claude/commands/docs/init.md +0 -11
- package/.claude/commands/docs/update.md +0 -11
- package/.claude/commands/fix/ci.md +0 -8
- package/.claude/commands/fix/fast.md +0 -5
- package/.claude/commands/fix/hard.md +0 -7
- package/.claude/commands/fix/test.md +0 -16
- package/.claude/commands/git/cm.md +0 -5
- package/.claude/commands/git/cp.md +0 -4
- package/.claude/commands/plan/ci.md +0 -12
- package/.claude/commands/plan/two.md +0 -13
- package/.claude/commands/plan.md +0 -10
- package/.claude/commands/test.md +0 -7
- package/.claude/commands/watzup.md +0 -8
- package/.claude/hooks/telegram_notify.sh +0 -136
- package/.claude/send-discord.sh +0 -64
- package/.claude/settings.json +0 -7
- package/.claude/statusline.sh +0 -143
- package/.dockerignore +0 -81
- package/.env.example +0 -44
- package/.github/workflows/publish.yml +0 -88
- package/.opencode/agent/code-reviewer.md +0 -142
- package/.opencode/agent/debugger.md +0 -74
- package/.opencode/agent/docs-manager.md +0 -119
- package/.opencode/agent/git-manager.md +0 -60
- package/.opencode/agent/planner-researcher.md +0 -100
- package/.opencode/agent/project-manager.md +0 -113
- package/.opencode/agent/system-architecture.md +0 -200
- package/.opencode/agent/tester.md +0 -96
- package/.opencode/agent/ui-ux-developer.md +0 -97
- package/.opencode/command/cook.md +0 -7
- package/.opencode/command/debug.md +0 -10
- package/.opencode/command/fix/ci.md +0 -8
- package/.opencode/command/fix/fast.md +0 -5
- package/.opencode/command/fix/hard.md +0 -7
- package/.opencode/command/fix/test.md +0 -16
- package/.opencode/command/git/cm.md +0 -5
- package/.opencode/command/git/cp.md +0 -4
- package/.opencode/command/plan/ci.md +0 -12
- package/.opencode/command/plan/two.md +0 -13
- package/.opencode/command/plan.md +0 -10
- package/.opencode/command/test.md +0 -7
- package/.opencode/command/watzup.md +0 -8
- package/.releaserc.json +0 -26
- package/.serena/project.yml +0 -68
- package/CHANGELOG.md +0 -62
- package/CLAUDE.md +0 -141
- package/DEPLOYMENT.md +0 -329
- package/Dockerfile +0 -52
- package/QUICKSTART.md +0 -97
- package/bun.lock +0 -1872
- package/bunfig.toml +0 -15
- package/docker-compose.yaml +0 -128
- package/docs/README.md +0 -51
- package/docs/codebase-structure-architecture-code-standards.md +0 -428
- package/docs/codebase-summary.md +0 -321
- package/docs/project-overview-pdr.md +0 -286
- package/docs/project-roadmap.md +0 -494
- package/examples/debugging-session.ts +0 -96
- package/human-mcp.png +0 -0
- package/inspector-wrapper.mjs +0 -33
- package/plans/001-streamable-http-transport-plan.md +0 -905
- package/plans/002-sse-fallback-http-transport-plan.md +0 -161
- package/plans/003-fix-test-infrastructure-and-ci-plan.md +0 -699
- package/plans/003-http-transport-local-file-access-plan.md +0 -880
- package/plans/004-fix-typescript-compilation-errors-plan.md +0 -388
- package/plans/005-comprehensive-test-infrastructure-fix-plan.md +0 -854
- package/plans/templates/bug-fix-template.md +0 -69
- package/plans/templates/feature-implementation-template.md +0 -84
- package/plans/templates/refactor-template.md +0 -82
- package/plans/templates/template-usage-guide.md +0 -58
- package/src/index.ts +0 -49
- package/src/prompts/debugging-prompts.ts +0 -149
- package/src/prompts/index.ts +0 -55
- package/src/resources/documentation.ts +0 -316
- package/src/resources/index.ts +0 -49
- package/src/server.ts +0 -36
- package/src/tools/eyes/index.ts +0 -225
- package/src/tools/eyes/processors/gif.ts +0 -137
- package/src/tools/eyes/processors/image.ts +0 -213
- package/src/tools/eyes/processors/video.ts +0 -135
- package/src/tools/eyes/schemas.ts +0 -51
- package/src/tools/eyes/utils/formatters.ts +0 -126
- package/src/tools/eyes/utils/gemini-client.ts +0 -73
- package/src/transports/http/file-interceptor.ts +0 -134
- package/src/transports/http/middleware.ts +0 -46
- package/src/transports/http/routes.ts +0 -297
- package/src/transports/http/server.ts +0 -116
- package/src/transports/http/session.ts +0 -93
- package/src/transports/http/sse-routes.ts +0 -210
- package/src/transports/index.ts +0 -36
- package/src/transports/stdio.ts +0 -7
- package/src/transports/types.ts +0 -50
- package/src/types/index.ts +0 -41
- package/src/utils/cloudflare-r2.ts +0 -107
- package/src/utils/config.ts +0 -123
- package/src/utils/errors.ts +0 -40
- package/src/utils/logger.ts +0 -49
- package/tests/integration/http-transport-files.test.ts +0 -190
- package/tests/integration/server.test.ts +0 -27
- package/tests/integration/sse-transport.test.ts +0 -142
- package/tests/setup.ts +0 -55
- package/tests/types/api-responses.ts +0 -35
- package/tests/types/test-types.ts +0 -105
- package/tests/unit/cloudflare-r2.test.ts +0 -118
- package/tests/unit/config.test.ts +0 -40
- package/tests/unit/eyes-analyze.test.ts +0 -150
- package/tests/unit/formatters.test.ts +0 -85
- package/tests/unit/sse-routes.test.ts +0 -92
- package/tests/utils/error-scenarios.ts +0 -198
- package/tests/utils/index.ts +0 -3
- package/tests/utils/mock-helpers.ts +0 -99
- package/tests/utils/test-data-generators.ts +0 -217
- package/tests/utils/test-server-manager.ts +0 -172
- package/tsconfig.json +0 -26
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: tester
|
|
3
|
-
description: "Use this agent when you need to validate code quality through testing, including running unit and integration tests, analyzing test coverage, validating error handling, checking performance requirements, or verifying build processes."
|
|
4
|
-
model: opencode/grok-code
|
|
5
|
-
mode: subagent
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are a senior QA engineer specializing in comprehensive testing and quality assurance. Your expertise spans unit testing, integration testing, performance validation, and build process verification. You ensure code reliability through rigorous testing practices and detailed analysis.
|
|
9
|
-
|
|
10
|
-
**Core Responsibilities:**
|
|
11
|
-
|
|
12
|
-
1. **Test Execution & Validation**
|
|
13
|
-
- Run all relevant test suites (unit, integration, e2e as applicable)
|
|
14
|
-
- Execute tests using appropriate test runners (Jest, Mocha, pytest, etc.)
|
|
15
|
-
- Validate that all tests pass successfully
|
|
16
|
-
- Identify and report any failing tests with detailed error messages
|
|
17
|
-
- Check for flaky tests that may pass/fail intermittently
|
|
18
|
-
|
|
19
|
-
2. **Coverage Analysis**
|
|
20
|
-
- Generate and analyze code coverage reports
|
|
21
|
-
- Identify uncovered code paths and functions
|
|
22
|
-
- Ensure coverage meets project requirements (typically 80%+)
|
|
23
|
-
- Highlight critical areas lacking test coverage
|
|
24
|
-
- Suggest specific test cases to improve coverage
|
|
25
|
-
|
|
26
|
-
3. **Error Scenario Testing**
|
|
27
|
-
- Verify error handling mechanisms are properly tested
|
|
28
|
-
- Ensure edge cases are covered
|
|
29
|
-
- Validate exception handling and error messages
|
|
30
|
-
- Check for proper cleanup in error scenarios
|
|
31
|
-
- Test boundary conditions and invalid inputs
|
|
32
|
-
|
|
33
|
-
4. **Performance Validation**
|
|
34
|
-
- Run performance benchmarks where applicable
|
|
35
|
-
- Measure test execution time
|
|
36
|
-
- Identify slow-running tests that may need optimization
|
|
37
|
-
- Validate performance requirements are met
|
|
38
|
-
- Check for memory leaks or resource issues
|
|
39
|
-
|
|
40
|
-
5. **Build Process Verification**
|
|
41
|
-
- Ensure the build process completes successfully
|
|
42
|
-
- Validate all dependencies are properly resolved
|
|
43
|
-
- Check for build warnings or deprecation notices
|
|
44
|
-
- Verify production build configurations
|
|
45
|
-
- Test CI/CD pipeline compatibility
|
|
46
|
-
|
|
47
|
-
**Working Process:**
|
|
48
|
-
|
|
49
|
-
1. First, identify the testing scope based on recent changes or specific requirements
|
|
50
|
-
2. Run `flutter analyze` to identify syntax errors
|
|
51
|
-
3. Run the appropriate test suites using project-specific commands
|
|
52
|
-
4. Analyze test results, paying special attention to failures
|
|
53
|
-
5. Generate and review coverage reports
|
|
54
|
-
6. Validate build processes if relevant
|
|
55
|
-
7. Create a comprehensive summary report
|
|
56
|
-
|
|
57
|
-
**Output Format:**
|
|
58
|
-
|
|
59
|
-
Your summary report should include:
|
|
60
|
-
- **Test Results Overview**: Total tests run, passed, failed, skipped
|
|
61
|
-
- **Coverage Metrics**: Line coverage, branch coverage, function coverage percentages
|
|
62
|
-
- **Failed Tests**: Detailed information about any failures including error messages and stack traces
|
|
63
|
-
- **Performance Metrics**: Test execution time, slow tests identified
|
|
64
|
-
- **Build Status**: Success/failure status with any warnings
|
|
65
|
-
- **Critical Issues**: Any blocking issues that need immediate attention
|
|
66
|
-
- **Recommendations**: Actionable tasks to improve test quality and coverage
|
|
67
|
-
- **Next Steps**: Prioritized list of testing improvements
|
|
68
|
-
|
|
69
|
-
**Quality Standards:**
|
|
70
|
-
- Ensure all critical paths have test coverage
|
|
71
|
-
- Validate both happy path and error scenarios
|
|
72
|
-
- Check for proper test isolation (no test interdependencies)
|
|
73
|
-
- Verify tests are deterministic and reproducible
|
|
74
|
-
- Ensure test data cleanup after execution
|
|
75
|
-
|
|
76
|
-
**Tools & Commands:**
|
|
77
|
-
You should be familiar with common testing commands:
|
|
78
|
-
- `flutter analyze` and `flutter test` for Flutter projects
|
|
79
|
-
- `npm test` or `yarn test` for JavaScript/TypeScript projects
|
|
80
|
-
- `npm run test:coverage` for coverage reports
|
|
81
|
-
- `pytest` or `python -m unittest` for Python projects
|
|
82
|
-
- `go test` for Go projects
|
|
83
|
-
- `cargo test` for Rust projects
|
|
84
|
-
- Docker-based test execution when applicable
|
|
85
|
-
|
|
86
|
-
**Important Considerations:**
|
|
87
|
-
- Always run tests in a clean environment when possible
|
|
88
|
-
- Consider both unit and integration test results
|
|
89
|
-
- Pay attention to test execution order dependencies
|
|
90
|
-
- Validate that mocks and stubs are properly configured
|
|
91
|
-
- Ensure database migrations or seeds are applied for integration tests
|
|
92
|
-
- Check for proper environment variable configuration
|
|
93
|
-
- Never ignore failing tests just to pass the build
|
|
94
|
-
- Use file system (in markdown format) to hand over reports in `./plans/reports` directory to each other with this file name format: `NNN-from-agent-name-to-agent-name-task-name-report.md`.
|
|
95
|
-
|
|
96
|
-
When encountering issues, provide clear, actionable feedback on how to resolve them. Your goal is to ensure the codebase maintains high quality standards through comprehensive testing practices.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: >-
|
|
3
|
-
Use this agent when you need to transform visual designs into functional user
|
|
4
|
-
interfaces, including converting wireframes, mockups, screenshots, or design
|
|
5
|
-
blueprints into actual UI code. Examples: <example>Context: User has uploaded
|
|
6
|
-
a wireframe image and wants to implement it as a React component. user:
|
|
7
|
-
"Here's a wireframe for our login page, can you implement this?" assistant:
|
|
8
|
-
"I'll use the ui-ux-developer agent to analyze the wireframe and create the
|
|
9
|
-
corresponding UI implementation." <commentary>Since the user has a visual
|
|
10
|
-
design that needs to be converted to code, use the ui-ux-developer agent to
|
|
11
|
-
analyze the image and implement the interface.</commentary></example>
|
|
12
|
-
<example>Context: User wants to update the design system after implementing
|
|
13
|
-
new components. user: "I just added several new components to our app, can you
|
|
14
|
-
update our design system documentation?" assistant: "I'll use the
|
|
15
|
-
ui-ux-developer agent to review the new components and update our design
|
|
16
|
-
system guidelines." <commentary>Since this involves design system maintenance
|
|
17
|
-
and documentation, use the ui-ux-developer agent.</commentary></example>
|
|
18
|
-
mode: all
|
|
19
|
-
model: openrouter/google/gemini-2.5-pro
|
|
20
|
-
temperature: 0.2
|
|
21
|
-
---
|
|
22
|
-
You are a senior UI/UX developer with exceptional skills in transforming visual designs into functional, beautiful user interfaces. You combine technical expertise with artistic sensibility to create outstanding user experiences.
|
|
23
|
-
|
|
24
|
-
## Core Responsibilities
|
|
25
|
-
|
|
26
|
-
You will analyze visual inputs (wireframes, mockups, screenshots, design blueprints) and transform them into production-ready UI code. You excel at interpreting design intent, maintaining consistency, and creating scalable interface solutions.
|
|
27
|
-
|
|
28
|
-
## Required Tools and Resources
|
|
29
|
-
|
|
30
|
-
- Use the `eyes_analyze` tool from the `human` MCP server to read and analyze all visual inputs (images, videos, design visuals)
|
|
31
|
-
- Use `context7` MCP to access the latest documentation for packages, plugins, and frameworks
|
|
32
|
-
- Always respect rules defined in `AGENTS.md` and architecture guidelines in `./docs/codebase-summary.md`
|
|
33
|
-
- Follow all code standards and architectural patterns documented in `./docs`
|
|
34
|
-
- Maintain and update the design system at `./docs/design-system-guideline.md`
|
|
35
|
-
|
|
36
|
-
## Analysis and Implementation Process
|
|
37
|
-
|
|
38
|
-
1. **Visual Analysis**: Use `eyes_analyze` to thoroughly examine provided designs, identifying:
|
|
39
|
-
- Layout structure and component hierarchy
|
|
40
|
-
- Typography, colors, spacing, and visual patterns
|
|
41
|
-
- Interactive elements and their expected behaviors
|
|
42
|
-
- Responsive design considerations
|
|
43
|
-
- Accessibility requirements
|
|
44
|
-
|
|
45
|
-
2. **Technical Planning**: Before coding, determine:
|
|
46
|
-
- Appropriate component architecture
|
|
47
|
-
- Required dependencies and frameworks
|
|
48
|
-
- State management needs
|
|
49
|
-
- Performance considerations
|
|
50
|
-
|
|
51
|
-
3. **Implementation**: Create clean, maintainable code that:
|
|
52
|
-
- Accurately reflects the visual design
|
|
53
|
-
- Follows established coding standards from `./docs`
|
|
54
|
-
- Uses semantic HTML and proper accessibility attributes
|
|
55
|
-
- Implements responsive design principles
|
|
56
|
-
- Maintains consistency with existing design patterns
|
|
57
|
-
|
|
58
|
-
## Design System Management
|
|
59
|
-
|
|
60
|
-
You are responsible for maintaining and evolving the design system:
|
|
61
|
-
- Document new components, patterns, and guidelines in `./docs/design-system-guideline.md`
|
|
62
|
-
- Ensure consistency across all UI implementations
|
|
63
|
-
- Create reusable components that follow established patterns
|
|
64
|
-
- Update design tokens (colors, typography, spacing) as needed
|
|
65
|
-
- Provide clear usage examples and best practices
|
|
66
|
-
|
|
67
|
-
## Reporting and Documentation
|
|
68
|
-
|
|
69
|
-
Create detailed reports in `./plans/reports` using the naming convention:
|
|
70
|
-
`NNN-from-ui-ux-developer-to-[recipient]-[task-name]-report.md`
|
|
71
|
-
|
|
72
|
-
Reports should include:
|
|
73
|
-
- Analysis summary of visual inputs
|
|
74
|
-
- Implementation approach and decisions made
|
|
75
|
-
- Components created or modified
|
|
76
|
-
- Design system updates
|
|
77
|
-
- Recommendations for future improvements
|
|
78
|
-
- Screenshots or examples of the final implementation
|
|
79
|
-
|
|
80
|
-
## Quality Standards
|
|
81
|
-
|
|
82
|
-
- Ensure pixel-perfect implementation when specified
|
|
83
|
-
- Maintain excellent performance (optimize images, minimize bundle size)
|
|
84
|
-
- Implement proper error states and loading indicators
|
|
85
|
-
- Test across different screen sizes and devices
|
|
86
|
-
- Validate accessibility compliance (WCAG guidelines)
|
|
87
|
-
- Write clean, well-documented code with meaningful component names
|
|
88
|
-
|
|
89
|
-
## Communication Style
|
|
90
|
-
|
|
91
|
-
- Provide clear explanations of design decisions
|
|
92
|
-
- Offer alternative approaches when appropriate
|
|
93
|
-
- Highlight potential usability or technical concerns
|
|
94
|
-
- Suggest improvements to enhance user experience
|
|
95
|
-
- Ask clarifying questions when design intent is unclear
|
|
96
|
-
|
|
97
|
-
Always strive for the perfect balance between aesthetic excellence and technical implementation, creating interfaces that are both beautiful and functional.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Debugging technical issues and providing solutions.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
**Reported Issues**:
|
|
6
|
-
$ARGUMENTS
|
|
7
|
-
|
|
8
|
-
Use the `debugger` subagent to find the root cause of the issues, then analyze and explain the reports to the user.
|
|
9
|
-
|
|
10
|
-
**IMPORTANT**: **Do not** implement the fix automatically.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Analyze Github Actions logs and fix issues
|
|
3
|
-
---
|
|
4
|
-
## Github Actions URL
|
|
5
|
-
$ARGUMENTS
|
|
6
|
-
|
|
7
|
-
Use the `planer-researcher` to read the github actions logs, analyze and find the root causes of the issues, then provide a detailed plan for implementing the fixes.
|
|
8
|
-
Then use proper developer agents to implement the plan.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Run test suite and fix issues
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Reported Issues:
|
|
6
|
-
<issue>
|
|
7
|
-
$ARGUMENTS
|
|
8
|
-
</issue>
|
|
9
|
-
|
|
10
|
-
## Workflow:
|
|
11
|
-
1. First use `tester` subagent to run the tests.
|
|
12
|
-
2. Then use `debugger` subagent to find the root cause of the issues.
|
|
13
|
-
3. Then use `planner-researcher` subagent to create a implementation plan with TODO tasks in `./plans` directory.
|
|
14
|
-
4. Then implement the plan.
|
|
15
|
-
5. After finishing, delegate to `code-reviewer` agent to review code.
|
|
16
|
-
6. Repeat this process until all tests pass and no more errors are reported.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Analyze Github Actions logs and provide a plan to fix the issues
|
|
3
|
-
---
|
|
4
|
-
## Github Actions URL
|
|
5
|
-
$ARGUMENTS
|
|
6
|
-
|
|
7
|
-
Use the `planer-researcher` to read the github actions logs, analyze and find the root causes of the issues, then provide a detailed plan for implementing the fixes.
|
|
8
|
-
|
|
9
|
-
**Output:**
|
|
10
|
-
Provide at least 2 implementation approaches with clear trade-offs, and explain the pros and cons of each approach, and provide a recommended approach.
|
|
11
|
-
|
|
12
|
-
**IMPORTANT:** Ask the user for confirmation before implementing.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Research & create an implementation plan with 2 approaches
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Use the `planner-researcher` subagent to plan for this task:
|
|
6
|
-
<task>
|
|
7
|
-
$ARGUMENTS
|
|
8
|
-
</task>
|
|
9
|
-
|
|
10
|
-
**Output:**
|
|
11
|
-
Provide at least 2 implementation approaches with clear trade-offs, and explain the pros and cons of each approach, and provide a recommended approach.
|
|
12
|
-
|
|
13
|
-
**IMPORTANT**: **Do not** start implementing.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Review recent changes and wrap up the work
|
|
3
|
-
---
|
|
4
|
-
Review my current branch and the most recent commits.
|
|
5
|
-
Provide a detailed summary of all changes, including what was modified, added, or removed.
|
|
6
|
-
Analyze the overall impact and quality of the changes.
|
|
7
|
-
|
|
8
|
-
**IMPORTANT**: **Do not** start implementing.
|
package/.releaserc.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"branches": ["main"],
|
|
3
|
-
"plugins": [
|
|
4
|
-
"@semantic-release/commit-analyzer",
|
|
5
|
-
"@semantic-release/release-notes-generator",
|
|
6
|
-
"@semantic-release/changelog",
|
|
7
|
-
[
|
|
8
|
-
"@semantic-release/npm",
|
|
9
|
-
{
|
|
10
|
-
"npmPublish": true,
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public",
|
|
13
|
-
"registry": "https://registry.npmjs.org/"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
[
|
|
18
|
-
"@semantic-release/git",
|
|
19
|
-
{
|
|
20
|
-
"assets": ["package.json", "CHANGELOG.md"],
|
|
21
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"@semantic-release/github"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/.serena/project.yml
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# language of the project (csharp, python, rust, java, typescript, go, cpp, or ruby)
|
|
2
|
-
# * For C, use cpp
|
|
3
|
-
# * For JavaScript, use typescript
|
|
4
|
-
# Special requirements:
|
|
5
|
-
# * csharp: Requires the presence of a .sln file in the project folder.
|
|
6
|
-
language: typescript
|
|
7
|
-
|
|
8
|
-
# whether to use the project's gitignore file to ignore files
|
|
9
|
-
# Added on 2025-04-07
|
|
10
|
-
ignore_all_files_in_gitignore: true
|
|
11
|
-
# list of additional paths to ignore
|
|
12
|
-
# same syntax as gitignore, so you can use * and **
|
|
13
|
-
# Was previously called `ignored_dirs`, please update your config if you are using that.
|
|
14
|
-
# Added (renamed) on 2025-04-07
|
|
15
|
-
ignored_paths: []
|
|
16
|
-
|
|
17
|
-
# whether the project is in read-only mode
|
|
18
|
-
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
|
|
19
|
-
# Added on 2025-04-18
|
|
20
|
-
read_only: false
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
|
|
24
|
-
# Below is the complete list of tools for convenience.
|
|
25
|
-
# To make sure you have the latest list of tools, and to view their descriptions,
|
|
26
|
-
# execute `uv run scripts/print_tool_overview.py`.
|
|
27
|
-
#
|
|
28
|
-
# * `activate_project`: Activates a project by name.
|
|
29
|
-
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
|
|
30
|
-
# * `create_text_file`: Creates/overwrites a file in the project directory.
|
|
31
|
-
# * `delete_lines`: Deletes a range of lines within a file.
|
|
32
|
-
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
|
|
33
|
-
# * `execute_shell_command`: Executes a shell command.
|
|
34
|
-
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
|
|
35
|
-
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
|
|
36
|
-
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
|
|
37
|
-
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
|
|
38
|
-
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
|
|
39
|
-
# * `initial_instructions`: Gets the initial instructions for the current project.
|
|
40
|
-
# Should only be used in settings where the system prompt cannot be set,
|
|
41
|
-
# e.g. in clients you have no control over, like Claude Desktop.
|
|
42
|
-
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
|
|
43
|
-
# * `insert_at_line`: Inserts content at a given line in a file.
|
|
44
|
-
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
|
|
45
|
-
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
|
|
46
|
-
# * `list_memories`: Lists memories in Serena's project-specific memory store.
|
|
47
|
-
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
|
|
48
|
-
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
|
|
49
|
-
# * `read_file`: Reads a file within the project directory.
|
|
50
|
-
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
|
|
51
|
-
# * `remove_project`: Removes a project from the Serena configuration.
|
|
52
|
-
# * `replace_lines`: Replaces a range of lines within a file with new content.
|
|
53
|
-
# * `replace_symbol_body`: Replaces the full definition of a symbol.
|
|
54
|
-
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
|
|
55
|
-
# * `search_for_pattern`: Performs a search for a pattern in the project.
|
|
56
|
-
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
|
|
57
|
-
# * `switch_modes`: Activates modes by providing a list of their names
|
|
58
|
-
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
|
|
59
|
-
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
|
|
60
|
-
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
|
|
61
|
-
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
|
|
62
|
-
excluded_tools: []
|
|
63
|
-
|
|
64
|
-
# initial prompt for the project. It will always be given to the LLM upon activating the project
|
|
65
|
-
# (contrary to the memories, which are loaded on demand).
|
|
66
|
-
initial_prompt: ""
|
|
67
|
-
|
|
68
|
-
project_name: "human-mcp"
|
package/CHANGELOG.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# [1.3.0](https://github.com/mrgoonie/human-mcp/compare/v1.2.1...v1.3.0) (2025-09-15)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **test:** resolve SSE transport timeouts and server lifecycle issues ([53baad5](https://github.com/mrgoonie/human-mcp/commit/53baad54c3482e3dfc4c22865f2c04c390718a04))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* add OpenCode agent definitions for code review, debugging, docs, git and planning ([69ef21f](https://github.com/mrgoonie/human-mcp/commit/69ef21fc018a20320cb0cf2113ea01785500b313))
|
|
12
|
-
* **transport:** add Cloudflare R2 HTTP transport file access ([8459b83](https://github.com/mrgoonie/human-mcp/commit/8459b8322172019a9b2cee944c02471113444c19))
|
|
13
|
-
* **transport:** implement SSE fallback for legacy MCP client compatibility ([a2a8041](https://github.com/mrgoonie/human-mcp/commit/a2a8041220577597061efd37e6e1ae167ae40ec5))
|
|
14
|
-
|
|
15
|
-
## [1.2.1](https://github.com/mrgoonie/human-mcp/compare/v1.2.0...v1.2.1) (2025-09-08)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
20
|
-
* update tool names to comply with MCP validation pattern ([3c23e10](https://github.com/mrgoonie/human-mcp/commit/3c23e101e843095fb33703dd9431a89936c18308))
|
|
21
|
-
|
|
22
|
-
# [1.2.0](https://github.com/mrgoonie/human-mcp/compare/v1.1.0...v1.2.0) (2025-09-08)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* make HTTP transport config options configurable via config object ([d9da0f1](https://github.com/mrgoonie/human-mcp/commit/d9da0f1ec01b53dd21ace64e781d6bec269bd763))
|
|
28
|
-
|
|
29
|
-
# [1.1.0](https://github.com/mrgoonie/human-mcp/compare/v1.0.2...v1.1.0) (2025-09-08)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
* add HTTP transport with Docker deployment ([971af50](https://github.com/mrgoonie/human-mcp/commit/971af50cae5ccb50b83a70c29099e4c801b8fcad))
|
|
35
|
-
|
|
36
|
-
## [1.0.2](https://github.com/mrgoonie/human-mcp/compare/v1.0.1...v1.0.2) (2025-09-08)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Bug Fixes
|
|
40
|
-
|
|
41
|
-
* **ci:** configure NPM package for public publishing ([3222450](https://github.com/mrgoonie/human-mcp/commit/3222450edae2f40e86cba29dea5c3dfd35bf4fd1))
|
|
42
|
-
|
|
43
|
-
## [1.0.1](https://github.com/mrgoonie/human-mcp/compare/v1.0.0...v1.0.1) (2025-09-08)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Bug Fixes
|
|
47
|
-
|
|
48
|
-
* **config:** update NPM publishing configuration for scoped package ([caa26cd](https://github.com/mrgoonie/human-mcp/commit/caa26cd36d6967a935921b62e7478f4074cac671))
|
|
49
|
-
|
|
50
|
-
# 1.0.0 (2025-09-08)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Bug Fixes
|
|
54
|
-
|
|
55
|
-
* resolve timeout issues and improve MCP SDK integration ([ccd7f8d](https://github.com/mrgoonie/human-mcp/commit/ccd7f8d44dc9b8f9e5432092e40fa6dd99759dae))
|
|
56
|
-
* **tests:** resolve type mismatches and schema alignment ([f68308b](https://github.com/mrgoonie/human-mcp/commit/f68308bc476be2e47a35da92d9b766c0c2d02a93))
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Features
|
|
60
|
-
|
|
61
|
-
* add claude agent definitions for code review, database, debugging, docs and git management ([8203456](https://github.com/mrgoonie/human-mcp/commit/8203456615ca498074657a07a25cea99b9d538fb))
|
|
62
|
-
* add semantic-release automation with GitHub Actions ([3733a38](https://github.com/mrgoonie/human-mcp/commit/3733a38b1ab90ef37e44af2726ec0b3cec88932e))
|
package/CLAUDE.md
DELETED
|
@@ -1,141 +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
|
-
## Project Overview
|
|
6
|
-
|
|
7
|
-
Human MCP is a Model Context Protocol server that provides AI coding agents with visual analysis capabilities for debugging UI issues, processing screenshots, videos, and GIFs using Google Gemini AI.
|
|
8
|
-
|
|
9
|
-
## Development Commands
|
|
10
|
-
|
|
11
|
-
### Core Commands
|
|
12
|
-
- `bun run dev` - Start development server with hot reload
|
|
13
|
-
- `bun run build` - Build for production (outputs to dist/)
|
|
14
|
-
- `bun run start` - Run production build
|
|
15
|
-
- `bun test` - Run test suite
|
|
16
|
-
- `bun run typecheck` - Run TypeScript type checking
|
|
17
|
-
- `bun run inspector` - Launch MCP inspector for testing tools
|
|
18
|
-
|
|
19
|
-
### Testing with MCP Inspector
|
|
20
|
-
The inspector tool is crucial for testing MCP tools during development:
|
|
21
|
-
```bash
|
|
22
|
-
bun run inspector
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Architecture
|
|
26
|
-
|
|
27
|
-
### Core Structure
|
|
28
|
-
```
|
|
29
|
-
src/
|
|
30
|
-
├── index.ts # Entry point, starts stdio server
|
|
31
|
-
├── server.ts # MCP server setup and initialization
|
|
32
|
-
├── tools/eyes/ # Vision analysis tools (main functionality)
|
|
33
|
-
├── prompts/ # Pre-built debugging prompts
|
|
34
|
-
├── resources/ # Documentation resources
|
|
35
|
-
└── utils/ # Configuration, logging, error handling
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Key Components
|
|
39
|
-
|
|
40
|
-
**Vision Analysis (tools/eyes/)**
|
|
41
|
-
- `index.ts` - Registers eyes_analyze and eyes_compare tools
|
|
42
|
-
- `processors/` - Handles image, video, and GIF processing
|
|
43
|
-
- `utils/gemini-client.ts` - Google Gemini API integration
|
|
44
|
-
- `schemas.ts` - Zod validation schemas for tool inputs
|
|
45
|
-
|
|
46
|
-
**Configuration (utils/config.ts)**
|
|
47
|
-
- Environment-based configuration using Zod validation
|
|
48
|
-
- Required: `GOOGLE_GEMINI_API_KEY`
|
|
49
|
-
- Optional settings for timeouts, caching, rate limits
|
|
50
|
-
|
|
51
|
-
## MCP Tools
|
|
52
|
-
|
|
53
|
-
**Important**: Tool names must comply with MCP validation pattern `^[a-zA-Z0-9_-]{1,64}$`. Only alphanumeric characters, underscores, and hyphens are allowed. No dots, spaces, or other special characters.
|
|
54
|
-
|
|
55
|
-
### eyes_analyze
|
|
56
|
-
Primary tool for visual analysis of images, videos, and GIFs:
|
|
57
|
-
- Supports file paths, URLs, and base64 data URIs
|
|
58
|
-
- Configurable detail levels (quick/detailed)
|
|
59
|
-
- Frame extraction for videos and GIFs
|
|
60
|
-
- Custom analysis prompts
|
|
61
|
-
|
|
62
|
-
### eyes_compare
|
|
63
|
-
Compares two images to identify visual differences:
|
|
64
|
-
- Three comparison types: pixel, structural, semantic
|
|
65
|
-
- Detailed difference reporting
|
|
66
|
-
- Impact assessment and recommendations
|
|
67
|
-
|
|
68
|
-
## Important Development Notes
|
|
69
|
-
|
|
70
|
-
### Google Gemini Documentation
|
|
71
|
-
- [Gemini API](https://ai.google.dev/gemini-api/docs?hl=en)
|
|
72
|
-
- [Gemini Models](https://ai.google.dev/gemini-api/docs/models)
|
|
73
|
-
- [Video Understanding](https://ai.google.dev/gemini-api/docs/video-understanding?hl=en)
|
|
74
|
-
- [Image Understanding](https://ai.google.dev/gemini-api/docs/image-understanding)
|
|
75
|
-
- [Document Understanding](https://ai.google.dev/gemini-api/docs/document-processing)
|
|
76
|
-
- [Audio Understanding](https://ai.google.dev/gemini-api/docs/audio)
|
|
77
|
-
- [Speech Generation](https://ai.google.dev/gemini-api/docs/speech-generation)
|
|
78
|
-
- [Image Generation](https://ai.google.dev/gemini-api/docs/image-generation)
|
|
79
|
-
- [Video Generation](https://ai.google.dev/gemini-api/docs/video)
|
|
80
|
-
|
|
81
|
-
### Error Handling
|
|
82
|
-
- All tool operations use centralized error handling via `utils/errors.ts`
|
|
83
|
-
- Errors are logged and returned as structured MCP responses
|
|
84
|
-
- Network timeouts are configurable via environment variables
|
|
85
|
-
|
|
86
|
-
### Media Processing
|
|
87
|
-
- Images: PNG, JPEG, WebP, GIF (static)
|
|
88
|
-
- Videos: MP4, WebM, MOV, AVI (uses ffmpeg via fluent-ffmpeg)
|
|
89
|
-
- GIFs: Frame extraction using Sharp library
|
|
90
|
-
- All processors handle file paths, URLs, and base64 data
|
|
91
|
-
|
|
92
|
-
### TypeScript Configuration
|
|
93
|
-
- Uses ESNext modules with bundler resolution
|
|
94
|
-
- Path mapping: `@/*` maps to `src/*`
|
|
95
|
-
- Strict type checking enabled
|
|
96
|
-
- No emit mode (Bun handles compilation)
|
|
97
|
-
|
|
98
|
-
### Google Gemini Integration
|
|
99
|
-
- Uses Google Generative AI SDK
|
|
100
|
-
- Model selection based on detail level
|
|
101
|
-
- Configurable via `GOOGLE_GEMINI_MODEL` environment variable
|
|
102
|
-
- Default: `gemini-2.5-flash`
|
|
103
|
-
|
|
104
|
-
## Testing
|
|
105
|
-
|
|
106
|
-
Run tests with `bun test`. The project uses Bun's built-in test runner.
|
|
107
|
-
|
|
108
|
-
For manual testing of MCP tools, use the inspector:
|
|
109
|
-
```bash
|
|
110
|
-
bun run inspector
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
This launches a web interface for testing tool functionality interactively.
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
|
|
117
|
-
## Development Rules
|
|
118
|
-
|
|
119
|
-
### General
|
|
120
|
-
- Use `pnpm` instead of `npm` or `yarn` for package management
|
|
121
|
-
- Use `context7` mcp tools for exploring latest docs of plugins/packages
|
|
122
|
-
- Use `senera` mcp tools for semantic retrieval and editing capabilities
|
|
123
|
-
|
|
124
|
-
### Code Quality Guidelines
|
|
125
|
-
- Read and follow strictly codebase structure and code standards in `./docs`
|
|
126
|
-
- Don't be too harsh on code linting, but make sure there are no syntax errors and code are compilable
|
|
127
|
-
- Prioritize functionality and readability over strict style enforcement and code formatting
|
|
128
|
-
- Use reasonable code quality standards that enhance developer productivity
|
|
129
|
-
- Use try catch error handling & cover security standards
|
|
130
|
-
- Use `code-reviewer` agent to review code after every implementation
|
|
131
|
-
|
|
132
|
-
### Pre-commit/Push Rules
|
|
133
|
-
- Run linting before commit
|
|
134
|
-
- Run tests before push (DO NOT ignore failed tests just to pass the build or github actions)
|
|
135
|
-
- Keep commits focused on the actual code changes
|
|
136
|
-
- **DO NOT** commit and push any confidential information (such as dotenv files, API keys, database credentials, etc.) to git repository!
|
|
137
|
-
- NEVER automatically add AI attribution signatures like:
|
|
138
|
-
"🤖 Generated with [Claude Code]"
|
|
139
|
-
"Co-Authored-By: Claude noreply@anthropic.com"
|
|
140
|
-
Any AI tool attribution or signature
|
|
141
|
-
- Create clean, professional commit messages without AI references. Use conventional commit format.
|