- Add tool definitions in src/index.ts
- Update the README below
- Update the placeholder info in package.json
- Test building the MCP server with
npm run build, and using the @modelcontextprotocol/inspector library - Publish to npm:
npm login,npm publish --access public
[Insert overview here]
[Insert features here]
- Create a API key etc.
- Set the token as an environment variable:
export API_KEY_ENV_VAR=the_secret_api_keyAdd this to your settings JSON file:
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "some_secret_api_key",
"description": "Secret API key",
"password": true
}
],
"servers": {
"[library-name]": {
"command": "npx",
"args": [
"-y",
"@larryhudson/[the-library]"
],
"env": {
"API_KEY_ENV_VAR": "${input:some_secret_api_key}"
}
}
}
}
}Add this to your MCP configuration JSON file:
{
"mcpServers": {
"[the-library]": {
"command": "npx",
"args": ["-y", "@larryhudson/[the-library]"],
"env": {
"API_KEY_ENV_VAR": "<THE_SECRET_API_KEY>"
}
}
}
}[List the tools here]
[Some info about how it works]
Built with:
- Model Context Protocol (MCP): Framework for allowing AI assistants to interact with external tools
- TypeScript: For type safety and better developer experience
You can use the Model Context Protocol inspector to try out the server:
npx @modelcontextprotocol/inspector npx tsx src/index.tsMIT