0.0.25 • Published 1 month ago

@smcphub/local-dev v0.0.25

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

Welcome to @smcphub/local-dev šŸ‘‹

Version Documentation License: MIT

A MCP Server by SMCPHUB

local-dev is a local development assistant for NodeJS projects by SMCPhub.

SMCP hub is a platform that allows you to find the MCP servers which users published, or also publish your MCP Servers and get them listed and hosted on the website.

Then you can use the official MCP Client to connect to the MCP Servers you want, or use the official MCP Server to any clients that support MCP like Cursor, and maintain them in one place.

Hear is the link to create a API Key.

Hear is the documents.

šŸ  Homepage

Install

npm i @smcphub/local-dev

OR

yarn add @smcphub/local-dev

Usage

Use official MCP Client to connect to the MCP Server.

// import the SDK
import SmcphubClient from '@smcphub/client';

// Instantiate the client
const smcphubClient = new SmcphubClient({
    api_key: 'your-api-key'
});

// Connect the MCP Server
smcphubClient
.connect()
.then(tools => {
    console.log(tools);
})
.catch(err => {
  console.error(err);
});
    
// Call the tool
smcphubClient
.callTool('change_directory', {'directory': '/var/www/html'})
.then(content => {
    console.log(content);
})
.catch(err => {
  console.error(err);
});

Tools

  • get_current_directory: Get current directory.
  • change_directory: Change the current directory of the working.
  • git_push: Push changes to remote repository.
  • build_project: Build the project in current directory, default command is "npm run build".
  • run_command: Run any one specific command.

Resouces

  • status://current_directory: get current directory, this is useful when you are working on multiple projects. You will easy to know which project you are working on.
  • project://get_scripts: get all the scripts defined for the project in current directory. so we can run any script defined in the project.

Resource Templates

  • project://{name}/package_list: get the list of package in the specificed project in currect directory, will change to the directory with same name passed and try again to get the package list.

Author

šŸ‘¤ SMCPHUB

0.0.25

1 month ago

0.0.24

1 month ago

0.0.23

1 month ago

0.0.22

1 month ago

0.0.21

1 month ago

0.0.20

1 month ago

0.0.19

1 month ago

0.0.18

1 month ago

0.0.17

1 month ago

0.0.16

1 month ago

0.0.15

1 month ago

0.0.14

1 month ago

0.0.13

1 month ago

0.0.12

1 month ago

0.0.11

1 month ago

0.0.10

1 month ago

0.0.9

1 month ago

0.0.8

1 month ago

0.0.7

1 month ago

0.0.6

1 month ago

0.0.5

1 month ago

0.0.4

1 month ago

0.0.3

1 month ago

0.0.2

1 month ago

0.0.1

1 month ago