GitHub
github.com โบ anthropics โบ anthropic-sdk-go
GitHub - anthropics/anthropic-sdk-go: Access to Anthropic's safety-first language model APIs via Go
The Anthropic Go library provides convenient access to the Anthropic REST API from applications written in Go.
Starred by 650 users
Forked by 81 users
Languages ย Go
Videos
Go Packages
pkg.go.dev โบ github.com โบ adamchol โบ go-anthropic-sdk
anthropic package - github.com/adamchol/go-anthropic-sdk - Go Packages
August 11, 2024 - package main import ( "context" "fmt" anthropic "github.com/adamchol/go-anthropic-sdk" ) func main() { client := anthropic.NewClient("your-token") resp, err := client.CreateMessage(context.Background(), anthropic.MessageRequest{ Model: anthropic.Claude35SonnetModel, Messages: []anthropic.InputMessage{ { Role: anthropic.MessageRoleUser, Content: "Hello, how are you?", }, }, MaxTokens: 4096, }) if err != nil { fmt.Println(err) } fmt.Println(resp.Content[0].Text) }
GitHub
github.com โบ liushuangls โบ go-anthropic
GitHub - liushuangls/go-anthropic: Anthropic Claude API wrapper for Go
Starred by 161 users
Forked by 24 users
Languages ย Go
Go Packages
pkg.go.dev โบ github.com โบ staropshq โบ go-anthropic
go-anthropic module - github.com/staropshq/go-anthropic - Go Packages
This is a golang SDK for anthropic claude API.
GitHub
github.com โบ unfunco โบ anthropic-sdk-go
GitHub - unfunco/anthropic-sdk-go: Go client library for interacting with the Anthropic safety-first language model REST APIs.
Go client library for interacting with the Anthropic safety-first language model REST APIs. - unfunco/anthropic-sdk-go
Author ย unfunco
Go Packages
pkg.go.dev โบ github.com โบ anthropics โบ anthropic-sdk-go โบ option
option package - github.com/anthropics/anthropic-sdk-go/option - Go Packages
RequestOption is an option for the requests made by the anthropic API Client which can be supplied to clients, services, and methods.
Reddit
reddit.com โบ r/anthropic โบ golang mcp implementation
r/Anthropic on Reddit: Golang MCP Implementation
November 27, 2024 -
I've scaffolded a basic SDK implementation in Go with the help of the specification docs and Claude Sonnet. Would have taken forever otherwise lol.
I have a basic client implemented with stdio and sse transports. Would love to get this to parity with the JS and Python SDKs. I'm ok with Go but not an expert by any means. Happy to have some help or at least have people check out the lib and note what's missing or can be fixed.
Cheers!
https://github.com/mark3labs/mcp-go
Top answer 1 of 2
1
I've also gone ahead and implemented the filesystem-server in Go using the newly created SDK https://github.com/mark3labs/mcp-filesystem-server
2 of 2
1
Hey, I have made an alternative implementation, that is only intended to be used for servers, but provides somewhat more high level API to register tools, prompts and resources, which allows to colocate related things. It is based on "fx" DI framework to wire everything together. strowk/foxy-contexts: Foxy contexts is a library for building context servers supporting Model Context Protocol I use my own underlying server implementation, it is possible that I might switch to anything that would be an official sdk..
Go Packages
pkg.go.dev โบ github.com โบ liushuangls โบ go-anthropic
anthropic package - github.com/liushuangls/go-anthropic - Go Packages
March 26, 2024 - package main import ( "errors" "fmt" "github.com/liushuangls/go-anthropic" ) func main() { client := anthropic.NewClient("your anthropic apikey") resp, err := client.CreateMessagesStream(context.Background(), anthropic.MessagesStreamRequest{ MessagesRequest: anthropic.MessagesRequest{ Model: anthropic.ModelClaudeInstant1Dot2, Messages: []anthropic.Message{ anthropic.NewUserTextMessage("What is your name?"), }, MaxTokens: 1000, }, OnContentBlockDelta: func(data anthropic.MessagesEventContentBlockDeltaData) { fmt.Printf("Stream Content: %s\n", data.Delta.Text) }, }) if err != nil { var e *anthropic.APIError if errors.As(err, &e) { fmt.Printf("Messages stream error, type: %s, message: %s", e.Type, e.Message) } else { fmt.Printf("Messages stream error: %v\n", err) } return } fmt.Println(resp.Content[0].Text) }
Go Packages
pkg.go.dev โบ github.com โบ NikitosnikN โบ go-anthropic-api
go_anthropic_api package - github.com/NikitosnikN/go-anthropic-api - Go Packages
April 3, 2024 - This is a Golang library for interacting with Anthropic's Claude AI API.
Go Packages
pkg.go.dev โบ github.com โบ fabiustech โบ anthropic
anthropic package - github.com/fabiustech/anthropic - Go Packages
Package anthropic is a client library for interacting with the Anthropic API.
Codingmall
codingmall.com โบ knowledge-base โบ 25-global โบ 1558-anthropic-package-for-go
Anthropic Package for Go: Integration with Claude API
At CodingMall.com we provide Joomla extensions, components, WordPress Plugins, SEO and customized web development solutions.
Claude
docs.claude.com โบ en โบ release-notes โบ api
Follow along with updates across Anthropic's ...
Generate outputs up to 8,192 tokens in length from Claude Sonnet 3.5 with the new anthropic-beta: max-tokens-3-5-sonnet-2024-07-15 header.
GitHub
github.com โบ madebywelch โบ anthropic-go
GitHub - madebywelch/anthropic-go: Go SDK for Anthropic's Claude, a next-generation AI assistant for your tasks, no matter the scale.
Go SDK for Anthropic's Claude, a next-generation AI assistant for your tasks, no matter the scale. - madebywelch/anthropic-go
Starred by 36 users
Forked by 18 users
Languages ย Go
GitHub
github.com โบ 3JoB โบ anthropic-sdk-go
GitHub - 3JoB/anthropic-sdk-go: (Need to be maintained) Golang SDK for AnthRopic Claude AI. Provide complete encapsulated interfaces that are easy to quickly get started with.
May 20, 2024 - (Need to be maintained) Golang SDK for AnthRopic Claude AI. Provide complete encapsulated interfaces that are easy to quickly get started with. - 3JoB/anthropic-sdk-go
Starred by 38 users
Forked by 6 users
Languages ย Go