
agi house hackathon mcp server
一个可扩展的通用模型上下文协议(MCP)服务器框架,支持自定义工具和功能。
Repository Info
About This Server
一个可扩展的通用模型上下文协议(MCP)服务器框架,支持自定义工具和功能。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Generic MCP Server
A generic Model Context Protocol (MCP) server scaffold that can be extended with custom tools and functionality.
Installation
- Clone this repository:
git clone <your-repo-url>
cd <repo-directory>
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
Setting up with Claude Desktop
To use this MCP server with Claude Desktop, you need to add it to Claude's configuration file. Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
- Open the configuration file:
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Add the following configuration to the
mcpServersobject:
{
"mcpServers": {
"datadog-mcp": {
"command": "node",
"args": ["/absolute/path/to/your/dist/index.js"],
"env": {
"DD_API_KEY": "your_api_key",
"DD_APP_KEY": "your_app_key",
"DD_HOST": "https://api.datadoghq.eu",
"NODE_ENV": "production"
},
"disabled": false,
"alwaysAllow": true
}
}
}
Make sure to:
- Replace
/absolute/path/to/yourwith the actual absolute path to your project'sdistdirectory - Set your Datadog API key in
DD_API_KEY - Set your Datadog application key in
DD_APP_KEY - Adjust the
DD_HOSTif you're using a different Datadog region
Note: Keep your API keys secure and never commit them to version control.
Development
Project Structure
index.ts: Main server file containing the MCP server implementationtsconfig.json: TypeScript configurationpackage.json: Project dependencies and scripts
Adding New Tools
- Define your tool's schema using Zod:
const MyToolSchema = z.object({
// your tool's parameters
});
- Add your tool to the
ListToolsRequestSchemahandler:
{
name: "my_tool",
description: "Description of what your tool does",
inputSchema: zodToJsonSchema(MyToolSchema) as ToolInput,
}
- Implement your tool in the
CallToolRequestSchemahandler:
case "my_tool": {
const parsed = MyToolSchema.safeParse(args);
if (!parsed.success) {
throw new Error(`Invalid arguments for my_tool: ${parsed.error}`);
}
// Your tool's implementation
return {
content: [{ type: "text", text: "Your tool's response" }],
};
}
Scripts
pnpm run build: Build the TypeScript projectpnpm run prepare: Run build before publishingpnpm run watch: Watch for changes and rebuild
Dependencies
@modelcontextprotocol/sdk: MCP server SDKzod: Schema validationzod-to-json-schema: Convert Zod schemas to JSON Schema- TypeScript and related development tools
License
MIT
Quick Start
Clone the repository
git clone https://github.com/shcallaway/agi-house-hackathon-mcp-serverInstall dependencies
cd agi-house-hackathon-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.