fix: update command names per plugin guidelines
Remove 'MCP Server' prefix from command display names to comply with Obsidian plugin guidelines. Command IDs remain unchanged for API stability. - Start MCP Server → Start server - Stop MCP Server → Stop server - Restart MCP Server → Restart server
This commit is contained in:
@@ -51,7 +51,7 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
// Register commands
|
// Register commands
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
id: 'start-mcp-server',
|
id: 'start-mcp-server',
|
||||||
name: 'Start MCP Server',
|
name: 'Start server',
|
||||||
callback: async () => {
|
callback: async () => {
|
||||||
await this.startServer();
|
await this.startServer();
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
id: 'stop-mcp-server',
|
id: 'stop-mcp-server',
|
||||||
name: 'Stop MCP Server',
|
name: 'Stop server',
|
||||||
callback: async () => {
|
callback: async () => {
|
||||||
await this.stopServer();
|
await this.stopServer();
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
id: 'restart-mcp-server',
|
id: 'restart-mcp-server',
|
||||||
name: 'Restart MCP Server',
|
name: 'Restart server',
|
||||||
callback: async () => {
|
callback: async () => {
|
||||||
await this.stopServer();
|
await this.stopServer();
|
||||||
await this.startServer();
|
await this.startServer();
|
||||||
@@ -76,7 +76,7 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
id: 'view-notification-history',
|
id: 'view-notification-history',
|
||||||
name: 'View MCP Notification History',
|
name: 'View notification history',
|
||||||
callback: () => {
|
callback: () => {
|
||||||
this.showNotificationHistory();
|
this.showNotificationHistory();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user