Skip to content
Discussion options

You must be logged in to vote

You can try this configuration:

...McpConnector::make([
    'command' => 'npx',
    'args' => [
        '-y',
        'mysql-mcp-server',
    ],
    'env' => [
        'MYSQL_HOST' => 'host.docker.internal',
        'MYSQL_PORT' => config('database.connections.crm.port'),
        'MYSQL_USER' => config('database.connections.crm.username'),
        'MYSQL_PASSWORD' => config('database.connections.crm.password'),
        'MYSQL_DATABASE' => config('database.connections.crm.database'),
        'PATH' => '/opt/homebrew/bin:/usr/bin:/bin',
        'NODE_PATH' => '/opt/homebrew/lib/node_modules',
    ],
])->tools(),

Let me know if it changes the behavior.

Replies: 5 comments 24 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ilvalerione
Comment options

Answer selected by robbielove
@robbielove
Comment options

@ilvalerione
Comment options

Comment options

You must be logged in to vote
17 replies
@ilvalerione
Comment options

@accountstam
Comment options

@ilvalerione
Comment options

@accountstam
Comment options

@ilvalerione
Comment options

Comment options

You must be logged in to vote
1 reply
@ilvalerione
Comment options

Comment options

You must be logged in to vote
3 replies
@ilvalerione
Comment options

@accountstam
Comment options

@ilvalerione
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants