Skip to content

Conversation

@escapeboy
Copy link

@escapeboy escapeboy commented Nov 19, 2025

  • Add MCP server with connection manager and router for handling protocol requests
  • Implement execution history tracking with SQLite database migration
  • Add MCP tools: execute-php, execute-with-loader, get-execution-history, get-php-info, switch-connection
  • Create comprehensive MCP documentation: API, configuration, setup guide, troubleshooting, and implementation summary
  • Add error handling and logging infrastructure for MCP operations
  • Integrate MCP settings UI component in SettingsView
  • Add @modelcontextprotocol/sdk dependency (^1.22.0)
  • Update build configuration to externalize cpu-features dependency
  • Add .kiro directory to .gitignore
  • Include test-mcp-connection.js for connection validation
  • Enable AI assistants to execute PHP code and manage database connections through standardized protocol

Documentation PR: tweakphp/docs#7

- Add MCP server with connection manager and router for handling protocol requests
- Implement execution history tracking with SQLite database migration
- Add MCP tools: execute-php, execute-with-loader, get-execution-history, get-php-info, switch-connection
- Create comprehensive MCP documentation: API, configuration, setup guide, troubleshooting, and implementation summary
- Add error handling and logging infrastructure for MCP operations
- Integrate MCP settings UI component in SettingsView
- Add @modelcontextprotocol/sdk dependency (^1.22.0)
- Update build configuration to externalize cpu-features dependency
- Add .kiro directory to .gitignore
- Include test-mcp-connection.js for connection validation
- Enable AI assistants to execute PHP code and manage database connections through standardized protocol
@ILDaviz
Copy link
Member

ILDaviz commented Nov 19, 2025

pout-kiss

@saeedvaziry
Copy link
Member

Thanks for the PR.

I believe the MD files can be on the documentation instead of the code

saeedvaziry and others added 2 commits November 20, 2025 23:10
- Delete API.md documentation file
- Delete CONFIGURATION.md documentation file
- Delete ERROR_HANDLING.md documentation file
- Delete IMPLEMENTATION_SUMMARY.md documentation file
- Delete INDEX.md documentation file
- Delete README.md documentation file
- Delete SETUP_GUIDE.md documentation file
- Delete TROUBLESHOOTING.md documentation file
- Update test-mcp-connection.js with latest changes
- Consolidate MCP documentation into main project documentation
@escapeboy
Copy link
Author

Thanks for the PR.

I believe the MD files can be on the documentation instead of the code

Documentation PR: tweakphp/docs#7

@ILDaviz
Copy link
Member

ILDaviz commented Dec 1, 2025

Thank you very much for your work. As soon as I have a free moment, I'll get started on the review!

@saeedvaziry
Copy link
Member

I can't get it working
CleanShot 2025-12-06 at 12 48 02@2x

2025-12-06T11:51:14.084Z [tweakphp] [info] Initializing server... { metadata: undefined }
2025-12-06T11:51:14.090Z [tweakphp] [info] Using MCP server command: node with args and path: {
  metadata: {
    args: [
      '-e',
      "require('http').request({host:'127.0.0.1',port:3000,method:'POST',path:'/mcp'},r=>{let d='';r.on('data',c=>d+=c);r.on('end',()=>console.log(d))}).end(JSON.stringify(process.argv[2]))",
      [length]: 2
    ],
    paths: [
      '/usr/local/bin',
      '/opt/homebrew/bin',
      '/usr/bin',
      '/bin',
      '/usr/sbin',
      '/sbin',
      [length]: 6
    ]
  }
} %o
2025-12-06T11:51:14.091Z [tweakphp] [info] Server started and connected successfully { metadata: undefined }
Failed to spawn process: No such file or directory
2025-12-06T11:51:14.094Z [tweakphp] [info] Server transport closed { metadata: undefined }
2025-12-06T11:51:14.094Z [tweakphp] [info] Client transport closed { metadata: undefined }
2025-12-06T11:51:14.095Z [tweakphp] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log. { metadata: undefined }
2025-12-06T11:51:14.095Z [tweakphp] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) { metadata: { context: 'connection', stack: undefined } }
2025-12-06T11:51:14.095Z [tweakphp] [info] Client transport closed { metadata: undefined }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants