Deprecated: Use PUT /servers// instead. Create a new server under the specified namespace. This endpoint is idempotent.
PUT
/
namespaces
/
{namespace}
/
servers
/
{server}
JavaScript
import Smithery from '@smithery/api';
const client = new Smithery({
apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});
const server = await client.namespaces.servers.create('xxx', { namespace: 'namespace' });
console.log(server.createdAt);
{
"namespace": "myorg",
"server": "my-server",
"displayName": "My Server",
"description": "A simple server",
"createdAt": "2024-01-01T00:00:00.000Z"
}
import Smithery from '@smithery/api';
const client = new Smithery({
apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});
const server = await client.namespaces.servers.create('xxx', { namespace: 'namespace' });
console.log(server.createdAt);
{
"namespace": "myorg",
"server": "my-server",
"displayName": "My Server",
"description": "A simple server",
"createdAt": "2024-01-01T00:00:00.000Z"
}
Assistant
Responses are generated using AI and may contain mistakes.