MCP.so
登录

Cortex MCP Server

@FreePeak

基本信息

分类

其他

许可证

Apache-2.0

传输方式

stdio

作者

FreePeak

关于 Cortex MCP Server

A declarative platform for building Model Context Protocol (MCP) servers in Golang—exposing tools, resources & prompts in a clean, structured way

Cortex MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Cortex MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Cortex?

Cortex is a Go library for building MCP (Model Context Protocol) servers declaratively. It implements the full MCP specification, enabling developers to expose resources, tools, and prompts over stdio or HTTP/SSE transports while following Go best practices.

How to use Cortex?

Install with go get github.com/FreePeak/cortex. Define tools using the tools package, create a server with server.NewMCPServer, register tools with handlers, and start the server with ServeStdio() or ServeHTTP(). Providers can group related tools and resources for registration.

Key features of Cortex

  • Declarative MCP server construction in Go
  • Supports Resources, Tools, Prompts, and Providers
  • STDIO and HTTP/SSE transport options
  • Embeddable into existing Go applications and HTTP servers
  • Multi-protocol operation via goroutines
  • Adheres to the latest MCP specification

Use cases of Cortex

  • Building MCP servers that expose data and tools to LLMs
  • Adding MCP capabilities to existing Go web servers
  • Creating reusable provider packages for related tools and resources
  • Running multi-protocol servers for different client types

常见问题

1

What transports does Cortex support?

Cortex supports STDIO for command-line integration and HTTP with Server-Sent Events (SSE) for web applications.

2

Can I embed Cortex into an existing server?

Yes, Cortex can be embedded into any Go HTTP server. Examples include integrating with a standard HTTP server or PocketBase.

3

How do I group related tools and resources?

Use providers, which bundle related tools and resources into a single package that can be registered with the server via `mcpServer.RegisterProvider`.

4

What is MCP?

The Model Context Protocol (MCP) is a standardized protocol for providing context and tools to LLMs in a secure, efficient manner. It separates context provisioning from LLM interaction.

5

What logging requirements exist for STDIO servers?

All logs must be written to stderr to keep stdout clean for JSON-RPC messages. Use `log.New(os.Stderr, ...)` or `fmt.Fprintf(os.Stderr, ...)`.

评论

其他 分类下的更多 MCP 服务器