Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACFlow MCP Server

Simple MCP (Model Context Protocol) HTTP Server with two example tools.

Quick Start

# Run with default port 9091
go run main.go

# Run with custom port
go run main.go -port 9092

Server URL: http://127.0.0.1:9091/mcp

Tools

1. now

Returns current server time in RFC 3339 format.

2. text_stats

Counts characters, words, and lines in text.

Input:

  • text (string, required)

Health Check

curl http://localhost:9091/health

Example Usage

Call 'now' tool

curl -X POST http://localhost:9091/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"now","arguments":{}}}'

Call 'text_stats' tool

curl -X POST http://localhost:9091/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"text_stats","arguments":{"text":"Hello World"}}}'

Integration

Go Agent Studio

Add to mcp.json:

{
  "mcpServers": {
    "local-example": {
      "url": "http://127.0.0.1:9091/mcp",
      "description": "ACFlow MCP Server",
      "disabled": false
    }
  }
}

License

MIT License

About

a mcp server demo

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages