Skip to content

fatal error: stack overflow #8

Description

@wellcaffeinated

Hi there I'm trying to use this with a local service to setup an mcp, but i'm getting this stack overflow. Any help would be appreciated!

anytype-http-mcp  | 2026/02/17 10:31:02 Skipping .env load because spec path appears to be a URL.
anytype-http-mcp  | 2026/02/17 10:31:02 Configuration loaded: &{SpecPath:http://anytype:31009/docs/openapi.json APIKey: APIKeyName:Authorization APIKeyLocation:header APIKeyFromEnvVar:ANYTYPE_API_KEY IncludeTags:[] ExcludeTags:[] IncludeOperations:[] ExcludeOperations:[] ServerBaseURL:http://anytype:31009 DefaultToolName:Anytype MCP DefaultToolDesc:MCP server for Anytype API CustomHeaders:}
anytype-http-mcp  | 2026/02/17 10:31:02 GetAPIKey: Attempting to resolve API key...
anytype-http-mcp  | 2026/02/17 10:31:02 GetAPIKey: Checking environment variable specified by --api-key-env: ANYTYPE_API_KEY
anytype-http-mcp  | 2026/02/17 10:31:02 GetAPIKey: Found key in environment variable ANYTYPE_API_KEY.
anytype-http-mcp  | 2026/02/17 10:31:02 API Key (resolved): Bearer <KEY>
anytype-http-mcp  | 2026/02/17 10:31:02 Detected URL location: http://anytype:31009/docs/openapi.json
anytype-http-mcp  | 2026/02/17 10:31:02 Loading V3 spec using LoadFromURI: http://anytype:31009/docs/openapi.json
anytype-http-mcp  | 2026/02/17 10:31:02 Spec type v3 loaded successfully from http://anytype:31009/docs/openapi.json.
anytype-http-mcp  | 2026/02/17 10:31:02 Note: Request body for POST /v1/auth/api_keys is marked as required.
anytype-http-mcp  | 2026/02/17 10:31:02 Note: Request body for POST /v1/auth/challenges is marked as required.
anytype-http-mcp  | runtime: goroutine stack exceeds 1000000000-byte limit
anytype-http-mcp  | runtime: sp=0xc02068a640 stack=[0xc02068a000, 0xc04068a000]
anytype-http-mcp  | fatal error: stack overflow
anytype-http-mcp  |
anytype-http-mcp  | runtime stack:
anytype-http-mcp  | runtime.throw({0x8a7582?, 0xc000593e68?})
anytype-http-mcp  | 	/usr/local/go/src/runtime/panic.go:1023 +0x5c fp=0xc000593e18 sp=0xc000593de8 pc=0x437d5c
anytype-http-mcp  | runtime.newstack()
anytype-http-mcp  | 	/usr/local/go/src/runtime/stack.go:1103 +0x5bd fp=0xc000593fc8 sp=0xc000593e18 pc=0x452fdd
anytype-http-mcp  | runtime.morestack()
anytype-http-mcp  | 	/usr/local/go/src/runtime/asm_amd64.s:616 +0x7a fp=0xc000593fd0 sp=0xc000593fc8 pc=0x46aa1a
anytype-http-mcp  |
anytype-http-mcp  | goroutine 1 gp=0xc0000061c0 m=7 mp=0xc000580008 [running]:
anytype-http-mcp  | github.com/ckanthony/openapi-mcp/pkg/parser.openapiSchemaToMCPSchemaV3(0xc0000f9ae0?)
anytype-http-mcp  | 	/app/pkg/parser/parser.go:383 +0x876 fp=0xc02068a650 sp=0xc02068a648 pc=0x7c64b6
anytype-http-mcp  | github.com/ckanthony/openapi-mcp/pkg/parser.openapiSchemaToMCPSchemaV3(0x0?)
...
...

Docker compose for this service:

anytype-http-mcp:
    container_name: anytype-http-mcp
    image: ckanthony/openapi-mcp:latest
    hostname: anytype-http-mcp
    env_file:
      - .env
    environment:
      TZ: "America/Toronto"
    command:
      - "--spec"
      - "http://anytype:31009/docs/openapi.json"
      - "--port"
      - "8080"
      - "--api-key-env"
      - "ANYTYPE_API_KEY"
      - "--api-key-name"
      - "Authorization"
      - "--api-key-loc"
      - "header"
      - "--name"
      - "Anytype MCP"
      - "--desc"
      - "MCP server for Anytype API"
      - "--base-url"
      - "http://anytype:31009"
    restart: unless-stopped
    depends_on:
      anytype:
        condition: service_healthy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions