langgenius / langgenius/dify

Object of class `MCPToolProvider` has no attribute `provider_icon`

Open
#40,022 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
156k
Forks
24.7k
Avg merge
21h 41m
Merged PRs (30d)
600

Description

@dosu does these fields exists or legacy code?

```
+ERROR Object of class `MCPToolProvider` has no attribute `provider_icon` [missing-attribute]
+ --> tests/unit_tests/services/tools/test_mcp_tools_transform.py:72:5
+ERROR Object of class `MCPToolProvider` has no attribute `masked_server_url` [missing-attribute]
+ --> tests/unit_tests/services/tools/test_mcp_tools_transform.py:73:5
+ERROR Object of class `MCPToolProvider` has no attribute `masked_headers` [missing-attribute]
+ --> tests/unit_tests/services/tools/test_mcp_tools_transform.py:74:5
+ERROR Object of class `MCPToolProvider` has no attribute `decrypted_headers` [missing-attribute]
+ --> tests/unit_tests/services/tools/test_mcp_tools_transform.py:75:5
```

Contributor guide

Open the contributing guide

Research direction

Start with tests/unit_tests/services/tools/test_mcp_tools_transform.py at lines 72-75, then locate the MCPToolProvider definition and check whether provider_icon, masked_server_url, masked_headers, and decrypted_headers are current fields or legacy references. Done means resolving the reported missing-attribute errors with behavior consistent with the provider and its tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.