Get the GitHub repository connection for a server, if one exists.
GET
/
servers
/
{namespace}
/
{server}
/
repo
JavaScript
Copy
Ask AI
import Smithery from '@smithery/api';
const client = new Smithery({
apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});
const repo = await client.servers.repo.get('server', { namespace: 'namespace' });
console.log(repo.autoDeploy);
import Smithery from '@smithery/api';
const client = new Smithery({
apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});
const repo = await client.servers.repo.get('server', { namespace: 'namespace' });
console.log(repo.autoDeploy);